wget http://download.virtualbox.org/virtualbox/4.1.16/VirtualBox-4.1.16-78094-OSX.dmg
open VirtualBox-4.1.16-78094-OSX.dmg
# double click .pkg to install
gem install vagrant --no-ri --no-rdoc
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "net" | |
| "net/http" | |
| "os" |
| #!/usr/bin/env bash | |
| curl https://s3.amazonaws.com/heroku-jvm-buildpack-vi/vim-7.3.tar.gz --output vim.tar.gz | |
| mkdir vim && tar xzvf vim.tar.gz -C vim | |
| export PATH=$PATH:/app/vim/bin |
| // ==UserScript== | |
| // @name BitMex USD Converter | |
| // @namespace https://bitmex.com/ | |
| // @version 0.11 | |
| // @description Get some sanity into your gambling. | |
| // @author koinkraft | |
| // @grant none | |
| // @include https://bitmex.com/* | |
| // @include https://www.bitmex.com/* | |
| // @require https://code.jquery.com/jquery-2.1.4.min.js |
| source :rubygems | |
| # We are not loading Active Record, nor Active Resources etc. | |
| # We can do this in any app by simply replacing the rails gem | |
| # by the parts we want to use. | |
| gem "actionpack", "~> 3.2" | |
| gem "railties", "~> 3.2" | |
| gem "tzinfo" | |
| # Let's use thin |
| # MAC manipulators | |
| alias random_mac='sudo ifconfig en0 ether `openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/.$//"`' | |
| alias restore_mac='sudo ifconfig en0 ether YOUR_ORIGINAL_MAC_ADDRESS_GOES_HERE' |
| require 'net/http' | |
| require 'rack' | |
| # todo | |
| # - detect ssl | |
| # - keepalive? | |
| module Rack | |
| class Forwarder | |
| def initialize(host, port=80) |
| // Matraka's source code decoded and beautified | |
| // by @tlack | |
| // | |
| // Matraka is a 1005 byte Javascript "demo" by p01. It includes an 'evolving animation' | |
| // and great dirty synth music. View here: | |
| // | |
| // http://www.p01.org/releases/MATRAKA/matraka.png.html | |
| // | |
| // I fondly recall the demo scene of my youth, puzzling over the work of Future | |
| // Creators and those guys. I was puzzled by this worked so I had to figure it |
| class ActionDispatch::Routing::Mapper | |
| def draw(routes_name) | |
| instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb"))) | |
| end | |
| end | |
| BCX::Application.routes.draw do | |
| draw :api | |
| draw :account | |
| draw :session |
| source :rubygems | |
| # We are not loading Active Record, nor Active Resources etc. | |
| # We can do this in any app by simply replacing the rails gem | |
| # by the parts we want to use. | |
| gem "actionpack", "~> 3.2" | |
| gem "railties", "~> 3.2" | |
| gem "tzinfo" | |
| # Let's use thin |