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
# Add this to your .bash_profile, or where ever you prefer. | |
function tname { | |
printf "\e]1;$1\a" | |
} | |
function wname { | |
printf "\e]2;$1\a" | |
} |
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 'chef/config' | |
require 'chef/webui_user' | |
Chef::Config.from_file(File.expand_path("~/.chef/knife.rb")) | |
user = Chef::WebUIUser.load('admin') | |
user.set_password("MyAwesomePassword") | |
user.save |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
config.vm.define :server do |server_config| | |
server_config.vm.customize ["modifyvm", :id, "--name", "server", "--memory", "1024"] | |
server_config.vm.box = "precise64_ruby193p194" | |
server_config.vm.box_url = "https://s3.amazonaws.com/kazumlabs-vagrant-boxes/precise64_ruby193p194.box" | |
server_config.vm.host_name = "server" | |
server_config.vm.forward_port 22, 2222, :auto => true |
NewerOlder