| Name | Source Code | Multiple/Single Host |
|---|
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
| brew install rbenv ruby-build fasd ag htop | |
| brew install redis postgresql |
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
| # Bash autocomplete ssh | |
| _complete_ssh_hosts () | |
| { | |
| COMPREPLY=() | |
| cur="${COMP_WORDS[COMP_CWORD]}" | |
| comp_ssh_hosts=`cat ~/.ssh/known_hosts | \ | |
| cut -f 1 -d ' ' | \ | |
| sed -e s/,.*//g | \ | |
| grep -v ^# | \ | |
| uniq | \ |
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
| override['unattended-upgrades']['allowed_origins']['add-this-one'] = true |
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
Show hidden characters
| { | |
| // Useful Visual | |
| "caret_style": "phase", | |
| "highlight_line": true, | |
| "highlight_modified_tabs": true, | |
| // File handling | |
| "default_line_ending": "unix", | |
| "fallback_encoding": "UTF-8", |
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 'csvscan' | |
| module CSVScan | |
| class ParseError < Exception; end | |
| def self.foreach(file_path, options = {}) | |
| parsed_lines, parsed_rows, total_records = 0, 0, 0 | |
| first_line, headers = true, Hash.new |
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
| # This is the default .slate file. | |
| # If no ~/.slate file exists this is the file that will be used. | |
| config defaultToCurrentScreen true | |
| config nudgePercentOf screenSize | |
| config resizePercentOf screenSize | |
| # Resize Bindings | |
| # bind right:alt resize +10% +0 | |
| # bind left:alt resize -10% +0 |
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
| [alias] | |
| st = status | |
| ci = commit | |
| cia = commit -a | |
| co = checkout | |
| dic = diff --cached | |
| rb = rebase | |
| ba = branch -a | |
| b = branch | |
| cp = cherry-pick |
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
| Title: Homebrew Formula | |
| Keyword: brew | |
| Search URL: https://github.com/mxcl/homebrew/blob/master/Library/Formula/{query}.rb |
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
| class Account < ActiveRecord::Base | |
| scope :open, where(:closed => false) | |
| end | |
| class Group < ActiveRecord::Base | |
| has_many :accounts | |
| end | |
| => Account.open | |
| Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`closed` = 0 | |
| => [] |
NewerOlder