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 'metaid' | |
class Person | |
end | |
def add_hello klass | |
klass.send :meta_def, :hello, do | |
"Hello!" | |
end | |
end |
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
$ dscacheutil -flushcache | |
To do the same in 10.7 and 10.8, run this command: | |
$ sudo killall -HUP mDNSResponder |
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
source 'https://rubygems.org' | |
gem 'rails', '3.2.3' | |
# Database | |
gem 'pg' | |
gem "foreigner" | |
# Improvements | |
gem 'inherited_resources' |
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
$ fuse-ext2 /dev/disk1s1 /Volumes/test/ -o force |
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
$ sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add 'postgres' | |
$ sudo defaults write /Library/Preferences/com.apple.loginwindow SHOWOTHERUSERS_MANAGED -bool 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
$ rm /home/USER/.local/share/zeitgeist/activity.sqlite | |
$ zeitgeist-daemon --replace |
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
" Vim syntax file | |
" Language: Slim | |
" Maintainer: Andrew Stone <[email protected]> | |
" Version: 1 | |
" Last Change: 2010 Sep 25 | |
" TODO: Feedback is welcomed. | |
" Quit when a syntax file is already loaded. | |
if exists("b:current_syntax") | |
finish |
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
[core] | |
excludesfile = /Users/josemarluedke/.gitignore | |
[color] | |
diff = auto | |
ui = true | |
[alias] | |
s = status | |
ci = commit -m | |
p = push | |
[push] |
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
load 'deploy' | |
load 'deploy/assets' # Assets pipeline for Rails application | |
load 'config/deploy' |
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
# sudo apt-get install postgresql libpq-dev postgresql-contrib | |
$ sudo -u postgres createuser some_user | |
$ cd /etc/init.d/ | |
$ sudo -u postgres psql template1 | |
template1=# ALTER USER some_user WITH PASSWORD 'some_password'; | |
# Edit |
OlderNewer