Skip to content

Instantly share code, notes, and snippets.

View blissdev's full-sized avatar

Jordan Arentsen blissdev

View GitHub Profile
<?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
@blissdev
blissdev / middlenomenclature.txt
Last active December 16, 2016 19:16
middleman terminology for systems nomenclature
(jolly fats) [wehawkin] employment agency - job queue?
sensei ping
wuhan thumb of death
o2stk
le cage de lumière - possibly cage of data? - http://middleman.wikia.com/wiki/La_Cage_De_Lumiere
dubdub - frontend
lacey
manservant neville
hruk bug bear
pentarch
<?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 / errors
Created August 25, 2013 08:05
Installing Postgres 9.3rc1 and extensions with Ansible
TASK: [start postgres] ********************************************************
changed: [192.168.33.78] => {"changed": true, "cmd": "/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l /usr/local/pgsql/logs/pgsql.log start && /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data reload ", "delta": "0:00:00.011510", "end": "2013-08-25 07:59:05.172814", "rc": 0, "start": "2013-08-25 07:59:05.161304", "stderr": "pg_ctl: another server might be running; trying to start server anyway", "stdout": "server starting\nserver signaled"}
TASK: [load pgcrypto] *********************************************************
failed: [192.168.33.78] => {"changed": true, "cmd": "/usr/local/pgsql/bin/psql -d template1 -c \"CREATE EXTENSION pgcrypto;\" ", "delta": "0:00:00.004287", "end": "2013-08-25 07:59:05.523699", "rc": 2, "start": "2013-08-25 07:59:05.519412"}
stderr: psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/t
@blissdev
blissdev / postgres.yml
Created August 25, 2013 00:14
postgres 9.3rc1 + 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: update apt
apt: update_cache=yes
@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
global
maxconn 300
log 192.168.0.40 local0 debug
stats socket /tmp/haproxy.socket level admin
gid 80
nbproc 1
chroot /var/empty
daemon
frontend stats
@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) \
CREATE OR REPLACE FUNCTION json_cmp(
json,
json
) RETURNS INTEGER LANGUAGE SQL STRICT IMMUTABLE AS $$
SELECT bttextcmp($1::text, $2::text);
$$;
CREATE OR REPLACE FUNCTION json_eq(
json,
json