This file contains 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
echo "Total time Start transfer Avg Download Speed" | |
for i in 1 2 3 4 5 | |
do | |
curl -w "%{time_total}s\t\t%{time_starttransfer}s\t\t%{speed_download}\n" http://your.url.here -o outfile -s | |
done |
This file contains 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/bash | |
git log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s" |
This file contains 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
# LOL!!1 | |
alias wtf='dmesg' | |
alias onoz='cat /var/log/errors.log' | |
alias rtfm='man' | |
alias visible='cat' | |
alias moar='less' | |
alias icanhas='mkdir' |
This file contains 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 FSEventRefresh | |
def initialize | |
@changed = false | |
end | |
def changed? | |
if @changed | |
@changed = false | |
true | |
else |
This file contains 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 'raspell' | |
class RdocSpellchecker | |
attr_accessor :badwords | |
def initialize | |
@sp = Aspell.new("en") | |
@sp.set_option("ignore-case","true") | |
end | |
def check(dirry) |
This file contains 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
#import <Foundation/Foundation.h> | |
@interface MockExpector : NSObject | |
+ (void)verifyMethodWasCalled; | |
+ (void)verifyMethodWasNotCalled; | |
+ (void)expect:(SEL)selector toBeCalledOn:(Class)class; | |
@end |