Created
June 22, 2014 22:25
-
-
Save jakelodwick/203a99d3c50f0efc3f59 to your computer and use it in GitHub Desktop.
line-broken file extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`curl -O 'http://jakelodwick.imgix.net/bball.jpg\n'` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wtf?
If you run this script, it saves a file with the extension
jpg\n
, which shows up in OS X with the line break intact. If you then rename the file, you get a buggy dialog box:installation
Save the file to your computer. Open a terminal,
cd
to the directory the file was downloaded to, and typeruby download.rb
.