Skip to content

Instantly share code, notes, and snippets.

Reed Allman rdallman

Block or report user

Report or block rdallman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ex2.go
package main
import (
"context"
"encoding/json"
"fmt"
"io"
fdk "github.com/fnproject/fdk-go"
)
@rdallman
rdallman / ex1.go
Last active Oct 20, 2017
go-fdk-ex-1
View ex1.go
package main
import (
"context"
"encoding/json"
"fmt"
"io"
"os"
)
View gist:7f65ba0eabe4eb2129f8c505ef68cca9

Keybase proof

I hereby claim:

  • I am rdallman on github.
  • I am rdallman (https://keybase.io/rdallman) on keybase.
  • I have a public key whose fingerprint is 132E D4F4 1414 4751 3707 C2D1 70E6 6C08 4C70 FDF7

To claim this, I am signing this object:

View How_to_use_starter.vimrc
Download the gist containing starter.vimrc.
Once you have that done, you will need to use an SFTP client of your choice
to move starter.vimrc to your home directory. FileZilla is an option if you
don't have one already.
Link: https://filezilla-project.org
You will just need the client.
@rdallman
rdallman / build.gradle
Created Nov 5, 2013
Android Gradle sign and increment version for release
View build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6.+'
}
}
@rdallman
rdallman / goinstall.bash
Last active Dec 27, 2015
Installs go, gets go.tools, gets go-doctor (for internal use)
View goinstall.bash
#!/bin/bash
#
# run with ./goinstall.bash USERNAME=yourusernamehere
# e.g. ./goinstall.bash USERNAME=rpa0003
# Install latest Go from source
# Setup GOROOT and GOPATH
# Install go.tools
# get go from source
sudo apt-get install mercurial
@rdallman
rdallman / pre-commit
Created Oct 7, 2013
pre-commit hook for golang projects that assures all tests pass and all files are gofmt'd
View pre-commit
#!/bin/sh
status=0
IFS=$'\n'
for file in $(git diff --cached --name-only | grep -e '\.go$'); do
badfile="$(git --no-pager show :"$file" | gofmt -l)"
if test -n "$badfile" ; then
echo "git pre-commit check failed: file needs gofmt: $file"
status=1
fi
You can’t perform that action at this time.