Skip to content

Instantly share code, notes, and snippets.

Geoff Hayes hayesgm

Block or report user

Report or block hayesgm

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
@hayesgm
hayesgm / FaucetTokenABI.json
Last active Feb 16, 2018
Compound Faucet Token ABI
View FaucetTokenABI.json
[
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}
@hayesgm
hayesgm / PriceOracleABI.json
Created Jan 25, 2018
Compound Price Oracle ABI
View PriceOracleABI.json
[
{
"type": "function",
"stateMutability": "nonpayable",
"payable": false,
"outputs": [
{
"type": "bool",
"name": ""
}
@hayesgm
hayesgm / MoneyMarketABI.json
Last active May 18, 2018
Compound Money Market ABI
View MoneyMarketABI.json
[
{
"constant": true,
"inputs": [],
"name": "maxLiquidationDiscountRateBPS",
"outputs": [
{
"name": "",
"type": "uint16"
}
@hayesgm
hayesgm / simple_block_loader.exs
Last active Oct 19, 2018
Simple Block Loader
View simple_block_loader.exs
# 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)
View ReactTest.js
/**
* 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.
*
View ReactDOM-Custom
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.
@hayesgm
hayesgm / df -h
Last active Aug 29, 2015
disk space
View df -h
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
@hayesgm
hayesgm / baseExtensions
Last active Aug 29, 2015
Base Extensions for Lash
View baseExtensions
[
{
"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",
View gist:9200567
### 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:
View m
dgdfgfd
You can’t perform that action at this time.