Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rickb777 on github.
  • I am rickbeton (https://keybase.io/rickbeton) on keybase.
  • I have a public key ASASwCEL0rL5x1eIQoN7YeDo99irBa9NkuZ6UgZhd4m5NAo

To claim this, I am signing this object:

@rickb777
rickb777 / crypter.go
Created March 11, 2019 09:25
Drupal Crypter (in Go)
package password
import (
"bytes"
"crypto/rand"
"crypto/sha512"
"github.com/pkg/errors"
"gopkg.in/hlandau/passlib.v1/abstract"
"strings"
)
@rickb777
rickb777 / Makefile
Created August 17, 2017 16:48
Stabbycutyou/accumulator - revised to use templates for many types
# first, run
# go get github.com/rickb777/runtemplate
default:
runtemplate -tpl intAccumulator.tpl Type=int64
runtemplate -tpl intAccumulator.tpl Type=uint64
runtemplate -tpl intAccumulator.tpl Type=int32
runtemplate -tpl intAccumulator.tpl Type=uint32
runtemplate -tpl int_test.tpl Type=int32
@rickb777
rickb777 / gist:717239d1699e69b0724f
Created July 8, 2015 19:24
go-gorp test_all.sh is buggy and inflexible #274
diff --git a/test_all.sh b/test_all.sh
index 20cf15a..0a6dc99 100755
--- a/test_all.sh
+++ b/test_all.sh
@@ -1,12 +1,10 @@
-#!/bin/bash
+#!/bin/bash -e
# on macs, you may need to:
# export GOBUILDFLAG=-ldflags -linkmode=external