Skip to content

Instantly share code, notes, and snippets.

View technoweenie's full-sized avatar
👾
beep boop

technoweenie

👾
beep boop
View GitHub Profile
@technoweenie
technoweenie / keybase.md
Created January 6, 2019 18:35
keybase proof

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:

package main
import (
"fmt"
"sync"
)
func main() {
fmt.Println("WAT")
}
@technoweenie
technoweenie / lfs-scan.rb
Last active December 1, 2015 18:39
script that shows files not in lfs
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`
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 August 29, 2015 14:08
Marvel Comic suggestions

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
package main
import (
"fmt"
"github.com/Merovius/git2go"
"os"
)
// $ GOPATH=./vendor go run test.go
// # command-line-arguments
@technoweenie
technoweenie / camo.go
Last active December 14, 2015 22:29
incomplete rewrite of camo in go
// outdated
// see https://github.com/technoweenie/camo.go
@technoweenie
technoweenie / http.go
Last active December 14, 2015 22:19
really crappy implementation of the ruby Heel gem in Go. Serve your local files over HTTP
package main
import (
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"os"
"path/filepath"
@technoweenie
technoweenie / gist:5120302
Created March 8, 2013 22:08
hacking on a dumb script to expose the cwd over http. yikes! Inspired by the heel gem: http://rubygems.org/gems/heel
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
)