Skip to content

Instantly share code, notes, and snippets.

gnoland start
gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/demo/xx -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1
stdout OK!
gnokey maketx addpkg -pkgdir $WORK/other -pkgpath gno.land/r/demo/yy -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1
stdout OK!
# This will succeed but maybe we want to change it so it doesn't.
gnokey maketx call -pkgpath gno.land/r/demo/yy -func SaveRef -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1
### Keybase proof
I hereby claim:
* I am deelawn on github.
* I am deelawn (https://keybase.io/deelawn) on keybase.
* I have a public key ASAfKXT0l4U_dpZghG4XidGS7g6Wlk7lZhLhlH-a9kDHbwo
To claim this, I am signing this object:
@deelawn
deelawn / main.go
Created June 4, 2019 23:39
Generate QR Code
package main
import (
"fmt"
qrcode "github.com/skip2/go-qrcode"
)
func main() {
err := qrcode.WriteFile("https://deelawn.ninja", qrcode.Medium, 256, "qr.png")
@deelawn
deelawn / shuffle_cards.py
Created May 24, 2018 05:50
prints out a shuffled deck of 52 playing cards
# uses python 2.7
from random import randint
suits = ['C', 'D', 'H', 'S']
values = ['A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K']
pool = [values[:], values[:], values[:], values[:]]
deck = []
while len(suits) != 0:
@deelawn
deelawn / urbit_assist_dict_gen.py
Last active May 10, 2018 00:45
Generates the dictionary for the urbit assist atom package. Pulls data from the urbit docs repository
# after cloning the docs repo, run in the repo's parent directory
'''
Definition of PATH_CONFIG
--------------------------
[
{
"path" : "docs/docs/hoon/rune/",
"parse_here" : true,
"recursive" : false,
@deelawn
deelawn / removeReferrer.js
Created March 20, 2018 07:52
Add a meta tag so any requests from the page do not include its referrer
// Doesn't work in Chrome; only confirmed for Firefox
var remRef = document.createElement('meta');
remRef.name='referrer';
remRef.content='no-referrer';
document.querySelector('head').append(remRef);
@deelawn
deelawn / ssh_oneliner.sh
Created February 5, 2018 22:13
Execute command on a remote server using a password and view the results
expect -c "spawn ssh -oStrictHostKeyChecking=no -oCheckHostIP=no usr@host \"ls;exit\"; expect \"*?assword:*\"; send \"PASSWORD_GOES_HERE\r\"; interact" | awk 'NR>2'