Skip to content

Instantly share code, notes, and snippets.

Travis Cline tmc

Block or report user

Report or block tmc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tmc
tmc / circleci-docker-api-verions.patch
Last active Jun 15, 2017
allow control of DOCKER_API_VERSION in circleci 2.0 local build script
View circleci-docker-api-verions.patch
--- /usr/local/bin/circleci-orig 2017-06-15 12:52:44.000000000 -0700
+++ /usr/local/bin/circleci 2017-06-15 12:56:17.000000000 -0700
@@ -133,6 +133,7 @@
fi
docker run -it --rm \
+ -e DOCKER_API_VERSION=${DOCKER_API_VERSION:-1.23} \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(pwd):$(pwd) \
-v ~/.circleci/:/root/.circleci \
@tmc
tmc / macOS Sierra USB Fax Modem Reinstallation.md
Created Jun 15, 2017 — forked from essandess/macOS Sierra USB Fax Modem Reinstallation.md
Reinstall USB Fax Modem Capabilities on macOS Sierra
View macOS Sierra USB Fax Modem Reinstallation.md

This post tells how to reinstall USB fax modem capabilities on macOS Sierra, after Apple dropped support.

If dropping support for fax modems affects you negatively, please take the time to issue feedback at Apple's website.

To restore USB Fax Modem capability to Sierra, simply copy the files listed below from your old El Capitan install.

Here is this list of files you need:

@tmc
tmc / etcd-controller.yaml
Created Dec 9, 2015
etcd discovery based controller (would need services/name-resolution for each pod)
View etcd-controller.yaml
kind: "ReplicationController"
apiVersion: "v1"
metadata:
name: "etcd"
spec:
replicas: 3
selector:
name: etcd
template:
metadata:
@tmc
tmc / etcd-static.yaml
Created Dec 9, 2015
etcd static k8s cluster (no PV)
View etcd-static.yaml
kind: "Service"
apiVersion: "v1"
metadata:
name: "etcd-static"
spec:
ports:
- targetPort: 2379
port: 80
selector:
app: "etcd-static"
View keybase.md

Keybase proof

I hereby claim:

  • I am tmc on github.
  • I am tmc (https://keybase.io/tmc) on keybase.
  • I have the public key with fingerprint 8B24 C0E3 6A63 95BB 80DB  F378 A815 2998 72A2 287F

To claim this, I am signing this object:

View gpg_key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.22 (Darwin)
mQINBFJ8lw0BEACZecIpLGs7NPIIXOhPHHibVwzr3YQx7kNbyUfDCKUnjp+KxV4M
sn+rmnHvIJLWEV+E3zMmSRM3mxRNCqidDCxL+stuNlG1OcmfJRLR3jNMsafBSGEO
j1GgjXCGAFxN0tgKdXuRe5BrMAm/155OVfcnR6iwLV69v/zTwKl4VqX/rRocQP6e
L6q6to3Ok6KXGwwnfuTyPRYkGIh8TuY2i8YO3y7wIDd+N++/+nJr3jh0e8Q5HOk6
a9T67zf4/oZSvjdhKRoingReUWGoxS7uQBhmBmqHni16L5d3rX51m8IUHWQ0Thpi
ZXbtNT2aSJHPe4SdR1H2G5DDaD1y58US7UwK8y+6nHTw+KqHfRmAAtOKu2Jmynxh
KxxmLoiSXFI47Fpw3awCqYvgSMIIXRg1xlLHSvUHDqegrrQlomS7cGC8S5NgJRIK
View example.sh
$ go get github.com/tmc/watcher
$ watcher sh reload.sh
View objctest.go
package main
/*
#cgo CFLAGS: -x objective-c
#cgo LDFLAGS: -framework Cocoa
#import <Cocoa/Cocoa.h>
#import <Foundation/Foundation.h>
#import <IOBluetooth/IOBluetooth.h>
void call_objc_example(void) {
View objctest.go
package main
/*
#cgo CFLAGS: -x objective-c
#cgo LDFLAGS: -framework Cocoa
#import <Cocoa/Cocoa.h>
void call_objc_example(void) {
NSLog(@"from objective-c");
}
View hn.sh
cd /tmp
if [[ "`uname`" == 'Linux' ]]; then
curl -so go.tar.gz http://go.googlecode.com/files/go1.1.1.linux-amd64.tar.gz
else
curl -so go.tar.gz http://go.googlecode.com/files/go1.1.1.darwin-amd64.tar.gz
fi
tar xf go.tar.gz
export GOPATH=/tmp
export GOROOT=/tmp/go
You can’t perform that action at this time.