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
| # 1) Create your private key (any password will do, we remove it below) | |
| $ cd ~/.ssh | |
| $ openssl genrsa -des3 -out server.orig.key 2048 | |
| # 2) Remove the password | |
| $ openssl rsa -in server.orig.key -out server.key |
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
| # Convert mp4 video to ogv and/or WebM | |
| # Browser support: | |
| # http://caniuse.com/#search=mp4 | |
| # http://caniuse.com/#search=ogv | |
| # http://caniuse.com/#search=webm | |
| # Installation: | |
| brew install ffmpeg \ | |
| --with-tools \ |
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 ruby | |
| require 'rubocop' | |
| require 'english' | |
| ADDED_OR_MODIFIED = /A|AM|^M/ | |
| # to prevent code injection: system is a dangerous call | |
| def raise_single_quote_error | |
| raise ArgumentError, 'Single quotes are not allowed in filenames here.' |
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
| AllCops: | |
| Exclude: | |
| - 'db/schema.rb' | |
| Rails: | |
| Enabled: true | |
| Metrics/LineLength: | |
| Max: 120 |