Skip to content

Instantly share code, notes, and snippets.

View domwoe's full-sized avatar

Dominic Wörner domwoe

View GitHub Profile
Verifying I am +domwoe on my passcard. https://onename.com/domwoe

Keybase proof

I hereby claim:

  • I am domwoe on github.
  • I am domwoe (https://keybase.io/domwoe) on keybase.
  • I have a public key whose fingerprint is DF16 9D6B 4E69 0EBD EE02 77D6 39D3 7162 2F90 BCFE

To claim this, I am signing this object:

On Remote machine:
tmux
jupyter notebook --no-browser
On local machine:
ssh -NL 8157:localhost:8888 user@host
Point browser to http://localhost:8157
credit: http://www.datasciencebytes.com/bytes/2015/12/18/using-jupyter-notebooks-securely-on-remote-linux-machines/
@domwoe
domwoe / gist:ddce705eddfc7a16f5edee844cbe3c96
Created August 9, 2016 00:57
Bitcoin Wizards Post Quantum Bitcoin
gmaxwell
What sipa is referring to is a construction where you do a IF { AREWEPOSTQUANTUMYET_VERIFY standard checksig } ELSE { HASHBASED_PUBKEY }... and then after doomsday you just turn AREWEPOSTQUANTUMYET abort on execution.
-> Hash based signatures are quantum proof and we can soft-fork introduce a AREWEPOSTQUANTUMYET_VERIFY flag to deactive ECDSA signstures
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//' | xargs sudo ifconfig en0 ether
contract pool {
address reinsurer;
address underwriter;
uint reinsuranceFee;
uint insuredID = 0;
uint claimID = 0;
@domwoe
domwoe / web3pool
Last active November 19, 2016 02:39
var poolContract = web3.eth.contract([{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"insurences","outputs":[{"name":"beneficiary","type":"address"},{"name":"premium","type":"uint256"},{"name":"insurableAmount","type":"uint256"},{"name":"paymentPending","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"getBalance","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"insured","type":"address"},{"name":"beneficiary","type":"address"},{"name":"premium","type":"uint256"},{"name":"insurableAmount","type":"uint256"}],"name":"approveUnderwriting","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balances","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"payPremium","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"doSettlement","outputs":[],"payable":false,"type":"func
geth --testnet --rpcapi "eth,net,web3" --rpc --rpcport "8545" --fast --rpccorsdomain "*"
# Disk usage
df -h
du -sh
# Disks and partitions
lsblk
# Raid config tool
mdadm
docker-compose build
docker-compose up -d
# Enter bash inside CONTAINER
sudo docker exec -i -t CONTAINER bash
# Show logs
docker logs CONTAINER