Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View evbots's full-sized avatar
🏗️
Building

Evan Botello evbots

🏗️
Building
View GitHub Profile

Keybase proof

I hereby claim:

  • I am evbots on github.
  • I am evbots (https://keybase.io/evbots) on keybase.
  • I have a public key whose fingerprint is 29AF 2EFD D90E 41EC 0030 F12B AB58 F353 0622 2560

To claim this, I am signing this object:

@evbots
evbots / packages.md
Last active February 14, 2017 13:24
Helpful packages that I've found

Homebrew

brew install tree

brew install pyenv

brew install coreutils
# To see absolute path to file
greadlink -f file.txt
Verifying my Blockstack ID is secured with the address 16qZUCUBrziFZ1EuABHAL8HKJRmTczmhbs https://explorer.blockstack.org/address/16qZUCUBrziFZ1EuABHAL8HKJRmTczmhbs
-- See all schemas and who their owners are and what access privileges are
SELECT n.nspname AS "Name",
pg_catalog.pg_get_userbyid(n.nspowner) AS "Owner",
pg_catalog.array_to_string(n.nspacl, E'\n') AS "Access privileges",
pg_catalog.obj_description(n.oid, 'pg_namespace') AS "Description"
FROM pg_catalog.pg_namespace n
WHERE n.nspname !~ '^pg_' AND n.nspname <> 'information_schema'
ORDER BY 1;
// ZRX Token Example
var request = require("request");
var options = {
method: 'GET',
url: 'https://api.chainrelay.com/v0/1/events/0xe41d2489571d322189246dafa5ebde1f4699f498',
qs: { token: 'YOUR_API_TOKEN', fromBlock: '6100000' }
};
request(options, function (error, response, body) {
# CryptoKitties Example
curl --request GET \
--url "https://api.chainrelay.com/v0/1/events/0x06012c8cf97bead5deae237070f9587f8e7a266d?token=YOUR_API_TOKEN&fromBlock=6280267"
{
"query": {
"fromBlock": 6280267,
"toBlock": 6281267
},
"events": [
{
"address": "0x06012c8cf97BEaD5deAe237070F9587f8E7A266d",
"blockNumber": 6280268,
"transactionHash": "0xe2fbf49c9370bd21e4f40c346066e537ec8e0ac990d8b2cdbf6f861c973983ae",
@evbots
evbots / rinkeby
Created October 26, 2018 15:46
gist for rinkeby
0xE4F6395354D346FA8d94a0AA1D65a7e773D01EBA