git clone path/to/test/repo.git
git config push.default matching
git branch -a
* master
include_recipe "postgresql::server90" | |
# inspiration from | |
# https://gist.github.com/637579 | |
execute "create-root-user" do | |
code = <<-EOH | |
psql -U postgres -c "select * from pg_user where usename='root'" | grep -c root | |
EOH | |
command "createuser -U postgres -s root" |
#Four Ways To Do Pub/Sub With jQuery and jQuery UI (in the future)
Between jQuery 1.7 and some of work going into future versions of jQuery UI, there are a ton of hot new ways for you to get your publish/subscribe on. Here are just four of them, three of which are new.
(PS: If you're unfamiliar with pub/sub, read the guide to it that Julian Aubourg and I wrote here http://msdn.microsoft.com/en-us/scriptjunkie/hh201955.aspx)
##Option 1: Using jQuery 1.7's $.Callbacks() feature:
log_level :info | |
log_location STDOUT | |
node_name 'solo' | |
client_key File.expand_path('../solo.pem', __FILE__) | |
cache_type 'BasicFile' | |
cache_options( :path => File.expand_path('../checksums', __FILE__)) | |
cookbook_path [ File.expand_path('../../cookbooks', __FILE__) ] |
There is no span1..15
styles, instead your css defines your layout and your html remains semantic and not polluted with display information. As it should be.
The markup is incredibly easy, you specify the wrappers width, and then each columns width in percentages. Every other grid framework I've found is incredibly complicated with this.
It allows you to have the exact same markup, and completely different styles for different devices, resolutions, stylesheets, whatever. As it should be.
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
--colour | |
-I app |
require 'rubygems' | |
require 'chef/encrypted_data_bag_item' | |
secret = Chef::EncryptedDataBagItem.load_secret('data_bag_key') | |
data = {"id" => "mysql", "root" => "some secret password"} | |
encrypted_data = Chef::EncryptedDataBagItem.encrypt_data_bag_item(data, secret) | |
FileUtils.mkpath('data_bags/passwords') | |
File.open('data_bags/passwords/mysql.json', 'w') do |f| | |
f.print encrypted_data.to_json |
generate | |
rails plugin new importable --dummy-path=spec/dummy --full --mountable -T | |
add to gemspec | |
s.add_dependency 'jquery-rails' | |
s.add_dependency 'sass-rails' | |
s.add_dependency 'bootstrap-sass', '~> 2.0.3' |