Skip to content

Instantly share code, notes, and snippets.

View xwh16's full-sized avatar
💘
gotta catch 'em all

xwh16 xwh16

💘
gotta catch 'em all
View GitHub Profile

Keybase proof

I hereby claim:

  • I am xwh16 on github.
  • I am xwh16 (https://keybase.io/xwh16) on keybase.
  • I have a public key ASDClNl79bwYdIM_08CCYyWWenEO6Hxi77q6lrGTuADMhAo

To claim this, I am signing this object:

@xwh16
xwh16 / signal.sol
Created April 10, 2018 02:49
code snippet to test ethereum filters
pragma solidity ^0.4.0;
contract Cui6 {
event signal(uint indexed num);
function testSignal() public {
for (uint i=0; i<10; i++) {
signal(i);
}
}
@xwh16
xwh16 / docker-cleanup-resources.md
Created March 21, 2018 06:41 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm