Skip to content

Instantly share code, notes, and snippets.

View brilon's full-sized avatar
🍊
Focusing

Ethan brilon

🍊
Focusing
View GitHub Profile
#!/bin/bash
# remove exited containers:
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v
# remove unused images:
docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi
# remove unused volumes:
find '/var/lib/docker/volumes/' -mindepth 1 -maxdepth 1 -type d | grep -vFf <(
@brilon
brilon / gox.text
Created February 12, 2017 11:01 — forked from achun/gox.text
go get golang.org/x
go get -u golang.org/x/crypto/bcrypt
go get -u golang.org/x/crypto/blowfish
go get -u golang.org/x/crypto/bn256
go get -u golang.org/x/crypto/cast5
go get -u golang.org/x/crypto/curve25519
go get -u golang.org/x/crypto/hkdf
go get -u golang.org/x/crypto/md4
go get -u golang.org/x/crypto/nacl/box
go get -u golang.org/x/crypto/nacl/secretbox
go get -u golang.org/x/crypto/ocsp
@brilon
brilon / user.txt
Created October 27, 2012 21:18
修复dabr登录时的错误
关键词:奶瓶腿,dabr, 大波,推特,twitter, tweet, oauth, proxy, itap
登录奶瓶腿、大波时,出现无法登录推特的情况,错误信息为:
404: {"errors":[{"message":"Sorry, that page does not exist","code":34}]}
出现问题的原因并不是因为oauth代理(比如itap),而是因为之前一直用version 0的api登录
解决方法