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
Vagrant::Config.run do |config| | |
config.vm.define :master do |master_config| | |
master_config.vm.box = "precise64" | |
master_config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
master_config.vm.network :hostonly, "192.168.33.10" | |
master_config.vm.provision :chef_solo do |chef| | |
chef.add_recipe "redisio::install" | |
chef.add_recipe "redisio::enable" | |
chef.json = { |
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
function vcs_branch { | |
local format | |
if [[ $# -lt 1 ]]; then | |
format="%s" | |
else | |
format=$1 | |
fi | |
local branch=`_branch` | |
if [[ -n $branch ]]; then | |
printf $format $branch |
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
#!/bin/env python | |
def main(name): | |
import gconf | |
import pickle | |
client = gconf.Client() | |
for p in client.all_dirs('/apps/gnome-terminal/profiles'): | |
visible_name = client.get_value('%s/visible_name' % p) | |
print name |
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
#!/bin/env python | |
def main(): | |
import gnomekeyring | |
for keyring in gnomekeyring.list_keyring_names_sync(): | |
for id in gnomekeyring.list_item_ids_sync(keyring): | |
item = gnomekeyring.item_get_info_sync(keyring, id) | |
print 'display name: ' + item.get_display_name() | |
print 'secret: ' + item.get_secret() | |
print 'attributes: ' |
NewerOlder