Skip to content

Instantly share code, notes, and snippets.

View cam-stitt's full-sized avatar

Cameron Stitt cam-stitt

View GitHub Profile
@cam-stitt
cam-stitt / main.sentinel
Last active May 6, 2020 02:44
Simple Sentinel
# This policy will always fail
import "foo"
main = foo.truthy()
@cam-stitt
cam-stitt / keybase.md
Last active September 15, 2019 21:39
keybase.md

Keybase proof

I hereby claim:

  • I am cam-stitt on github.
  • I am cam_stitt (https://keybase.io/cam_stitt) on keybase.
  • I have a public key ASCMVG5K1iCkZjbIiFuvitNcIQNW4_SNqZ4GnnxzF5RrgQo

To claim this, I am signing this object:

@cam-stitt
cam-stitt / Theme.txt
Created July 2, 2019 08:24
Solarized Slack Theme
#FDF6E3,#EEE8D5,#EEE8D5,#586E75,#EEE8D5,#657B83,#2AA198,#DC322F

Linux:

sudo apt-get install -y autoconf automake libtool

OSX:

brew install autoconf automake libtool
@cam-stitt
cam-stitt / example.proto
Last active March 6, 2017 01:44
GRPC Healthcheck
syntax = "proto3";
package example;
message HealthCheckRequest {
string service = 1;
}
message HealthCheckResponse {
enum ServingStatus {
@cam-stitt
cam-stitt / codeship_setup.sh
Last active August 24, 2016 12:12
Codeship Go
source /dev/stdin <<< “$(curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/languages/go.sh)"
go get github.com/Masterminds/glide
glide install
rsync -razC vendor/ $GOPATH/src/
@cam-stitt
cam-stitt / base.html
Created October 16, 2014 04:45
Example For Block Rendering
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>Example</title>
{% block styles %}{% endblock %}
{% block scripts %}{% endblock %}
</head>
@cam-stitt
cam-stitt / config.cson
Created August 24, 2014 22:07
Atom config
'exception-reporting':
'userId': '470e2e69-cec8-36bf-090a-65c0ddd4caa4'
'release-notes':
'viewedVersion': '0.92.0'
'welcome':
'showOnStartup': false
'metrics':
'userId': '2a39f9310c56400683f32f985736d69eb16fde65'
'editor':
'fontFamily': 'Ubuntu Mono'
@cam-stitt
cam-stitt / fields.py
Created February 24, 2014 05:45
A SQLAlchemy field to process "tags"
from unittest import TestCase
from sqlalchemy.types import TypeDecorator, VARCHAR
class Tags(TypeDecorator):
impl = VARCHAR
def process_bind_param(self, value, dialect):
if value is None: