Skip to content

Instantly share code, notes, and snippets.

View asobrien's full-sized avatar

asobrien

View GitHub Profile
@asobrien
asobrien / markdown_raw_example
Last active August 29, 2015 14:00
Markdown Syntax Example for Crisp Linen
Below we illustrate the workings of Markdown. And why we made the choices we made.
Markdown H1 headers can look like this
======================================
That's right. Instead of using #, we can use horizontal rules.
An H2 header is like this
-------------------------
It also can be specified with a horizontal rule. So when it's displayed it gets one.
@asobrien
asobrien / python_example.py
Last active August 29, 2015 14:00
An example of python in use for the Crisp Linen theme.
names = ["Tom", "Dick", "Harry"]
another_list = [1,2,3,4,5,6,7,8,9,10,9,8,7,6,5,4,3,2,1,0]
# this is a comment
list_it = ["one", "two", "three"]
for name in names:
print "Hello, %s!" % name
@asobrien
asobrien / ghost-nginx_reverse_proxy_template
Last active August 29, 2015 14:01
Nginx server block template for Ghost Node.js reverse proxy.
# Ghost Blog -- Reverse Proxy Config
server {
listen 80; # port
server_name blog.domain.com; # domain name to respond to
access_log /var/log/nginx/blog-domain-com.log; # access log locations
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header HOST $http_host;
@asobrien
asobrien / verneutil-jenkins-sample.sh
Last active December 9, 2015 20:44
verneutil jenkins sample jpb
#!/bin/bash
# create a virtual environment (if it doesn't exist)
# this creates a virtual environment below the "env" dir
# and installs ruby version 2.2.3
# activate it
[ ! -d env ] && verneutil --create env 2.2.3 ;
source env/activate
gem install hello-world
@asobrien
asobrien / vault-v0.5.2-ldap-posixgroup.patch
Created May 9, 2016 16:26
vault (v0.5.2) patch that allows for OpenLDAP posixGroup memberUid to be specified by `userdn` in addition to `username` attributes.
From dce80eca05c62f3f7ec3f459f1e4ca6c6e243706 Mon Sep 17 00:00:00 2001
From: Anthony O'Brien <asobrien@jwplayer.com>
Date: Mon, 9 May 2016 12:16:19 -0400
Subject: [PATCH] Allow non-complaint posixGroup search that matches
GroupOfNames
---
builtin/credential/ldap/backend.go | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Keybase proof

I hereby claim:

  • I am asobrien on github.
  • I am aobrien (https://keybase.io/aobrien) on keybase.
  • I have a public key ASBStHeH75pwz88nGVjhFCj4gf3-_Imqbe6o9nsyIjB7PQo

To claim this, I am signing this object:

@asobrien
asobrien / nginx-with-ssl-demo.conf
Created March 30, 2017 14:39
Simple nginx default configuration with HTTPS enabled
server {
listen 80;
server_name _;
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
location / {
root /usr/share/nginx/html;