Skip to content

Instantly share code, notes, and snippets.

View domwoe's full-sized avatar

Dominic Wörner domwoe

View GitHub Profile
@domwoe
domwoe / gist:1085303f6fa4e30400a04feb1c2547bd
Last active April 6, 2024 16:08
Uniswap interface fixes
git clone https://github.com/Uniswap/interface
cd interface
mkdir apps/web/src/utils/__generated__
touch .env.defaults
// Copy & paste
Removing volumes
`docker-compose down -v`
Removing images
`docker-compose down --rmi all`
Fetching updated images
`docker-compose pull`
Start with rebuilding the images
@domwoe
domwoe / cryptoecon_resources
Created June 1, 2018 21:55
crypoeconomics_resources
https://cryptoeconomics.study
@domwoe
domwoe / micropayments.md
Created May 31, 2018 08:08
Micropayment Resources

Szabo on Nanobarter

  • From the Comments (Jim McCoy) > You are correct in stating that there are a lot of resources which can potentially be turned into commodities, but building a market for the resources does not mean that anyone will show up to play. This is the hard part, and you are competing against entrenched players whose centralized systems are large and ruthlessly efficient given the constraints of centralization. Getting a hook into something that people want to do where a resource market has enough breathing space to not get crushed by someone with a big, dumb, and simple alternative is a difficult hurdle to get over. As a simple example, the distributed storage model that something like amd-tahoe exemplifies is one of those areas that at first glance seems ideal for this sort of an application, but in fact is easier and cheaper to provide in a centralized manner. You need to find something that is either poorly served by centralizati
@domwoe
domwoe / bitcoin_resources.md
Last active June 1, 2018 21:28
Bitcoin Resources
docker-compose build
docker-compose up -d
# Enter bash inside CONTAINER
sudo docker exec -i -t CONTAINER bash
# Show logs
docker logs CONTAINER
# Disk usage
df -h
du -sh
# Disks and partitions
lsblk
# Raid config tool
mdadm
geth --testnet --rpcapi "eth,net,web3" --rpc --rpcport "8545" --fast --rpccorsdomain "*"
@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