Skip to content

Instantly share code, notes, and snippets.

View blissdev's full-sized avatar

Jordan Arentsen blissdev

View GitHub Profile
@blissdev
blissdev / gist:6350d7d1bdc3f8be094c
Created December 30, 2015 22:18
clojure indentation in emacs
@blissdev: I believe you want to set `clojure-defun-style-default-indent` to a non-nil value to achieve this
@blissdev
blissdev / docker_install.yml
Created October 12, 2013 19:57
Install Docker with Ansible
- name: add docker repository key
sudo: yes
shell: curl https://get.docker.io/gpg | apt-key add -
- name: add docker repository
sudo: yes
shell: echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
- name: update apt
apt: update_cache=yes
@blissdev
blissdev / gist:6682094
Created September 24, 2013 08:51
docker commit errors
vagrant@precise64:~$ sudo docker commit ae7b241 blissdev postgres -run='{"Cmd": ["/bin/su", "postgres", "-c", "/usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data"], "PortSpecs": ["5432"]}'
unexpected fault address 0x7e12a0
fatal error: fault
[signal 0x7 code=0x2 addr=0x7e12a0 pc=0x464076]
goroutine 1 [running]:
[fp=0x7fbae07e8330] runtime.throw(0x9f9dab)
/usr/local/go/src/pkg/runtime/panic.c:473 +0x67
[fp=0x7fbae07e8348] runtime.sigpanic()
var http = require('http');
http.createServer(function(req, res) {
res.end(process.env.whoami);
}).listen(3000);
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Licensed to Jasig under one or more contributor license
agreements. See the NOTICE file distributed with this work
for additional information regarding copyright ownership.
Jasig licenses this file to you under the Apache License,
Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a
copy of the License at the following location:
---
# Install Apache and PHP
- name: update apt
apt: update_cache=yes
sudo: yes
- name: install dependencies
apt: pkg=$item state=installed
sudo: yes
<?php
namespace app\extensions\adapter\security\auth;
use lithium\core\Libraries;
class Cas extends \lithium\core\Object {
protected $server = "";
protected $service = "";
public function __construct(array $config = array()) {
@blissdev
blissdev / voiceover-intro.md
Created December 22, 2015 00:02 — forked from mpiotrowicz/voiceover-intro.md
getting started with VoiceOver

A messy intro into VoiceOver - OS X's built-in screen reader

Browsers

  • works best with Safari!

Getting Started

  • cmd+f5 to turn on
  • Remember the "VoiceOver Key" (VO) opt + control
  • To navigate into a page, VO + shift + down arrow
  • To navigate all page links, hit tab throughout
@blissdev
blissdev / playbook.yml
Created August 24, 2013 08:30
Install Postgres 9.3rc1 and extensions
---
- hosts: vagrant
vars:
pgversion: 9.3rc1
pgpath: /usr/local/pgsql
#postgres: http://ftp.postgresql.org/pub/source/v9.3rc1/postgresql-9.3rc1.tar.gz
tasks:
- name: install dependencies
apt: pkg=$item state=installed
sudo: yes
@blissdev
blissdev / Makefile
Last active December 20, 2015 23:59
`bootstrap.js` outputs a string of commands to be run before the test. `eval` works in the terminal but not in Make.
REPORTER = dot
test:
@eval $(NODE_ENV=test node test/bootstrap/bootstrap.js)
@NODE_ENV=test ./node_modules/.bin/mocha test/* \
--reporter $(REPORTER) \
--watch
testw:
@NODE_ENV=test ./node_modules/.bin/mocha test/* \
--reporter $(REPORTER) \