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
cd ~/foo | |
spork cuc | |
cucumber --drb # win! | |
cd ~/bar | |
cucumber --drb # foo?!? fail. |
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
# TYPE DATABASE USER CIDR-ADDRESS METHOD | |
# "local" is for Unix domain socket connections only | |
local all all trust | |
# IPv4 local connections: | |
host all all 127.0.0.1/32 trust | |
# IPv6 local connections: | |
host all all ::1/128 trust |
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 'cloudfiles' | |
cf = CloudFiles::Connection.new( :username => 'turbovote', :api_key => '[hidden]' ) | |
container = cf.container('forms-test') | |
object = container.create_object('test.pdf') | |
file_path = File.join("/", "tmp", "test.pdf") | |
headers = { | |
'content-type' => "application/pdf", | |
'content-disposition' => "attachment; filename=public_name.pdf", | |
'access-control-allow-origin' => "*" |
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
/opt/opscode/embedded/bin/ruby extconf.rb | |
checking for getspent() in -lshadow... *** extconf.rb failed *** | |
Could not create Makefile due to some reason, probably lack of | |
necessary libraries and/or headers. Check the mkmf.log file for more | |
details. You may need configuration options. | |
Provided configuration options: | |
--with-opt-dir | |
--with-opt-include | |
--without-opt-include=${opt-dir}/include |
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
"gcc -o conftest -I/opt/opscode/embedded/include/ruby-1.9.1/i686-linux -I/opt/opscode/embedded/include/ruby-1.9.1/ruby/backward -I/opt/opscode/embedded/include/ruby-1.9.1 -I. -I/opt/opscode/embedded/include -D_FILE_OFFSET_BITS=64 -DRUBY19 conftest.c -L. -L/opt/opscode/embedded/lib -Wl,-R/opt/opscode/embedded/lib -L/opt/opscode/embedded/lib -Wl,-R/opt/opscode/embedded/lib -L. -Wl,-rpath /opt/opscode/embedded/lib -L/opt/opscode/embedded/lib -I/opt/opscode/embedded/include -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/opt/opscode/embedded/lib -L/opt/opscode/embedded/lib -lruby-static -lpthread -lrt -ldl -lcrypt -lm -lc" | |
checked program was: | |
/* begin */ | |
1: #include "ruby.h" | |
2: | |
3: int main() {return 0;} | |
/* end */ | |
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
def give_user_root_access(user, root_password) | |
Chef::Log.info "Giving #{user} root access to MySQL server" | |
home_dir = case user | |
when 'root' | |
'/root' | |
else | |
"/home/#{user}" | |
end | |
Chef::Resource::Template.new "#{home_dir}/.my.cnf" do |
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
Kitchenfile: | |
cookbook "turbovote" do | |
runtimes [] | |
end | |
Cheffile: | |
require 'test-kitchen' |
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": "worker1-ec2-staging", | |
"json_class": "Chef::Node", | |
"chef_environment": "ec2-staging", | |
"run_list": [ | |
"role[pdf_worker_ec2]" | |
], | |
"normal": { | |
"elastic_ip": "1.2.3.4", | |
"tags": [ |
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
diff --git i/modules/terminal/init.zsh w/modules/terminal/init.zsh | |
index dc78a3b..d36b641 100644 | |
--- i/modules/terminal/init.zsh | |
+++ w/modules/terminal/init.zsh | |
@@ -85,14 +85,14 @@ function set-titles-with-path { | |
setopt EXTENDED_GLOB | |
local absolute_path="${${1:a}:-$PWD}" | |
+ local abbreviated_path="${absolute_path/#$HOME/~}" | |
+ local truncated_path="${abbreviated_path/(#m)?(#c15,)/...${MATCH[-12,-1]}}" |
OlderNewer