RBenv not being detected inside tmux
# rbenv versions
system
1.8.7
1.8.7-p358
1.9.2
curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |
IFS="$(printf '\n\t')" | |
mkdir -p ~/.ssh | |
if ! [[ -f ~/.ssh/authorized_keys ]]; then | |
echo "Creating new ~/.ssh/authorized_keys" | |
touch ~/.ssh/authorized_keys | |
fi | |
user=$1 |
transmission-cli
for the torrent client, and nginx
to serve files.seedbox-setup.sh
present in the current directory.#!/usr/bin/ruby | |
# brew install portaudio | |
# gem install bloopsaphone | |
require 'bloops' | |
# the bloops o' phone | |
bloops = Bloops.new | |
bloops.tempo = 150 |
# see http://stackoverflow.com/questions/5880962/how-to-destroy-jobs-enqueued-by-resque-workers - old version | |
# see https://github.com/defunkt/resque/issues/49 | |
# see http://redis.io/commands - new commands | |
namespace :resque do | |
desc "Clear pending tasks" | |
task :clear => :environment do | |
queues = Resque.queues | |
queues.each do |queue_name| | |
puts "Clearing #{queue_name}..." |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
/** | |
* jQuery: animate background position | |
* Author: Marc Löhe | |
* Based on a work by Alexander Farkas | |
*/ | |
(function ($) { | |
$.extend($.fx.step,{ | |
backgroundPosition: function(fx) { | |
if (fx.state === 0) { |
var net = require('net'), | |
irc = {}, config; | |
config = { | |
user: { | |
nick: '', | |
user: '', | |
real: '', | |
pass: '' | |
}, |