Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env sh
#
# A script to test
# * the creation of a CW20 contract
# * the creation of a CW4 contract
# * the staking of CW20 tokens in the CW4 contract
CW20_CONTRACT_NAME=cw20_base.wasm
CW20_CONTRACT_URL=https://github.com/CosmWasm/cw-plus/releases/download/v0.13.4/cw20_base.wasm
CW4_CONTRACT_NAME=cw4_stake.wasm
wasm.execute(
&vault_address,
&deposit_msg,
&[Coin {
amount: deposit_amount,
denom: base_token.to_string(),
}],
&signer,
)
.unwrap();
#!/usr/bin/env bash
shopt -s nullglob globstar
typeit=0
if [[ $1 == "--type" ]]; then
typeit=1
shift
fi
@shapeshed
shapeshed / reading_list.md
Last active February 1, 2018 14:40
Cryptocurrency Reading List

Privacy

  • [Zerocash][1]
  • [Cryptonote][2]
  • [Mimblewimble][3]
  • [Tumblebit][4]
  • [Hawk][5]
  • [Mobius][6]
  • [Enigma][7]
  • [Dash][8]
@shapeshed
shapeshed / tmux settings
Last active August 29, 2017 15:32
tmux cricket status bar
set-option -g status on
set-option -g status-left-length 80
set-option -g status-interval 2
set-option -g status-left '#(curl -k -L -s http://www.cricinfo.com/ci/engine/match/1031661.html | pup "title text{}" | cut -d "|" -f 1)'
#!/bin/sh
xrandr --output HDMI2 --off --output HDMI1 --primary --mode 3840x2160 --scale 1x1 --pos 0x0 --rotate normal --output DP1 --off --output eDP1 --mode 3840x2160 --pos 0x2160 --rotate normal --output DP2 --off
@shapeshed
shapeshed / ethup.sh
Created August 16, 2017 09:01
ethup - bring up an eth cluster and unlock accounts
#!/usr/bin/env bash
set -eEu -o pipefail
NODES=(node0 node1)
ETHDATA=~/.ethraft
GETH=/home/go/.gvm/pkgsets/go1.8.1/global/src/github.com/ethereum/go-ethereum/build/bin/geth
VERBOSITY=9
for n in ${NODES[@]}; do
0xF436D87D0F0238F1078392cc6c58E7798a81E8fD
@shapeshed
shapeshed / whatsapp_phone_enumerator_floated_div.js
Created May 12, 2017 12:17
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses (floated div)
/*
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses
Floated div edition
01-05-2017
(c) 2017 - Loran Kloeze - loran@ralon.nl
This script creates a UI on top of the WhatsApp Web interface. It enumerates certain kinds
of information from a range of phonenumbers. It doesn't matter if these numbers are part
of your contact list. At the end a table is displayed containing phonenumbers, profile pics,
about texts and online statuses. The online statuses are being updated every
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"net/http/httputil"
"os"
)