This file contains hidden or 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
| gem install puma -- --with-opt-include=/usr/local/opt/openssl/include |
This file contains hidden or 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
| tar cvzf foobar.tgz foobar | |
This file contains hidden or 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
| tar xvzf foobar.tgz |
This file contains hidden or 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
| Dir.glob("**/*.flac").each do |filename| | |
| new_filename = File.join( | |
| File.dirname(filename), | |
| "#{File.basename(filename, ".flac")}.ogg") | |
| `ffmpeg -i "#{filename}" -strict experimental -acodec vorbis -aq 100 "#{new_filename}"` | |
| end |
This file contains hidden or 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
| Dir.glob("**/*.jpg").each do |filename| | |
| new_filename = File.join( | |
| File.dirname(filename), | |
| "#{File.basename(filename, ".jpg")}-180.jpg") | |
| `convert "#{filename}" -rotate 180 "#{new_filename}"` | |
| end |
This file contains hidden or 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
| npm init # creates the package.json in the directory you're in | |
| # At a minimum your package.json must have name and version number | |
| # package.json will keep track of all the packages installed with a save flag | |
| # eg: | |
| npm install [email protected] --save | |
This file contains hidden or 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
| require 'propane' | |
| # ellipses | |
| # propane graffiti by 8mana | |
| # based on code by Casey Reas and Ben Fry | |
| class Ellipse < Propane::App | |
| def settings | |
| size 100, 100 |
This file contains hidden or 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
| # /etc/fonts/fonts.conf | |
| ... | |
| <!-- Font directory list --> | |
| <dir>/usr/share/fonts</dir> | |
| <dir>/usr/local/share/fonts</dir> | |
| <dir prefix="xdg">fonts</dir> | |
| <!-- the following element will be removed in the future --> | |
| <dir>~/.fonts</dir> |
This file contains hidden or 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
| #!/usr/bin/env jruby | |
| # frozen_string_literal: false | |
| require 'propane' | |
| # robot | |
| # propane graffiti by 8mana | |
| # based on code by Casey Reas and Ben Fry | |
| class Robot < Propane::App | |
| def settings |
This file contains hidden or 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
| #!/usr/bin/env jruby | |
| # frozen_string_literal: false | |
| require 'propane' | |
| class WindowPane < Propane::App | |
| def settings | |
| size 800,600 | |
| end | |
| end | |