Fork me on GitHub
#off-topic
<
2020-06-25
>
borkdude09:06:53

I'm keeping track of my open source issues in a Github project board, but since I split one of my project up into an org, this doesn't work anymore, since I can't add issues from the org to my personal project board... does anyone know a good solution for this?

Renato Alencar15:06:45

That's probably an Emacs package that does that hahaha

borkdude09:06:03

I have considered going back to Trello, but I'd rather not because the Github board integrates better with... Github. cc @danielcompton

avi17:06:11

You might be interested to take a look at the approach that Simon Willison uses: > …I shipped a 1.0 of github-to-sqlite. > > As you might expect, it’s a tool for importing GitHub data into a SQLite database. Today it can handle repositories, releases, release assets, commits, issues and issue comments. You can see a live demo built from Dogsheep organization data at http://github-to-sqlite.dogsheep.net (deployed by this GitHub action). > > I built this tool primarily to help me better keep track of all of my projects. Pulling the issues into a single database means I can run queries against all open issues across all of my repositories, and imporing commits and releases is handy for when I want to write my weeknotes and need to figure out what I’ve worked on lately. https://simonwillison.net/2020/Mar/25/weeknotes/

👍 6
borkdude17:06:59

awesome thanks, might be cool to use from babashka 🙂

avi19:06:10

My pleasure! I’d love to hear how it goes, how you approach it, etc.

avi19:06:07

BTW if you’re not familiar with Datasette, check it out. It’s an excellent tool/system. You might even want to try using it to browse your GitHub data, like Willison does. You can try out his demo site to see what it’s like to use.

danielcompton10:06:22

Put everything in the org? trollface

borkdude10:06:17

thanks 😏

Daniel Tan10:06:15

:thinking_face: iirc gitlab allows for this

sova-soars-the-sora13:06:32

if you could deploy a question and answer site really easily and all you had to pick was the topic / domain / some names for chat rooms... which domain would you choose to have a q&a site for?

souenzzo19:06:04

(let [text-input "home :id 42"]
  (keys (edn/read-string 
          (pr-str {:kind (keyword text-input)}))))
=> (:kind :id)

noisesmith19:06:18

I see why this works but surely there's a better way to do it?

souenzzo19:06:53

Not a issue. Just sharing a odd behavior. I tryied to explore and create a "injection" or something cooler, but i failed 😅

noisesmith19:06:00

oh if we are sharing things just because they are weird - I think this is the best cursedness / character-count (evil golf) program you can write in clojure

user=> (#(%1%2%):-{})
:-

noisesmith19:06:06

alternate suggestions accepted

noisesmith19:06:14

I think this is equal, but maybe aesthetically superior

user=> (#(%1%2%):%{})
:%

👍 3
confusedparrot 3
noisesmith20:06:46

@U0CMVHBL2 taking your "confusion" response literally, the trick is that the parsing of #() doesn't follow the standard clojure token recognition rules, so it's possible to eliminate spaces between symbols in a way that isn't valid in any other context

andy.fingerhut20:06:07

Perhaps if I had a bit more sleep last night, I might feel interested in figuring out what is going on there. It is also likely that even on 100% sleep I would think "as long as nothing like that ever gets past code review and into a code base I use" 🙂

noisesmith20:06:58

haha right, I think the risk would be inside an injection attack where even if logged it wouldn't look like valid clojure code so it could sneak in...

andy.fingerhut20:06:42

Anybody who uses clojure.core/read or read-string on untrusted sources shouldn't get past code review, either, IMO

noisesmith20:06:39

consider: malicious code that hides in a binary like an image file checked into the repo, then evaluated via read that "accidentally" has read-eval turned on, even if you looked at the binary it wouldn't look like clojure code, it doesn't even have spaces in it

noisesmith20:06:00

(of course constructing anything "useful" that way would be a huge challenge to say the least)

noisesmith20:06:59

but I don't primarily point it out for security reasons, mainly I find the idea that clojure would accept that code amusing on the face of it

andy.fingerhut20:06:03

I did my level best to scare people away from clojure.core/read in its http://ClojureDocs.org page years ago, without actually yelling.

andy.fingerhut20:06:05

I take that back. If ALL CAPS words are yelling, I yelled for a few words.