These are some notes on infrastructure & deployment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git symbolic-ref HEAD refs/heads/newbranch | |
rm .git/index | |
git clean -fdx | |
<do work> | |
git add your files | |
git commit -m 'Initial commit' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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+"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone [email protected]: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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra/base' | |
class HelloApp < Sinatra::Base | |
enable :sessions | |
get '/' do | |
"Hello, #{session[:user]}" | |
end | |
post '/' do |
OlderNewer