Skip to content

Instantly share code, notes, and snippets.

@oojr
oojr / remove-docker.sh
Last active May 22, 2026 01:44
remove docker completely from computer not installed from brew
# 1. Kill any lingering Docker processes and background daemons
osascript -e 'quit app "Docker"' 2>/dev/null
killall Docker 2>/dev/null
# 2. Delete the main application
rm -rf /Applications/Docker.app
# 3. Nuke the virtual machine data, networks, caches, and application state
rm -rf ~/Library/Containers/com.docker.docker
rm -rf ~/Library/Containers/com.docker.helper
@oojr
oojr / bch-sample.js
Created January 6, 2018 12:20
bch sample code
// check balance
const blocktrail = require('blocktrail-sdk');
const client = blocktrail.BlocktrailSDK({
apiKey: '',
apiSecret: '',
network: 'BCC',
testnet: true
});
@oojr
oojr / address.txt
Created July 7, 2017 02:00
ether testnet address
0x550a9aabaD84EdBd1661F969849A9BDC720cf34d
@oojr
oojr / styles-in-css.css
Created May 5, 2017 03:09
css styles example
.thumbnail {
margin: 5px,
padding: 5px,
background-color: #91969A,
border-radius: 3px,
min-width: 66px
}
.sponsored {
background-color: #F9BF3B,
@oojr
oojr / styles-in-js.js
Last active May 5, 2017 03:11
css-in-js example
class Post extends React.Component {
onSponsorPost(){
if(this.props.post.type === 'sponsored'){
return '#F9BF3B' //gold color
}
}
render(){
// web