Skip to content

Instantly share code, notes, and snippets.

View stepheneb's full-sized avatar

Stephen Bannasch stepheneb

View GitHub Profile
name | setting | short_desc
----------------------------------------+--------------------------------------------+-----------------------------------------------------------------------------------
allow_system_table_mods | off | Allows modifications of the structure of system tables.
application_name | psql | Sets the application name to be reported in statistics and logs.
archive_command | (disabled) | Sets the shell command that will be called to archive a WAL file.
archive_mode | off | Allows archiving of WAL files using archive_command.
archive_timeout | 0 | Forces a switch to the next WAL file if a new file has not been start
<table border="1">
<tr>
<th align="center">name</th>
<th align="center">setting</th>
<th align="center">short_desc</th>
</tr>
<tr valign="top">
<td align="left">allow_system_table_mods</td>
<td align="left">off</td>
<td align="left">Allows modifications of the structure of system tables.</td>
@stepheneb
stepheneb / d3-doubleclick.js
Created November 1, 2018 20:02
double-clicking using D3.js in the browser
d3DomUIElement.on("click", clickAndDoubleClick(toggleSelectionHandler, selectAndStartEditingHandler));
clickAndDoubleClick = function(singlecallback, doublecallback) {
var f;
f = void 0;
return f = (function() {
var doubleclick, firstclick, g, t1, timer;
firstclick = true;
timer = null;
t1 = null;
@stepheneb
stepheneb / register-and-callback-when-available.js
Last active January 7, 2020 21:17
very simple javascript module dependency manager
// This simple module makes available a UUID generator created by Jeff Ward
//
// This module will be available under the global App.UUID
//
// After this module has completely loaded it registers itself so other modules that
// depend on it being present can wait until it is available to complete their startup.
**
* Fast UUID generator, RFC4122 version 4 compliant.
@stepheneb
stepheneb / gist:543f626ee6bdd8c4f40a
Created April 8, 2015 14:45
errors building mod_tile on Mac OS X 10.1`0
$ ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: glibtoolize --copy --force
glibtoolize: putting auxiliary files in '.'.
glibtoolize: copying file './ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
@stepheneb
stepheneb / gist:7553133
Created November 19, 2013 21:45
crash report cloning repo with GitX
Process: GitX [2973]
Path: /Applications/GitX.app/Contents/MacOS/GitX
Identifier: net.phere.GitX
Version: 0.14.95 dev (0.14.95)
Code Type: X86-64 (Native)
Parent Process: launchd [243]
Responsible: GitX [2973]
User ID: 503
Date/Time: 2013-11-19 16:27:49.543 -0500
@stepheneb
stepheneb / brew-info-ffmpeg.json
Created November 5, 2013 22:53
brew info --json=v1 ffmpeg
{
"caveats": null,
"conflicts_with": [],
"dependencies": [
"pkg-config",
"texi2html",
"yasm",
"x264",
"faac",
"lame",
@stepheneb
stepheneb / gist:7313227
Created November 5, 2013 03:09
$ brew regenerate
$ brew regenerate
brew install -v ack
brew install -v apple-gcc42
brew install -v autoconf213
brew install -v ccache
brew install -v cmake
brew install -v couchdb
brew install -v elixir
brew install -v wget
brew install -v gawk
@stepheneb
stepheneb / brew-regenerate.rb
Created November 5, 2013 03:05
generates the commands to re-install home-brew packages from scratch
# Outputs brew install commands that can be used to re-install all packages
# Place brew-regenerate on the PATH
# run: brew regenerate
require 'formula'
require 'tab'
# To debug with pry install the gem into the Ruby 1.8 installed with the system.
# /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
#
$ make test-mocha
Running Mocha tests ...
․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
183 passing (6 seconds)
1 failing
1) MD2D modeler when rectangle with electric field is removed "before each" hook: