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
data_directory = '/var/lib/postgresql/9.0/main' | |
hba_file = '/etc/postgresql/9.0/main/pg_hba.conf' | |
ident_file = '/etc/postgresql/9.0/main/pg_ident.conf' | |
external_pid_file = '/var/run/postgresql/9.0-main.pid' | |
#------------------------------------------------------------------------------ | |
# CONNECTIONS AND AUTHENTICATION | |
#------------------------------------------------------------------------------ |
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 'rake' | |
desc "Install dot files as symbolic links" | |
task :install do | |
dots = File.join(Dir.getwd, "home") | |
home = Dir.home | |
backup = File.join(home, ".backup-dotfiles") | |
Dir.mkdir(backup) unless File.directory?(backup) | |
files = Dir.entries(dots) - [".", ".."] | |
files.each do |file| |
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
# definitely DON'T use Ctrl+b. lame. | |
unbind C-b | |
# Ctrl+a is a safe choice, I guess | |
# set -g prefix C-a | |
# I never use the Insert key on the console, but it is a bit of a stretch | |
# set -g prefix IC | |
# ` is a cool prefix | |
set -g prefix ` |
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
description "redis server" | |
start on runlevel [2345] | |
stop on shutdown | |
exec /opt/redis/redis-server /opt/redis/redis.conf | |
respawn |
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
# Redis configuration file example | |
# Note on units: when memory size is needed, it is possible to specifiy | |
# it in the usual form of 1k 5GB 4M and so forth: | |
# | |
# 1k => 1000 bytes | |
# 1kb => 1024 bytes | |
# 1m => 1000000 bytes | |
# 1mb => 1024*1024 bytes | |
# 1g => 1000000000 bytes |
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
Show hidden characters
// This goes in ~/.config/sublime-text-2/Packages/User/Base File.sublime-settings | |
{ | |
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme", | |
// The number of spaces a tab is considered equal to | |
"tab_size": 2, | |
// Set to true to insert spaces when tab is pressed | |
"translate_tabs_to_spaces": true | |
} |
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
// This goes in ~/.config/sublime-text-2/Packages/User/Default (Linux).sublime-keymap | |
[ | |
{ "keys": ["ctrl+up"], "command": "select_lines", "args": {"forward": false} }, | |
{ "keys": ["ctrl+down"], "command": "select_lines", "args": {"forward": true} }, | |
{ "keys": ["alt+shift+up"], "command": "scroll_lines", "args": {"amount": 1.0 } }, | |
{ "keys": ["alt+shift+down"], "command": "scroll_lines", "args": {"amount": -1.0 } } | |
] |
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
[user] | |
name = Carl Zulauf | |
email = [email protected] | |
[alias] | |
st = status | |
d = diff | |
co = checkout | |
ci = commit -v | |
cia = commit -v -a | |
b = 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
ruby-1.9.2-p290 :073 > Sample::LANGUAGES.select{|e| e[1] == "text/html"}.any? | |
=> true | |
ruby-1.9.2-p290 :074 > Sample::LANGUAGES.select{|e| e[1] == "text/htmld"}.any? | |
=> false |
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
development: | |
user: | |
home: http://example.com | |
some link: http://someplace.com | |
admin: | |
home: http://admin.example.com |
OlderNewer