These are some notes on infrastructure & deployment.
View Vendor Trash
Sorted by sell value, low to high. Not always | |
accurate, but this seems to be the general pattern. | |
Item classes on the same line generally have | |
the same value. | |
2H Weapons | |
1H Weapons | |
Ranged | |
Plate Chest/Legs | |
Sheild |
View Clean Branch
git symbolic-ref HEAD refs/heads/newbranch | |
rm .git/index | |
git clean -fdx | |
<do work> | |
git add your files | |
git commit -m 'Initial commit' |
View mount.rb
require "rubygems" | |
require "gruff" | |
graph = Gruff::Line.new | |
graph.title = "Drop the damn mount already..." | |
graph.data("%", (1..800).map { |y| (1 - (0.99 ** y)) * 100 }) | |
graph.labels = {0 => "1", 50 => "50", 100 => "100", 250 => "250", 500 => "500", 750 => "750+"} |
View Replacing forked repo's master branch with my own
git clone git@github.com:user_a/repo.git | |
cd repo | |
git branch -m master old-master | |
git symbolic-ref HEAD refs/heads/new-master | |
rm .git/index | |
git clean -fdx | |
# add a remote for user_b's repo, call it, say, user_b | |
git pull user_b master:new-master | |
git branch -m new-master master | |
git push origin master |
View install-ruby.sh
mkdir -p ~/src | |
SetFile -a "V" ~/src | |
cd ~/src | |
curl -O ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.9.1-p243.tar.gz | |
tar xzvf ruby-1.9.1-p243.tar.gz | |
cd ruby-1.9.1-p243/ | |
autoconf | |
./configure --program-suffix=19 --enable-shared --with-readline-dir=/usr/local --enable-pthread CFLAGS=-D_XOPEN_SOURCE=1 | |
make && sudo make install |
View host_ip_info.rb
=begin | |
host_ip_info.rb (http://gist.github.com/169374) | |
Copyright (c) 2009 Jason L Perry | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
View time_lapse.rb
# requires "isightcapture" in the cwd (http://www.intergalactic.de/pages/iSight.html) | |
INTERVAL = 20 | |
@t1 = Time.now - INTERVAL | |
while true | |
@t2 = Time.now | |
if @t2 - @t1 >= INTERVAL | |
@t1 = @t2 |
View README
Try it like: | |
> curl http://gist.github.com/raw/179812/b4c828dec41437839dec8a74b2aff03227145ce2/sassy.rb | ruby | |
Actually... damn that doesn't work. :( I'll figure it out later. |
View hello.rb
require 'sinatra/base' | |
class HelloApp < Sinatra::Base | |
enable :sessions | |
get '/' do | |
"Hello, #{session[:user]}" | |
end | |
post '/' do |
OlderNewer