Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ascandella on github.
  • I am aidens (https://keybase.io/aidens) on keybase.
  • I have a public key whose fingerprint is C19F AEAA FD6C C397 83DA EB66 17C5 59C4 21D8 3A19

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am ascandella on github.
  • I am aidens (https://keybase.io/aidens) on keybase.
  • I have a public key whose fingerprint is C19F AEAA FD6C C397 83DA EB66 17C5 59C4 21D8 3A19

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am sectioneight on github.
  • I am aidens (https://keybase.io/aidens) on keybase.
  • I have a public key whose fingerprint is C19F AEAA FD6C C397 83DA EB66 17C5 59C4 21D8 3A19

To claim this, I am signing this object:

scratch - master! ❯ cat main.go
package main
import (
"fmt"
"github.com/sectioneight/dot-import-example/_underscore"
)
func main() {
scratch - master ❯ cat main.go
package main
import (
"fmt"
"github.com/sectioneight/dot-import-example/.dot"
"github.com/sectioneight/dot-import-example/_underscore"
)
@ascandella
ascandella / go-debian-leave-race-uber.patch
Created February 16, 2017 07:03
Leaving race package files around for Uber Golang Debian Packages
diff --git a/debian/rules b/debian/rules
index ae9ac7447..663c31cc1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -60,13 +60,10 @@ ifeq (true, $(RUN_TESTS))
# -k keep going even when error occurred
# -no-rebuild don't rebuild std and cmd packages
- # On linux/amd64 run.bash installs some race enabled standard library
- # packages. Delete them again to avoid accidentally including them in
@ascandella
ascandella / debian-postinst.diff
Created February 16, 2017 05:22
Golang debian postinst for Uber
diff --git a/debian/golang-X.Y-go.postinst b/debian/golang-X.Y-go.postinst
index 160957243..388aef2d1 100644
--- a/debian/golang-X.Y-go.postinst
+++ b/debian/golang-X.Y-go.postinst
@@ -5,6 +5,20 @@ case "$1" in
configure)
# Very ugly hack to set timestamps same as /usr/lib/go-X.Y/bin/go
find /usr/lib/go-X.Y/pkg -exec touch -r /usr/lib/go-X.Y/bin/go {} \;
+ # Setup alternatives
+ # Priority: base of 100 + go version; 1.4.2 = 100 + 42; 1.5 = 100 + 50
@ascandella
ascandella / main.go
Last active February 16, 2017 15:38
Sample pprof app
package main
import (
"fmt"
"io/ioutil"
"math/rand"
"net/http"
_ "net/http/pprof"
"sync"
"time"
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: GPGTools - https://gpgtools.org
mQINBFe0sCQBEADWXvoM3et+otS3gRd/KivDegwEqqBqX63DrhTP211gdtXIdIwB
QDnIN4ntxkz6CWy5xgKP2vWUg5yPf8+XlrF0mEbKtHFNxMU/4Fr4bO71Zqv+A6RH
k3JRAtFPTGGbG43tHU0ga7FWUQo7D244VP4lIdGBPTYvlOgAHkfZ38SGZsABoHSI
DAOtUVz9Hy2IPv6SxNfbJ1Dd/nRz4frJpTJKeDLL9Jut5/Zv8B7dBkHY0dCCiScI
LINqIT4YrKfcFXVHlEEVRQNZmQXMoay9aC3Xgf742G5/d+tPjAg8J9uXDSitdHIo
q3d7OIQ3eLyJs6TYIIg7/HoWy9DQ7GDYHGXYV+bD/zJHrLJuf97BDBDzgl8jc32A
Y3w5+FOU3elB3Ssc180jytRTmynKyii8G/8Zw3Ef/vu4Q+gR2a3yTWQHoCrxPAP6
@ascandella
ascandella / 0.11.1 (upstream)
Created October 1, 2016 19:08
Glide Bing Weird
[rm -rf glide.lock vendor]
[cat main.go]
package main
import (
"fmt"
"go.uber.org/yarpc"
)