Skip to content

Instantly share code, notes, and snippets.

View jonstokes's full-sized avatar

Jon Stokes jonstokes

View GitHub Profile
@jonstokes
jonstokes / print.js
Created January 6, 2022 06:07 — forked from gfodor/print.js
print all users to console
javascript:console.log(Object.values(window.APP.hubChannel.presence.state).map(v => v.metas[0].profile.displayName).join(","));
@jonstokes
jonstokes / gist:f61d3ec2a9ec4b3736320b8dace6c235
Created July 9, 2017 00:56 — forked from kalmbach/gist:4471560
Rake task sugar for Sequel Migrations (version, migrate, rollback, reset)
namespace :db do
require "sequel"
Sequel.extension :migration
DB = Sequel.connect(ENV['DATABASE_URL'])
desc "Prints current schema version"
task :version do
version = if DB.tables.include?(:schema_info)
DB[:schema_info].first[:version]
end || 0

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from the App Store.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.

Setup new Mac with OSX Mountain Lion from scratch

These commands are good as of 2013-1-8.

Install The latest XCode from the App Store

App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.

Install Command Line Tools