Skip to content

Instantly share code, notes, and snippets.

Add this to your `.bashrc`:
```
export HISTFILESIZE=
export HISTSIZE=
export HISTFILE=~/.history
export HISTTIMEFORMAT="[%F %T] "
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
export HISTCONTROL=ignoredups
@bhandras
bhandras / bitcoin.md
Last active January 21, 2021 20:25
bitcoin.pdf
bitcoin-cli getrawtransaction 54e48e5f5c656b26c3bca14a8c95aa583d07ebe84dde3b7dd4a78f4e4186e713 | sed 's/0100000000000000/\n/g' | tail -n +2 | cut -c7-136,139-268,271-400 | tr -d '\n'| cut -c17-368600 | xxd -p -r > bitcoin.pdf
### Keybase proof
I hereby claim:
* I am bhandras on github.
* I am bhandras (https://keybase.io/bhandras) on keybase.
* I have a public key ASBG6b4bxWqRK4ttsnEPpo5tFP1F07I5xSTxUey_VlEjxAo
To claim this, I am signing this object:
@bhandras
bhandras / MiniJSON.cs
Created May 5, 2012 19:51 — forked from darktable/MiniJSON.cs
Unity3D: MiniJSON Decodes and encodes simple JSON strings. Not intended for use with massive JSON strings, probably < 32k preferred. Handy for parsing JSON from inside Unity3d.
/*
* Copyright (c) 2012 Calvin Rien
*
* Based on the JSON parser by Patrick van Bergen
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
*
* Simplified it so that it doesn't throw exceptions
* and can be used in Unity iPhone with maximum code stripping.
*
* Permission is hereby granted, free of charge, to any person obtaining