Skip to content

Instantly share code, notes, and snippets.

Avatar

John Nguyen nii236

View GitHub Profile
View verifysig.js
function verify (hash, signature, Q) {
typeforce(types.tuple(
types.Hash256bit,
types.ECSignature,
types.ECPoint
), arguments)
var n = secp256k1.n
var G = secp256k1.G
@nii236
nii236 / useFilenameAsTitle.sh
Last active Jul 21, 2017
useFilenameAsTitle.sh
View useFilenameAsTitle.sh
find . -print0 -type f -name '*.mp3' | xargs -0 -I {} mid3v2 -v -t `basename -s .mp3 {}` {}
# OR
for f in *.mp3; do basename -s .mp3 $f | xargs -0 -I {} mid3v2 -t "{}" "{}"; done
@nii236
nii236 / subcommands.go
Created Feb 22, 2017 — forked from poy/subcommands.go
Simple Subcommands in Go
View subcommands.go
package subcommands
import (
"fmt"
"log"
"os"
"strings"
)
type Command interface {
@nii236
nii236 / docker-compose.yaml
Created Jun 17, 2016
Example docker compose file
View docker-compose.yaml
▶ cat docker-compose.yml
version: '2'
services:
nats:
image: nats:0.8.0
ports:
- "4222:4222"
- "8222:8222"
bitstampticksubscriber:
build:
@nii236
nii236 / 8upper.sh
Created Feb 26, 2016
This gist will take all of the PDFs in the current folder, and then output all of your 8up PDFs into the /out folder.
View 8upper.sh
mkdir out && find . -type f -name \*.pdf -maxdepth 1 -exec pdfjam {} --nup 8x1 --papersize '{500px,100px}' --outfile out/{} \;
View keybase.md

Keybase proof

I hereby claim:

  • I am nii236 on github.
  • I am nii236 (https://keybase.io/nii236) on keybase.
  • I have a public key ASBPbDJLKvYmzhgUwcBmnCoBmgT68z69-jSU94tZ4tO7Rwo

To claim this, I am signing this object:

You can’t perform that action at this time.