Skip to content

Instantly share code, notes, and snippets.

View bcoe's full-sized avatar
💭
hackin'

Benjamin E. Coe bcoe

💭
hackin'
View GitHub Profile
@bcoe
bcoe / package.json
Created May 17, 2017 19:13
package.json
{
"name": "@funkia/hareactive",
"version": "0.0.31",
"description": "Experimental FRP library for building web applications.",
"main": "dist/index.js",
"module": "dist/es/index.js",
"typings": "dist/defs/index.d.ts",
"directories": {
"test": "test",
"dist": "dist"
@bcoe
bcoe / ha.varnish
Created April 25, 2017 17:28
ha.varnish
vcl 4.0;
import directors;
backend primary {
.host = "127.0.0.1";
.port = "8080";
}
backend replica {
.host = "x.x.x.x";
@bcoe
bcoe / couch-debug-level.txt
Created March 23, 2017 15:50
couch-debug-level.txt
curl -XPUT /_config/log/level' -d '"debug"'
@bcoe
bcoe / lerna-bundle.txt
Created February 6, 2017 19:29
lerna-bundle.txt
For yargs, I'm picturing a structure something like this:
yargs
lib
command.js
validation.js
packages:
yargs-parser
index.js
package.json
@bcoe
bcoe / search.test.js
Created December 17, 2016 21:38
search.test.js
/* global expect, jasmine, describe, test, beforeAll, afterAll */
'use strict'
import next from 'next/dist/server/next'
const app = new next({
dir: './',
dev: true,
staticMarkup: true,
@bcoe
bcoe / couch.log
Created October 12, 2016 23:25
couch.log
[notice] 2016-10-12T23:24:55.182466Z couchdb@localhost <0.1180.5> -------- 127.0.0.1 - - GET /_users/_design/scratch 404
[error] 2016-10-12T23:24:55.182586Z couchdb@localhost <0.1180.5> -------- httpd 404 error response:
{"error":"not_found","reason":"missing"}
[info] 2016-10-12T23:24:55.240583Z couchdb@localhost <0.217.0> -------- couch_proc_manager <0.1216.5> died epipe
[error] 2016-10-12T23:24:55.240650Z couchdb@localhost <0.1181.5> -------- OS Process Error <0.1216.5> :: {'EXIT',epipe}
[error] 2016-10-12T23:24:55.242139Z couchdb@localhost <0.1219.5> -------- OS Process died with status: 127
[info] 2016-10-12T23:24:55.242243Z couchdb@localhost <0.217.0> -------- couch_proc_manager <0.1219.5> died {exit_status,127}
[error] 2016-10-12T23:24:55.242299Z couchdb@localhost <0.1181.5> -------- OS Process Error <0.1219.5> :: {'EXIT',{exit_status,127}}
[error] 2016-10-12T23:24:55.242292Z couchdb@localhost <0.1219.5> -------- gen_server <0.1219.5> terminated with reason: {exit_status,127}
last msg: {#Port<0.47259
@bcoe
bcoe / ben-highlights.bash
Created August 12, 2016 00:59
ben-highlights.bash
Benjamins-MBP:highlights benjamincoe$ node --version
v6.3.1
Benjamins-MBP:highlights benjamincoe$ cat package.json | json dependencies
{
"first-mate": "^6.0.0",
"first-mate-select-grammar": "^1.0.1",
"fs-plus": "^2.2.6",
"once": "^1.3.2",
"season": "^5.1.2",
"underscore-plus": "^1.5.1",
@bcoe
bcoe / pg-test-trick.js
Created March 30, 2016 23:47
pg-test-trick.js
pg.defaults.poolSize = 1
helper.beginTransaction = function (done) {
conn.query('BEGIN', done)
}
helper.endTransaction = function (done) {
conn.query('ROLLBACK', done)
}
@bcoe
bcoe / private-modules-travis.yml
Created February 26, 2016 18:47
private-modules-travis.yml
language: node_js
node_js:
- "node"
before_install:
- printf "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
@bcoe
bcoe / npmo-ssl.nginx
Created February 9, 2016 23:09
npmo-ssl.nginx
user root;
worker_processes 1;
pid /var/run/nginx.pid;
events {
# After increasing this value You probably should increase limit
# of file descriptors (for example in start_precmd in startup script)
worker_connections 1024;
}