Skip to content

Instantly share code, notes, and snippets.

@cam-stitt
cam-stitt / main.sentinel
Last active May 6, 2020
Simple Sentinel
View main.sentinel
# This policy will always fail
import "foo"
main = foo.truthy()
View 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 Jul 2, 2019
Solarized Slack Theme
View Theme.txt
#FDF6E3,#EEE8D5,#EEE8D5,#586E75,#EEE8D5,#657B83,#2AA198,#DC322F
View proto_setup.md

Linux:

sudo apt-get install -y autoconf automake libtool

OSX:

brew install autoconf automake libtool
@cam-stitt
cam-stitt / example.proto
Last active Mar 6, 2017
GRPC Healthcheck
View example.proto
syntax = "proto3";
package example;
message HealthCheckRequest {
string service = 1;
}
message HealthCheckResponse {
enum ServingStatus {
View codeship_setup.sh
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 Oct 16, 2014
Example For Block Rendering
View base.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>Example</title>
{% block styles %}{% endblock %}
{% block scripts %}{% endblock %}
</head>
View config.cson
'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 Feb 24, 2014
A SQLAlchemy field to process "tags"
View fields.py
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: