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/env ruby | |
require 'rubygems/format' | |
require 'thread' | |
queue = Queue.new | |
Dir["gems/*.gem"].sort.each do |gem| | |
#puts "Processing #{gem}" |
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
client = Dalli::Client.new( 'localhost:11222') | |
if ARGV.include?("-ro") | |
result = client.get("hello") | |
puts "Result #{result.class}" | |
puts "Result #{result} " | |
exit 0 | |
end | |
client.set("hello", { :this => :is, :a => :new, :world => :yes } ) |
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
SELECT idx.relname as table, | |
idx.indexrelname as index, | |
pg_relation_size( idx.indexrelname::text )/1024/1024 as bytes, | |
cls.relpages as pages, | |
cls.reltuples as tuples, | |
idx.idx_scan as scanned, | |
idx.idx_tup_read as read, | |
idx.idx_tup_fetch as fetched | |
FROM pg_stat_user_indexes idx, | |
pg_class cls , |
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
# Change the default branch (which is used after git clone your-repo) to branch develop | |
# Be sure to run this on the remote repository, this cannot be pushed (as far as I know) | |
git symbolic-ref HEAD refs/heads/develop | |
# don't forget to delete master afterwards | |
git branch -d master | |
# or if you want to do it remote | |
git push origin :master |
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
# prerequisite: | |
# mkdir -p ~/Library/init; cd ~/Library/init; git clone http://github.com/marcoow/dotfiles.git | |
source ~/Library/init/dotfiles/.bash_completion.d/git-completion.bash | |
export PS1='\[\033[1;39m\]\u@\W$(__git_ps1 " [\[\033[1;34m\]%s\[\033[1;39m\]]") > ' |
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
- content_for :javascript do | |
:plain | |
alert("Hello"); |