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_indent = 0 | |
$require_times = [] | |
$require_abs_start = Time.now.to_f | |
def putz(*args, &blk) | |
puts(*args, &blk) | |
end | |
module Kernel | |
alias_method :old_require, :require |
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
| |-bosh-agent,675 -I aws -P ubuntu -C /var/vcap/bosh/agent.json | |
| | |-bash,1583 -x packaging | |
| | | `-gem,12126 /var/vcap/packages/ruby/bin/gem install --local --verbose --no-ri --no-rdoc -w -n/var/vcap/package | |
| | | `-{gem},12127 | |
[#<Thread:0x007fd5f0382660 sleep>] | |
eval:1:in `backtrace' | |
eval:1:in `block in connect' | |
/var/vcap/packages/ruby/lib/ruby/2.1.0/net/http.rb:879:in `initialize' | |
/var/vcap/packages/ruby/lib/ruby/2.1.0/net/http.rb:879:in `open' |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AddPerm", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "s3:GetObject", |
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
GET v2/service_instances/abc123 | |
{ | |
"metadata": { | |
"guid":"abc123", | |
"url": "v2/service_instances/abc123" | |
}, | |
"entity": { | |
"name":"myservice-instance", | |
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
--- | |
name: cf | |
director_uuid: REPLACE_WITH_DIRECTOR_ID | |
releases: | |
- {name: cf, version: latest} | |
networks: | |
- name: cf_private | |
type: manual |
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
--- | |
name: redis-from-scratch | |
resource_pools: | |
- name: default | |
network: default | |
cloud_properties: | |
instance_type: m3.medium | |
networks: |
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
COLOR_RED="\[\e[31;40m\]" | |
COLOR_GREEN="\[\e[32;40m\]" | |
COLOR_CYAN="\[\e[36;40m\]" | |
COLOR_RESET="\[\e[0m\]" | |
function git_branch_name { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo " ("${ref#refs/heads/}")" | |
# possible to use __git_ps1 here | |
} |
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
alias disable_query_trace='cd ~/workspace/project/vendor/plugins/ ; rm -rf query_trace ; cd ~/workspace/project' | |
alias enable_query_trace='cd ~/workspace/project/vendor/plugins/ ; git clone http://github.com/ntalbott/query_trace.git ; cd ~/workspace/project' |
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
// Useful in specs for debugging ran away NSNotifications. | |
// This code should not be used in production! | |
// NSNotificationCenter source: http://svn.opengroupware.org/SOPE/releases/4.4rc.1-rock/libFoundation/Foundation/NSNotificationCenter.m | |
static NSNotificationCenter *otherDefaultCenter; | |
@interface NSNotificationCenter (Reset) | |
+ (void)reset; |
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
@interface UIImage (ToEqualByBytes) | |
- (BOOL)toEqualByBytes:(UIImage *)otherImage; | |
@end | |
@implementation UIImage (ToEqualByBytes) | |
- (BOOL)toEqualByBytes:(UIImage *)otherImage { |
OlderNewer