Skip to content

Instantly share code, notes, and snippets.

View zofy29's full-sized avatar

Thanh Nguyen zofy29

View GitHub Profile
@holin
holin / composer.rake
Last active December 23, 2020 10:09
monit rails rake task
namespace :app do
desc "排版工作"
task :composer, [:start, :end] => :environment do |task, args|
keep_loop = true
puts "rake app:composer run. I have PID #{Process.pid}"
`echo "#{Process.pid}" > #{Rails.root}/tmp/composer.pid`
`echo "#{Process.ppid}" > #{Rails.root}/tmp/composer.ppid`
@v1nc3ntlaw
v1nc3ntlaw / rbenv-install-system-wide.sh
Last active December 23, 2020 13:57
rbenv install ruby 1.9.3-p448 on Ubuntu 12.04 LTS
#
# Run as root
# $ bash <(curl -s https://raw.github.com/gist/1631411)
#
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential git-core curl \
libssl-dev \