Skip to content

Instantly share code, notes, and snippets.

💭
(っ◕‿◕)っ

Tony Crowe tcrowe

💭
(っ◕‿◕)っ
Block or report user

Report or block tcrowe

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
@tcrowe
tcrowe / aion-compile-solidity.js
Created Oct 9, 2018
compile solidity from your aion node
View aion-compile-solidity.js
/*
Example how to:
+ add RPC calls into Aion Web3
+ check which languages the node can compile
+ compile a solidity contract
+ inspect results
💪🏼
@tcrowe
tcrowe / redis-get-set-json.js
Created Sep 13, 2018
simple redis get set with json values
View redis-get-set-json.js
/*
⚠️expires keys in 10min so it's only good for temp data
Install:
npm install redis lodash
Usage:
@tcrowe
tcrowe / aion-create-account.md
Last active Oct 9, 2018
Create Aion account with JavaScript
View aion-create-account.md
@tcrowe
tcrowe / medium-feed.js
Created Sep 10, 2018
process medium.com site feed xml into json into file
View medium-feed.js
/*
medium feed processor:
---
+ npm install async xml2js lodash
+ add urls to feeds array to get more
+ npm run data-medium
*/
@tcrowe
tcrowe / ethersjs-abi-encode-decode.js
Last active Aug 31, 2018
ethersjs abi encode and decode
View ethersjs-abi-encode-decode.js
let ethers = require('ethers')
let abi = new ethers.utils.AbiCoder()
let types = ['address[][]', 'address[][]', 'address[][]']
let params = [[
[
'0x407d73d8a49eeb85d32cf465507dd71d507100c1',
'0x407d73d8a49eeb85d32cf465507dd71d507100c2',
@tcrowe
tcrowe / circle-transaction-raw.js
Created Aug 28, 2018
Circle transactions with the client-side-encoded raw transaction.
View circle-transaction-raw.js
/*
it will send transactions in a circle to each account
import aion account to node:
./aion.sh -a import private-key-hex
*/
let Web3 = require("../../src/index");
@tcrowe
tcrowe / transaction-personal.js
Last active Aug 28, 2018
web3 transaction test: `getBalance` ➡️`unlockAccount` ➡️`sendTransaction`
View transaction-personal.js
/*
it will send transactions in a circle to each account
import aion account to node:
./aion.sh -a import private-key-hex
*/
let Web3 = require('../../src/index')
@tcrowe
tcrowe / optimize-and-shut-up-npm.sh
Last active Oct 7, 2018
optimize and shut-up npm
View optimize-and-shut-up-npm.sh
# fill this out for npm init
npm config set -g init-version "0.1.0"
npm config set -g init-license "UNLICENSED"
npm config set -g init-author-url ""
npm config set -g init-author-email ""
npm config set -g init-author-name ""
npm config set -g send-metrics false
npm config set -g update-notifier false
@tcrowe
tcrowe / install-i2p.sh
Created May 22, 2018
homebrew brew install i2p over tor socks proxy
View install-i2p.sh
ALL_PROXY=socks5://127.0.0.1:9050 brew install i2p
@tcrowe
tcrowe / keybase.md
Created Oct 29, 2017
keybase proof
View keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

You can’t perform that action at this time.