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
tmux list-sessions | |
tmux attach-session [ -t foo ] | |
tmux new-session -s oneup_postgres | |
Detach: <C-B> d |
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-cli KEYS "resque:*" | xargs redis-cli DEL | |
Resque.queues.each { |q| Resque.redis.del "queue:#{q}" } |
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
Kernel.caller |
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
> Resque.reset_delayed_queue |
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
Install | |
----------------- | |
brew install postgresql | |
initdb /usr/local/var/postgres | |
Startup | |
----------------- | |
# Required if using Launctl | |
If this is your first install, automatically load on login with: |
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
ps -Af | awk '{print $3,$8}' |
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
python -c "import SimpleHTTPServer;SimpleHTTPServer.test()" |
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
Moved to README within Vim Environment repo | |
http://github.com/actaneon/VimEnv/blob/master/README |
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
list untracked, unignored files: git ls-files -o --exclude-standard | |
unstage: git reset HEAD FILE | |
unstage and undo local: git reset --hard HEAD FILE | |
undo unstaged file: git checkout -- FILE | |
undo commit with using new commit: git revert [HEAD|$id] | |
update last commit to include missed adds: git commit --amend (after git add FILE) | |
git push origin :branch #remove remote | |
git remote prune origin |
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
//Using Composition and IoC to add a logging to the IService implementation without violating OCP. | |
//Instantiate with: For<IService>.Use<LoggingService>().Ctor<IService>().Is<SomeService>(); | |
// | |
//create a LoggingService : IService that takes the *real* IService in it's c'tor | |
public class LoggingService : IService | |
{ | |
private IService _realService; | |
private ILogger _log; | |
public LoggingService(IService realService, ILogger log) |
NewerOlder