Skip to content

Instantly share code, notes, and snippets.

@teohm
teohm / gist:7352915
Created November 7, 2013 11:06 — forked from retr0h/gist:179592
require 'rubygems'
require 'ohai'
@ohai = Ohai::System.new
@ohai.all_plugins
puts @ohai[:platform]
#!/usr/bin/env ruby
require 'rubygems'
gempaths = Gem::default_path
puts
puts "Scanning paths in Gem::default_path for RubyGems with native extensions ..."
puts
@teohm
teohm / agile-vs-fragile-summary.md
Last active April 18, 2019 04:51
Agile vs Fragile - Summary

Agile vs Fragile - Summary

My personal notes on Brian Copeland's blog series: Agile vs Fragile

(If you are unable to access the blog post, try using a US proxy or web-based proxy service e.g. http://hideme.be)

1) Deliver value to customer

  • Agile: focus on deliver valuable software to customer
  • Fragile: focus on meeting delivery period
@teohm
teohm / sshd_config
Created August 15, 2013 09:18
to prevent long running capistrano from ssh connection timeout
# sudo vi /etc/ssh/sshd_config
ClientAliveInterval 18
ClientAliveCountMax 100
# sudo service ssh restart
# exit
rubygems:
capybara-webkit:
ubuntu:
default:
- libqt4-dev
- libqtwebkit-dev
mac_os_x:
default: qt
ruby-tesseract-ocr:
mac_os_x:
# First install tmux
brew install tmux
# For mouse support (for switching panes and windows)
# Only needed if you are using Terminal.app (iTerm has mouse support)
Install http://www.culater.net/software/SIMBL/SIMBL.php
Then install https://bitheap.org/mouseterm/
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/
set :sync_directories, ["public/assets", "public/galleries"]
set :sync_backups, 3
deploy
--
starting
started
updating
updated
publishing
published
finishing_deploy
finished
@teohm
teohm / cap3-hooks-attempt1.txt
Last active December 19, 2015 13:40
An attempt to reason about Capistrano v3 flow, by renaming the hooks. I'm not suggesting to rename all hooks in Capistrano v3. It is used only to help me to group tasks into the correct hooks.
deploy
--
start
new_release
new_release_ready
publish
cleanup
finish
rollback