Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View danryan's full-sized avatar
🔥

Dan Ryan danryan

🔥
View GitHub Profile
rels := make(map[string]string)
link := header.Get("Link")
if len(link) == 0 {
return rels
}
for _, l := range strings.Split(link, ",") {
l = strings.TrimSpace(l)
segments := strings.Split(l, ";")
### Keybase proof
I hereby claim:
* I am danryan on github.
* I am danryan (https://keybase.io/danryan) on keybase.
* I have a public key whose fingerprint is BED3 5E14 E32E B540 AEC6 C828 0926 5AE9 DBAA A5B3
To claim this, I am signing this object:
@danryan
danryan / gist:6116878
Last active December 20, 2015 10:39
GET /turtles
HTTP/1.1 200 OK
Server: Turtle
Content-Type: application/turtles; charset=turtles
{
"turtles": {
"turtles": {
"turtles": {
"turtles": {
"turtles": {
"turtles": {
#!/bin/bash
#
# NOTE: specify the absolutepath to the directory to use when
# loading a plugin. '~' expansion is supported.
#
chunkc core::plugin_dir /usr/local/opt/chunkwm/share/chunkwm/plugins
#
@danryan
danryan / Makefile
Created July 28, 2023 21:05 — forked from mpneuried/Makefile
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)