Skip to content

Instantly share code, notes, and snippets.

Avatar
👾
beep boop

technoweenie

👾
beep boop
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am technoweenie on github.
  • I am technoweenie (https://keybase.io/technoweenie) on keybase.
  • I have a public key ASDYg1Rh0rCIQPFh7-m5Ip0vINt46_GxKKcpHCF6WN_-Uwo

To claim this, I am signing this object:

View main.go
package main
import (
"fmt"
"sync"
)
func main() {
fmt.Println("WAT")
}
@technoweenie
technoweenie / lfs-scan.rb
Last active Dec 1, 2015
script that shows files not in lfs
View lfs-scan.rb
require "set"
lfs_file_output = `git lfs ls-files`
lfs_files = lfs_file_output.
chomp. # strip ending \n
split("\n"). # array of lines
map { |line| line.split.last } # filename is at the end of the line
current_commit = `git rev-parse HEAD`.chomp
git_output = `git ls-tree #{current_commit} -r`
View git-lfs-fsck.diff
diff --git a/test/cmd/lfstest-shasum.go b/test/cmd/lfstest-shasum.go
new file mode 100644
index 0000000..6ef16ee
--- /dev/null
+++ b/test/cmd/lfstest-shasum.go
@@ -0,0 +1,44 @@
+package main
+
+import (
+ "crypto/sha256"
@technoweenie
technoweenie / gist:48626ce7f12acf100131
Last active Aug 29, 2015
Marvel Comic suggestions
View gist:48626ce7f12acf100131

Random Stuff

  • Ultimates vol 1 and 2 (don't read 3, lol)
  • Daredevil vol 2 #1-19, 26-81

Avengers (roughly in chronological order)

  • Avengers Disassembled
  • New Avengers vol 1 (2005)
  • Captain America vol 5 (2005) #1-24
View git-experiment.go
package main
import (
"fmt"
"github.com/Merovius/git2go"
"os"
)
// $ GOPATH=./vendor go run test.go
// # command-line-arguments
@technoweenie
technoweenie / camo.go
Last active Dec 14, 2015
incomplete rewrite of camo in go
View camo.go
// outdated
// see https://github.com/technoweenie/camo.go
@technoweenie
technoweenie / http.go
Last active Dec 14, 2015
really crappy implementation of the ruby Heel gem in Go. Serve your local files over HTTP
View http.go
package main
import (
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"os"
"path/filepath"
@technoweenie
technoweenie / gist:5120302
Created Mar 8, 2013
hacking on a dumb script to expose the cwd over http. yikes! Inspired by the heel gem: http://rubygems.org/gems/heel
View gist:5120302
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
)