View trace_gc
node --max_old_space_size=8192 --trace-gc index.js
View orderHash.js
const {soliditySHA3} = require('ethereumjs-abi')
const BN = require('bn.js')
const orderHash = soliditySHA3([
'address',
'address',
'address',
'address',
'address',
'address',
View sha3.go
package main
import (
"encoding/hex"
"fmt"
"github.com/ethereum/go-ethereum/crypto/sha3"
)
func main() {
hash := sha3.NewKeccak256()
View IsEqualJson.go
import (
"encoding/json"
"reflect"
)
func IsEqualJson(s1, s2 string) (bool, error) {
var o1 interface{}
var o2 interface{}
View subdomains.txt
This file has been truncated, but you can view the full file.
www
mail
remote
blog
webmail
server
ns1
ns2
smtp
View cowsay.sh
# list all files
cowsay -l
# http://sprunge.us/jNgC
View Dockerfile
FROM golang:latest
# ...
RUN mkdir -p $GOROOT/src/github.com/MY_ORG
# fetch private repo example
RUN git clone -b go https://MY_AUTH_TOKEN:x-oauth-basic@github.com/MY_ORG/MY_REPO.git $GOPATH/src/github.com/MY_ORG/MY_REPO
# go get public repo example
View pgdump.sh
pg_dump --no-privileges --no-owner -s mydb > schema.sql
View slack.py
import requests
token = 'xoxp-abc'
channel = 'some-channel'
text = 'hello'
bot_name = 'Bot'
payload = data = {'token': token, 'channel': channel, 'text': text, 'username': bot_name}
r = requests.post('https://slack.com/api/chat.postMessage', payload)
View slack.sh
TOKEN="xoxp-abc"
CHANNEL="some-channel"
TEXT="hello"
curl -X POST "https://slack.com/api/chat.postMessage" -d "token=$TOKEN&channel=$CHANNEL&text=$TEXT"