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
trobrock@app1:/var/myapp/current$ curl -v https://playfairapp.com | |
* About to connect() to playfairapp.com port 443 (#0) | |
* Trying 162.243.21.176... connected | |
* successfully set certificate verify locations: | |
* CAfile: none | |
CApath: /etc/ssl/certs | |
* SSLv3, TLS handshake, Client hello (1): | |
* SSL connection timeout | |
* Closing connection #0 | |
curl: (28) SSL connection timeout |
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
root@chef:~# cat /etc/resolv.conf | |
nameserver 4.2.2.2 | |
nameserver 8.8.8.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
" Commands for vimdiff-enhanced | |
nno do :<C-U>exe 'diffget' v:count ? v:count : ''<CR> | |
nno dp :<C-U>exe 'diffput' v:count ? v:count : ''<CR> |
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
# collectd -T | |
plugin_load: Could not find plugin "nginx" in /usr/lib/collectd | |
Found a configuration for the `nginx' plugin, but the plugin isn't loaded or didn't register a configuration callback. | |
Exiting normally. | |
collectd: Stopping 5 read threads. | |
collectd: Stopping 5 write threads. |
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
#compdef knife_ssh | |
#autoload | |
_knife_ssh() { | |
if hash knife 2>/dev/null; then | |
if [[ ! -f ~/.knife_comp~ ]]; then | |
echo "\nGenerating ~/.knife_comp~..." >/dev/stderr | |
knife node list > ~/.knife_comp~ | |
fi | |
compadd `cat ~/.knife_comp~` |
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 python | |
from sys import argv | |
import html2text | |
file_name = argv[1] | |
fh = open(file_name) | |
contents = fh.read() | |
fh.close() |
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 'ruby_gntp' | |
Weechat.register "notify", "otters", "0.2", "GPL", "notify: A real time notification system for weechat", "", "" | |
Settings = { | |
:show_hilights => "on", | |
:show_priv_msg => "on" | |
} | |
def notify_show data, buffer, empty, tagsn, isdisp, ishilight, prefix, msg |
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
include_recipe "aws" | |
include_recipe "ec2-consistent-snapshot" | |
ruby_block "get attached ebs volumes" do | |
block do | |
# volumes = Opscode::Aws::Ec2.ec2.describe_volumes.detect{ |v| v[:aws_instance_id] == instance_id } | |
run_context["ebs_volumes"] = ["vol-abcd123"] | |
end | |
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
jruby -Sbundle install --gemfile /var/apps/application/releases/20130313202409/Gemfile --path /var/apps/application/shared/bundle --deployment --quiet --without development test | |
** [out :: 127.0.0.1] Unfortunately, a fatal error has occurred. Please see the Bundler | |
** [out :: 127.0.0.1] troubleshooting documentation at http://bit.ly/bundler-issues. Thanks! | |
** [out :: 127.0.0.1] /opt/jruby-1.5.6/lib/ruby/gems/1.8/gems/bundler-1.3.3/lib/bundler/cli.rb:867:in `without_groups_message': undefined method `empty?' for :test:Symbol (NoMethodError) | |
** [out :: 127.0.0.1] from /opt/jruby-1.5.6/lib/ruby/gems/1.8/gems/bundler-1.3.3/lib/bundler/cli.rb:866:in `reject' | |
** [out :: 127.0.0.1] from /opt/jruby-1.5.6/lib/ruby/gems/1.8/gems/bundler-1.3.3/lib/bundler/cli.rb:866:in `without_groups_message' | |
** [out :: 127.0.0.1] from /opt/jruby-1.5.6/lib/ruby/gems/1.8/gems/bundler-1.3.3/lib/bundler/cli.rb:254:in `install' | |
** [out :: 127.0.0.1] from /opt/jruby-1.5.6/lib/ruby/gems/1.8/gems/bundler-1.3.3/lib/bundler/vendor/thor/t |
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
# Run from rbenv 1.9.3-p392 | |
require 'open3' | |
Bundler.with_clean_env do | |
stdin, stdout, stderr, wait_thr = Open3.popen3 <<-SH | |
eval "$(rbenv init -)" ; | |
rbenv shell ree-1.8.7-2012.02 ; | |
gem env | |
SH |