Skip to content

Instantly share code, notes, and snippets.

View anacrolix's full-sized avatar
🏹
Pew pew

Matt Joiner anacrolix

🏹
Pew pew
View GitHub Profile
@anacrolix
anacrolix / ipgo.sh
Last active February 28, 2019 18:49 — forked from Stebalien/ipgo.sh
#!/bin/bash
set -eu
export IPFS_GATEWAY="${IPFS_GATEWAY:-http://127.0.0.1:8080}"
CACHE_DIR="$(go env GOPATH)/pkg/mod/cache"
basepath() {
echo "${1##${CACHE_DIR}/download/}"