Skip to content

Instantly share code, notes, and snippets.

View rowanj's full-sized avatar
🐧
Seizing the machines of production

Rowan James rowanj

🐧
Seizing the machines of production
View GitHub Profile
@rowanj
rowanj / go-dependency-sources.sh
Created May 15, 2019 04:30
List all go files in dependency tree
go list -f '{{ join .Deps "\n" }}' | xargs -n 1 go list -f '{{ $path := .ImportPath}}{{ range $file := .GoFiles }}{{ $path }}{{ $file }}{{ "\n" }}{{ end }}'
@rowanj
rowanj / sign.py
Last active February 8, 2023 18:13
Python script for signing an OS X application such that it runs without warning users about being un-signed
#!/usr/bin/env python
# Original work by Rowan James at https://gist.github.com/rowanj/5475988
# This is free and unencumbered software released into the public domain.
# http://unlicense.org
import argparse
import subprocess
import os
import glob