News for hackers. Stuff that matters.
Re:Show HN: Commits.io - Create a poster from your code and ... by gregmac on Tuesday November 15, 2016 @01:46PM (#12960951)
Suggestion: Write a standalone tool that does the code extraction step, so someone can run it on their private repository (or checked-out code) and generate the data dump you need.

This mitigates some of the security issues have with granting access to live repositories, as well as opens your service up to people who have code hosted on anything besides Github or Bitbucket hosted services.

Re:Show HN: Commits.io - Create a poster from your code and ... by ortuna on Tuesday November 15, 2016 @05:11PM (#12962768)
Didn't expect this to blow up today. But security was considered from day 0.

- Each time a poster is generated the repo's code is fetched and destroyed.

- Your auth token is cleared after each session.

- For maximum security use Gists!

You can create a private Gist[0] and add all the files you want into it. After that you can just use the Gist's ssh/https url under the "Embed" menu/dropdown.

This will allow you to specify exact files that get cloned.

[0] https://gist.github.com/

Re:Show HN: Commits.io - Create a poster from your code and ... by kamarg on Tuesday November 15, 2016 @12:02PM (#12959858)
The service looks awesome and I really want to order some posters for my company. However, I can't grant the kind of access that is being asked for to a private company repository.

The idea of allowing a someone to have the ability to administer/transfer/delete company repositories so that we can print some neat posters is rather unsettling.

Re:Show HN: Commits.io - Create a poster from your code and ... by nathancahill on Tuesday November 15, 2016 @12:18PM (#12960021)
GitHub really needs to make fine-grain OAuth permissions a priority.
Re:Show HN: Commits.io - Create a poster from your code and ... by BHSPitMonkey on Wednesday November 16, 2016 @02:39AM (#12965189)
Why not grab some files/snippets from your project that you deem safe to share and drop it into a secret gist?
Re:Show HN: Commits.io - Create a poster from your code and ... by kamarg on Wednesday November 16, 2016 @10:10AM (#12967561)
I hadn't noticed that I could provide a gist. Just saw that it had Github/Bitbucket integration and went to try that out. I was disappointed when I saw how much control I'd have to allow in order to use that integration and didn't go back to see if there were other options.

Aside from being more thorough in my inspection of the site, it might help to make that portion of the site more obvious given how many people came to this thread and made the same general comment about security/permissions.

Re:Show HN: Commits.io - Create a poster from your code and ... by knowaveragejoe on Tuesday November 15, 2016 @12:23PM (#12960071)
Very similar to Litographs - https://www.litographs.com/

I expect they developed some algorithm to color/format lines correctly per some image in this case, so a little more flexible...

Re:Show HN: Commits.io - Create a poster from your code and ... by Kaotique on Tuesday November 15, 2016 @12:13PM (#12959984)
I want to order a poster but I don't want to give so much access to our company's github. It would be nice if there was an alternative route where I can just copy paste a bunch of code and then start the generating and order process.
Re:Show HN: Commits.io - Create a poster from your code and ... by HelloYouPerson on Tuesday November 15, 2016 @04:09PM (#12962238)
I was thinking the same. I can't really tell for sure tho, is it read only access or what?

Edit: Never mind, I figured out how to see what access it was. Btw, Holy shit! Why all this access?? "read and write all public and private repository data"

Re:Show HN: Commits.io - Create a poster from your code and ... by ortuna on Tuesday November 15, 2016 @05:22PM (#12962859)
Unfortunately, this is all the control Github provides on their scopes. There is no read only for repos scope. The only scope it asks for is 'repo' and email as an identifier[0]

[0] - https://developer.github.com/v3/oauth/#scopes

Re:Show HN: Commits.io - Create a poster from your code and ... by nicky0 on Wednesday November 16, 2016 @01:44AM (#12965010)
Paste the code into a private gist. (See developer's comment above.)
Re:Show HN: Commits.io - Create a poster from your code and ... by gravypod on Tuesday November 15, 2016 @10:21PM (#12964313)
When I graduate from college I'm going to glob all of the code I've ever written for side projects and all of the code I've done for homeworks together and print it out via this service.

Should make for a very nice piece of paper that I'll put next to my other piece of paper (my degree). I'm pretty sure I'll be more proud of this then I will of my degree.

Re:Show HN: Commits.io - Create a poster from your code and ... by acedinlowball on Wednesday November 16, 2016 @01:40PM (#12969971)
Totally stealing this idea!
Re:Show HN: Commits.io - Create a poster from your code and ... by cvburgess on Tuesday November 15, 2016 @11:57AM (#12959811)
Would love a cheaper "download" option. Would be cool to use this on a shirt or mug or maybe a wallpaper.
Re:Show HN: Commits.io - Create a poster from your code and ... by ruddell on Tuesday November 15, 2016 @12:37PM (#12960221)
You can download the image (4320 × 3240) by right clicking on your generated preview and choosing "Save image as"
Re:Show HN: Commits.io - Create a poster from your code and ... by avitzurel on Tuesday November 15, 2016 @11:51AM (#12959743)
This is really neat!

I uploaded an image of a gopher and it automatically detected the shape and drew it on the code.

http://assets.avi.io/screen-shot-2016-11-15-f4w73.png

This is impressive. Would love insights on how you did that.

Re:Show HN: Commits.io - Create a poster from your code and ... by mf2hd on Tuesday November 15, 2016 @12:23PM (#12960074)
I think it's simple, every character is a pixel, you just have to change the color of the characters to match the same pixel on the uploaded image.

It's a great idea btw.

Re:Show HN: Commits.io - Create a poster from your code and ... by nicky0 on Wednesday November 16, 2016 @01:49AM (#12965029)
It is not so simple. The characters are not the same colour as in the image. Look at the eyes and the nose for example. It seems to be doing a more advanced kind of image feature detection.
Re:Show HN: Commits.io - Create a poster from your code and ... by mf2hd on Friday November 18, 2016 @06:50AM (#12986098)
It is, just the white pixels on the image are black text on the poster, and the same with black pixels, so Gopher's eyes (and the other black parts) disappear.

There is a Light Text option, with that white pixels are grey so you can see the eyes :)

https://s18.postimg.org/4jg01zwux/gopherposter.jpg

Re:Show HN: Commits.io - Create a poster from your code and ... by avitzurel on Tuesday November 15, 2016 @12:29PM (#12960129)
Agreed
Re:Show HN: Commits.io - Create a poster from your code and ... by frankwiles on Tuesday November 15, 2016 @11:42AM (#12959614)
At REVSYS we got a print made when we launched the refresh of python.org. It's pretty awesome, can definitely recommend this service.
Re:Show HN: Commits.io - Create a poster from your code and ... by ortuna on Tuesday November 15, 2016 @05:26PM (#12962896)
Thank you! Would love to see a picture of it hanging if you have time time: supportATcommits.io
Re:Show HN: Commits.io - Create a poster from your code and ... by elliottcarlson on Tuesday November 15, 2016 @11:42AM (#12959608)
Great job - ordering was streamlined and the process was really smooth -- I was expecting the generated image to auto-update when I was making selections, but I can imagine that is process intensive so it makes sense how it behaves. Looking forward to our poster.
Re:Show HN: Commits.io - Create a poster from your code and ... by allengeorge on Tuesday November 15, 2016 @01:21PM (#12960662)
This is absolutely awesome! I would have loved to do it for the company I work for, but...I'm not comfortable with giving access to a private repo.

That said, did do it for an open-source project I wrote, and it's great!

Re:Show HN: Commits.io - Create a poster from your code and ... by dankohn1 on Tuesday November 15, 2016 @01:26PM (#12960732)
This is great. Here's the poster[0] for the Core Infrastructure Initiative's [1] Best Practices Badge [2]. Zoom out by clicking "-" at the top left.

[0] https://commits.io/posters/a9a5c093686 [1] https://coreinfrastructure.org/ [2] https://bestpractices.coreinfrastructure.org/

Re:Show HN: Commits.io - Create a poster from your code and ... by JorgeGT on Tuesday November 15, 2016 @11:53AM (#12959771)
Enhancement idea: RegExp field to blacklist/whitelist files in the repo (I tried to do this with my PhD thesis but the central part of the image is the boring .bib file). Still, pretty neat!
Re:Show HN: Commits.io - Create a poster from your code and ... by tymm on Tuesday November 15, 2016 @11:43AM (#12959622)
This is pretty cool.

Would be interesting to know how much revenue you are making so far.

Re:Show HN: Commits.io - Create a poster from your code and ... by amelius on Tuesday November 15, 2016 @11:55AM (#12959798)
Pretty cool indeed. But I guess one problem is that if everybody starts using this, then it loses its coolness factor.
Re:Show HN: Commits.io - Create a poster from your code and ... by JackFr on Tuesday November 15, 2016 @12:47PM (#12960300)
Word clouds.
Re:Show HN: Commits.io - Create a poster from your code and ... by pokstad on Tuesday November 15, 2016 @12:00PM (#12959842)
Reminds me of the old Apple posters with C & Objective-C code on a black background. Does anyone have a link to those? We had them hanging in some of our university classrooms.
Re:Show HN: Commits.io - Create a poster from your code and ... by joshdance on Tuesday November 15, 2016 @12:36PM (#12960208)
Interested in seeing a picture of one of those.
Re:Show HN: Commits.io - Create a poster from your code and ... by acedinlowball on Wednesday November 16, 2016 @01:38PM (#12969946)
Congratulations on the enormous amount of money you have made from this website. I wish I had a website like that so I could just retire....
Re:Show HN: Commits.io - Create a poster from your code and ... by donmb on Tuesday November 15, 2016 @03:05PM (#12961668)
+1 on the security issue. I won't give an "unknown" company access to our private github repo. Besides that: love the idea!
Re:Show HN: Commits.io - Create a poster from your code and ... by ybrah on Tuesday November 15, 2016 @02:03PM (#12961118)
neat idea 50$ though? Ill just implement it myself and print it myself. The price tag is a bit high
Re:Show HN: Commits.io - Create a poster from your code and ... by gregorymichael on Tuesday November 15, 2016 @03:11PM (#12961716)
You may want to consider increasing your hourly billing rate.
Re:Show HN: Commits.io - Create a poster from your code and ... by nicky0 on Wednesday November 16, 2016 @01:55AM (#12965047)
Alright, smug one. Might be a student.
Re:Show HN: Commits.io - Create a poster from your code and ... by module0000 on Tuesday November 15, 2016 @03:30PM (#12961922)
I notice half of my banner is various GPL 'LICENSE' files... I still like it :)
Re:Show HN: Commits.io - Create a poster from your code and ... by caf on Tuesday November 15, 2016 @10:44PM (#12964388)
You can select which type of source file(s) to include down the bottom and regenerate.
Re:Show HN: Commits.io - Create a poster from your code and ... by shaydoc on Tuesday November 15, 2016 @05:03PM (#12962701)
this totally blows my half assed idea out of the water! http://coderte.es
Re:Show HN: Commits.io - Create a poster from your code and ... by stockkid on Tuesday November 15, 2016 @05:08PM (#12962748)
The site looks great. Did you use any libraries to make it look like a command line?
Re:Show HN: Commits.io - Create a poster from your code and ... by shaydoc on Tuesday November 15, 2016 @05:13PM (#12962780)
sure.. i used this great repo called jQuery.terminal https://github.com/jcubic/jquery.terminal
Re:Show HN: Commits.io - Create a poster from your code and ... by ortuna on Tuesday November 15, 2016 @05:24PM (#12962885)
That's a pretty sweet site!
Re:Show HN: Commits.io - Create a poster from your code and ... by wyclif on Tuesday November 15, 2016 @12:34PM (#12960187)
Doesn't seem to work with my GitHub repo.