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
#!/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: ' |
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
#!/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 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 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 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
// ==UserScript== | |
// @name Gmail Ads Blocker | |
// @namespace org.kaorimatz | |
// @include http*://mail.google.com/* | |
// @version 0.0.1 | |
// ==/UserScript== | |
// right ads | |
GM_addStyle(".Bu { display:none; }"); | |
GM_addStyle(".Bu:first-child { display:block; }"); |
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
function _eclipse { | |
local cur=${COMP_WORDS[COMP_CWORD]} | |
COMPREPLY=() | |
if (($COMP_CWORD == 1)); then | |
local i | |
eclipse_home=$SOFTWARE/eclipse | |
COMPREPLY=( $( compgen -W '$( ls -d $eclipse_home-* )' $eclipse_home-$cur ) ) | |
for (( i=0; i < ${#COMPREPLY[@]}; i++ )); do | |
COMPREPLY[i]=${COMPREPLY[i]#$eclipse_home-} |
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
<?xml version="1.0"?> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<title>MOZ CSS COLOR LIST</title> | |
<style type="text/css"> | |
#container { | |
width: 980px; | |
margin: 10px auto; | |
} |
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
#!/usr/bin/python2.7 | |
from mercurial import patch, scmutil, ui, hg | |
from datetime import datetime | |
from time import gmtime | |
from itertools import groupby | |
def changedline(ui, repo, ctx1, ctx2): | |
added, removed = 0, 0 | |
diff = ''.join(patch.diff(repo, ctx1.node(), ctx2.node())) |
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
JS = FileList['*.js'] | |
JS.each do |js| | |
task "#{js}" do | |
sh "perl -pe 's/(^\\s+|\\s+$)//g' < #{js} | xclip -i" | |
end | |
end |
OlderNewer