Skip to content

Instantly share code, notes, and snippets.

View blissdev's full-sized avatar

Jordan Arentsen blissdev

View GitHub Profile
@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
@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