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
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <style> | |
| body { | |
| margin: auto; | |
| padding: 0px; | |
| } | |
| </style> | |
| <script> |
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
| @Chris's searches | |
| @Chris's custom searches | |
| go https://duckduckgo.com/?q=%21%20%s Open first result (DuckDuckGo) | |
| gh http://github.com/search?q=%s&type=Everything&repo=&langOverride=&start_value=1 Search GitHub (everything) |
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
| source :rubygems | |
| gem "middleman", ">=2.0" # Configure Sprockets | |
| gem "jquery-rails" # provide jquery in a rails engine | |
| gem "backbone-rails" # provides underscore as well | |
| gem "bourbon" # thoughtbot SASS mixins | |
| gem "ejs" # provide JST global access to templates | |
| gem "handlebars_assets" # use handlebars JS template engine | |
| gem "rb-fsevent" # OS notifications for file changes (rather than polling) |
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 list | cut -d ' ' -f 1 | while read g; do gem uninstall -aIx $g; done |
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
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # | |
| # Source https://raw.github.com/jnstq/rails-nginx-passenger-ubuntu/master/nginx/nginx | |
| # | |
| # Provides: nginx | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 |
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
| ################################################################# | |
| # # | |
| # A guide to setting up a linode Ubuntu VPS for # | |
| # Ruby on Rails hosting with nginx & passenger # | |
| # # | |
| # Compiled by Chris Toomey [ctoomey.com] on Sept. 9 2011 # | |
| # # | |
| ################################################################# | |
| # Start with base 10.04 image. Setup the DNS for any domains you |
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
| guard 'coffeescript', { | |
| :output => '.compiledJS', | |
| :bare => true | |
| } do | |
| watch %r{(.*/(.+\.coffee))} | |
| 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
| // Object literal code organization pattern. From Rebecca Murphy's blog: | |
| // http://blog.rebeccamurphey.com/2009/10/15/using-objects-to-organize-your-code | |
| var myModule = { | |
| 'config' : { | |
| 'option1' = val, | |
| 'cached_elem' = $(this) | |
| }, | |
| 'init' : function(config) { | |
| // provide for custom configuration via init() |
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 | |
| # | |
| # A quick script to dump an overview of all the open issues in all my github projects | |
| # | |
| require 'octokit' | |
| require 'awesome_print' | |
| require 'rainbow' |
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
| # List all symlinks in current directory | |
| lns() { | |
| find ./ -type l -maxdepth 1 | awk '{ sub(/.\/+/, ""); print }' | |
| } | |
| # List broken symlinks under current directory | |
| lnsm() { | |
| find -L ./ -type l -maxdepth 1 | |
| } |