Skip to content

Instantly share code, notes, and snippets.


Michael Schuett michaeljs1990

Block or report user

Report or block michaeljs1990

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:1a7b29ab2c52c710c3ac
! function(e) {
t = 0;
for (n in e) "object" == typeof e[n] && (p = e[n].getElementsByClassName("amountColumn")[0].innerText, t += Number(p.replace(/[^0-9\.]+/g, "")))
View gist:56c02bcf534c7925954a
class Arcanist < Formula
version "master"
desc "Phabricator Arcanist Tool"
homepage ""
url ""
sha256 "b9cdacaf06c1a6f817e450a5d16e9b0a531f8d68cefa33c83c0a6646ae3e42a3"
resource "libphutil" do
url ""
sha256 "fc01b48bc922a660e46b4fe1ae5f42862e02c5a0bf3ff51d76ab95a5cc45252c"
michaeljs1990 /
Created Jul 14, 2015
arc install brew
| => brew install arcanist
Error: arcanist is a head-only formula
Install with `brew install --HEAD arcanist`
/usr/local @ michael (mschuett)
| => brew install --HEAD arcanist
==> Cloning
Updating /Library/Caches/Homebrew/arcanist--git
==> Checking out branch master
==> Downloading
Already downloaded: /Library/Caches/Homebrew/arcanist--libphutil-HEAD.tar.gz
View info
# Directory structure
# command run ansible-playbook playbook.yml -i vagrant
# ansible-rabbitmq is this repo
# using galaxy test branch for testing
View test
default ansible_ssh_host= ansible_ssh_user=vagrant ansible_ssh_private_key_file=~/.vagrant.d/insecure_private_key
def todict(obj, classkey=None):
if isinstance(obj, dict):
data = {}
for (k, v) in obj.items():
data[k] = todict(v, classkey)
return data
elif hasattr(obj, "_ast"):
return todict(obj._ast())
elif hasattr(obj, "__iter__"):
return [todict(v, classkey) for v in obj]
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| = "ubuntu/trusty64" "private_network", ip: ""
config.vm.provider "virtualbox" do |vm|
View bash
#command line
ansible-playbook playbook.yml -i inventory
View Dockerfile
FROM haproxy:1.5
COPY src/haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
CMD sh -c "haproxy -f /usr/local/etc/haproxy/haproxy.cfg"
/* Sets up a socket using javaScript that then listens
for transations and writes them to the screen. */
var wSocket = "ws://";
function getBlockchainJSON() {
webSocket = new WebSocket(wSocket);
webSocket.onopen = function() { onOpen() };
webSocket.onmessage = function(evt) { onMsg(evt) };
You can’t perform that action at this time.