Most basic example of authenticating with Github in node.
Clone this gist, change keys inside
config.js and then hit
npm install && node app.js.
Qlobe is a fascinating example of quine in Ruby, submitted by a member of the Ruby core team - Yusuke Endoh.
Programs that output changed executable versions of themselves while managing to spin the globe and still remaining executable are cool, right?
To experience its magic, run the following
curl -fSSl https://gist.githubusercontent.com/shime/f0ebe84ca42c33b51d42/raw/5e74315dc6b6fe572f8a457536ad7eb17ad3f1e4/qlobe.rb > qlobe.rb; while true; do ruby qlobe.rb | tee temp.rb; sleep 1; mv -f temp.rb qlobe.rb; done
Having trouble installing the latest stable version of tmux?
I know, official package for your OS/distro is outdated and you just want the newest version of tmux.
Well, this script should save you some time with that.
|slow_logfile = File.open(Rails.root.join("log", "slow.log"), 'a')|
|slow_log = Logger.new(slow_logfile)|
|slow_log.level = Logger::INFO|
|ActiveSupport::Notifications.subscribe "process_action.action_controller" do |name, start, finish, id, payload||
|duration = (finish - start) * 1000|
|StatHat::API.ez_post_value("rails request duration", "email@example.com", duration)|
|view_time = 0|
|db_time = 0|