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 1='cd -' | |
| alias 2='cd +2' | |
| alias 3='cd +3' | |
| alias 4='cd +4' | |
| alias 5='cd +5' | |
| alias 6='cd +6' | |
| alias 7='cd +7' | |
| alias 8='cd +8' | |
| alias 9='cd +9' |
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
| # off | |
| mdutil -i off -a | |
| # on | |
| mdutil -i on -a |
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 'https://rubygems.org' | |
| gem "betabuilder" |
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
| You can increase your battery life by removing a couple of folders from your Spotlight index. | |
| Here is my list of folders which made the most difference. | |
| Please fork and update this gist with any additional folders that you've found which are worth removing. | |
| # Most of this was done using Grandperspectiv, which I love | |
| http://grandperspectiv.sourceforge.net/ | |
| http://grandperspectiv.sourceforge.net/HelpDocumentation/HowToAnalyseTimeMachineBackups.html | |
| sudo tmutil addexclusion ~/Downloads |
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
| open /Library/StartupItems/ | |
| open /Library/LaunchDaemons/ | |
| open ~/Library/LaunchDaemons |
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 everything | |
| /sbin/iptables -L | |
| # load rules | |
| sudo /sbin/iptables-restore < /etc/iptables.up.rules | |
| # need to make sure it starts on reboot |
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
| global | |
| log 127.0.0.1 local0 | |
| log 127.0.0.1 local1 notice | |
| #log loghost local0 info | |
| maxconn 4096 | |
| #chroot /usr/share/haproxy | |
| user haproxy | |
| group haproxy | |
| daemon | |
| #debug |
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 'rubygems' | |
| require 'awesome_print' | |
| pings = `ping -c4 10.0.1.255`.split("\n") | |
| valid = pings.select{|p| p.match("64 bytes") } | |
| ips = valid.map{|v| v.split(":").first.split(" ").last }.uniq | |
| arps = ips.map{|ip| `arp #{ip} ` } | |
| valid_arps = arps.select{|a| a.match("at") } |
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
| (function () { | |
| var server = false, | |
| MyModels; | |
| if (typeof exports !== 'undefined') { | |
| MyModels = exports; | |
| server = true; | |
| } else { | |
| MyModels = this.MyModels = {}; | |
| } |
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
| login = (browser, email, password, calllback) -> | |
| browser.visit path("/login"), -> | |
| browser.should.be.success | |
| browser.text("title").should.eql("JunoJs - Login") | |
| browser.text("#error-message").should.eql("") | |
| browser. | |
| fill("Email", email). | |
| fill("Password", password). |