create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| import _pylibmc, pylibmc | |
| from time import time, sleep | |
| mc = pylibmc.Client(["127.0.0.1:11211", "127.0.0.1:11212"]) | |
| mc.behaviors.update({"remove_failed": 2, | |
| "ketama": True, | |
| "ketama_hash": True, | |
| "_retry_timeout": 2}) | |
| print "libmemcached", _pylibmc.libmemcached_version |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| <!doctype html> | |
| <title>Site Maintenance</title> | |
| <style> | |
| body { text-align: center; padding: 150px; } | |
| h1 { font-size: 50px; } | |
| body { font: 20px Helvetica, sans-serif; color: #333; } | |
| article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
| a { color: #dc8100; text-decoration: none; } | |
| a:hover { color: #333; text-decoration: none; } | |
| </style> |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| /* | |
| * Implementation of the benchmark tool. | |
| */ | |
| #include "benchmark.h" | |
| #ifndef __cplusplus | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> |
| def symbolize_keys(obj) | |
| case obj | |
| when Array | |
| obj.inject([]){|res, val| | |
| res << case val | |
| when Hash, Array | |
| symbolize_keys(val) | |
| else | |
| val | |
| end |
| # Railscast | |
| http://railscasts.com/episodes/308-oh-my-zsh | |
| # Install Zsh | |
| sudo apt-get update && sudo apt-get install zsh | |
| # Install Oh-my-zsh | |
| wget –no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O – | sh | |
| # Make ZSH default shell |
| #!/usr/bin/env python | |
| """ | |
| Convert camel-case to snake-case in python. | |
| e.g.: CamelCase -> snake_case | |
| e.g.: snake_case -> CamelCase | |
| e.g.: CamelCase -> dash-case | |
| e.g.: dash-case -> CamelCase | |
| By: Jay Taylor [@jtaylor] | |
| Me<modifier>: Yahya Kacem <fuj.tyoli@gmail.com> | |
| Original gist: https://gist.github.com/jaytaylor/3660565 |