Skip to content

Instantly share code, notes, and snippets.

View hayesgm's full-sized avatar

Geoff Hayes hayesgm

View GitHub Profile
@hayesgm
hayesgm / m
Created December 11, 2011 06:04
maneesh
dgdfgfd
@hayesgm
hayesgm / gist:9200567
Created February 25, 2014 01:01
Keybase
### Keybase proof
I hereby claim:
* I am hayesgm on github.
* I am hayesgm (https://keybase.io/hayesgm) on keybase.
* I have a public key whose fingerprint is 0B37 1A42 F83F 791D 4A72 5FDF DF35 7AF9 A69E F19B
To claim this, I am signing this object:
@hayesgm
hayesgm / baseExtensions
Last active August 29, 2015 14:07
Base Extensions for Lash
[
{
"id": "com.hayesgm.background-colorer",
"name" : "Background Colorer",
"desc": "Change background colors to blue.",
"pageScript": "document.body.style.background = 'blue';"
},
{
"id": "com.hayesgm.rotater",
"name" : "Rotater",
@hayesgm
hayesgm / df -h
Last active August 29, 2015 14:20
disk space
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 59G 55G 1.4G 98% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 2.0G 4.0K 2.0G 1% /dev
tmpfs 396M 472K 395M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 5.5M 2.0G 1% /run/shm
none 100M 0 100M 0% /run/user
flynn-default/aaadcd6d70a049cda7d1fdb500b317df 84G 20M 84G 1% /var/lib/flynn/volumes/zfs/mnt/aaadcd6d70a049cda7d1fdb500b317df
flynn-default/53903094e78d4f80864215b46cee3e57 92G 8.2G 84G 9% /var/lib/flynn/volumes/zfs/mnt/53903094e78d4f80864215b46cee3e57
console.log("hi")
/**
* React v0.15.0-alpha
*
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
/**
* React v0.15.0-alpha
*
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
@hayesgm
hayesgm / simple_block_loader.exs
Last active October 19, 2018 13:24
Simple Block Loader
# ETHEREUM_SCHEME=https ETHEREUM_HOST="ropsten.infura.io" ETHEREUM_PORT=443 iex -S mix
Application.put_env(EVM, :debugger, true)
EVM.Debugger.Breakpoint.init()
EVM.Debugger.Breakpoint.set_breakpoint(%EVM.Debugger.Breakpoint{conditions: [address: <<188, 31, 252, 22, 32, 218, 20, 104, 98, 74, 89, 108, 184, 65, 211, 94, 107, 47, 31, 182>>]})
load_hex = fn("0x" <> hex_string) ->
padded_hex_string = if rem(byte_size(hex_string), 2) == 1, do: "0" <> hex_string, else: hex_string
{:ok, hex} = Base.decode16(padded_hex_string, case: :lower)
@hayesgm
hayesgm / MoneyMarketABI.json
Last active May 18, 2018 20:42
Compound Money Market ABI
[
{
"constant": true,
"inputs": [],
"name": "maxLiquidationDiscountRateBPS",
"outputs": [
{
"name": "",
"type": "uint16"
}
@hayesgm
hayesgm / PriceOracleABI.json
Created January 25, 2018 01:23
Compound Price Oracle ABI
[
{
"type": "function",
"stateMutability": "nonpayable",
"payable": false,
"outputs": [
{
"type": "bool",
"name": ""
}
@hayesgm
hayesgm / FaucetTokenABI.json
Last active February 16, 2018 22:11
Compound Faucet Token ABI
[
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}