Skip to content

Instantly share code, notes, and snippets.

View natefinch's full-sized avatar
:octocat:

Nate Finch natefinch

:octocat:
View GitHub Profile

Keybase proof

I hereby claim:

  • I am natefinch on github.
  • I am natefinch (https://keybase.io/natefinch) on keybase.
  • I have a public key whose fingerprint is 1688 3194 15AE B81E 4CC6 5B6C E636 71EC 3CE8 A736

To claim this, I am signing this object:

@natefinch
natefinch / gist:e377eacd6b2316b2a884
Created May 20, 2015 03:52
CI test for logrotation
#!/usr/bin/env python
from __future__ import print_function
__metaclass__ = type
from argparse import ArgumentParser
import os
import re
import subprocess
import sys
@natefinch
natefinch / apple_notification.go
Created February 6, 2017 01:58
apple push notification go struct
package notif
// Apple is a go-ification of the json struct for sending Apple Push
// Notifications, defined here:
// https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/PayloadKeyReference.html#//apple_ref/doc/uid/TP40008194-CH17-SW1
type Apple struct {
// Include this key when you want the system to display a standard alert or
// a banner. The notification settings for your app on the user’s device
// determine whether an alert or banner is displayed.
Alert *AppleAlert `json:"alert,omitempty"`
@natefinch
natefinch / gist:1a609cb96f4aa674f411faef638945e7
Created February 22, 2017 03:51
Minimal Glide + Private repo .travis.yaml
language: go
go:
- 1.8
before_install:
- git config --global url."[email protected]:".insteadOf "https://github.com/"
- wget "https://github.com/Masterminds/glide/releases/download/v0.12.3/glide-v0.12.3-linux-amd64.tar.gz"
- mkdir -p $HOME/bin
- tar -vxz -C $HOME/bin --strip=1 -f glide-v0.12.3-linux-amd64.tar.gz
@natefinch
natefinch / .travis.yml
Created February 22, 2017 03:58
Minimal .travis.yml for go projects that use glide with private repos
language: go
go:
- 1.8
before_install:
- git config --global url."[email protected]:".insteadOf "https://github.com/"
- wget "https://github.com/Masterminds/glide/releases/download/v0.12.3/glide-v0.12.3-linux-amd64.tar.gz"
- mkdir -p $HOME/bin
- tar -vxz -C $HOME/bin --strip=1 -f glide-v0.12.3-linux-amd64.tar.gz
[dependencies]
build = [
"python:3.6.3",
"heroku:latest",
"homebrew:latest",
]
runtime = [
"python:3.6.3",
"heroku:latest",
"homebrew:latest",

Keybase proof

I hereby claim:

  • I am natefinch on github.
  • I am natefinch (https://keybase.io/natefinch) on keybase.
  • I have a public key ASBlPrpCMjpBHg1ew2-uHPFEGrPwEy6UKg-8ki1NVHvV2Qo

To claim this, I am signing this object: