Skip to content

Instantly share code, notes, and snippets.

@mikegi
mikegi / shift
Created April 11, 2016 11:16
shift data scripts...
# some one liners for checking shift genesis_transition information
# https://github.com/shiftcurrency/shift
# remove the json formatting
sed -e 's/\"//g' -e 's/[{},]//g'
# get balances and sum them. (sed)
grep balance shift_2.5.0.json | sed -e 's/\"//g' -e 's/[{},]//g' |cut -d ":" -f 3 |python -c "import sys; print sum(int(l) for l in sys.stdin)"
# sorted list of balances
@mikegi
mikegi / notes
Last active August 29, 2015 14:14
Easylink M-mini AR9331 notes
$nmap -A 192.168.1.1
...
PORT STATE SERVICE VERSION
22/tcp open ssh Dropbear sshd 2014.63 (protocol 2.0)
53/tcp open domain dnsmasq 2.66
| dns-nsid:
|_ bind.version: dnsmasq-2.66
80/tcp open http LuCI Lua http config
|_http-title: Site doesn't have a title (text/html).
|_http-methods: No Allow or Public header in OPTIONS response (status code 400)