Skip to content

Instantly share code, notes, and snippets.

View dancingfrog's full-sized avatar
🎸

John Hall dancingfrog

🎸
View GitHub Profile
@dancingfrog
dancingfrog / www.pl
Last active August 29, 2015 14:23
WWW-Mojo-Proxy :: Port-based mapping between domain name and http server
#!/usr/bin/env perl
use warnings;
use strict;
use 5.10.1;
use Mojolicious::Lite;
use Mojo::UserAgent;
use Mojo::Log;
use Encode qw{encode};
# www-mojo-proxy server:
@dancingfrog
dancingfrog / bracketsBoilerPlate
Created December 14, 2015 21:53
Brackets Theme Boilerplate
/*Sidebar*/
#sidebar{} /*General sidebar style*/
#sidebar #working-set-header{} /*"Working files" header*/
#sidebar #open-files-container{} /*Working files style*/
#sidebar #open-files-container ul li.selected a{} /*Selected working file*/
#sidebar #open-files-container ul li.selected a span.extension{} /*Selected working file's extension*/
#sidebar #open-files-container ul li .file-status-icon{} /*Icon next to a file, dot, X etc.*/
@dancingfrog
dancingfrog / git-check.pl
Last active January 4, 2016 17:24
git-check.pl
#!/usr/bin/perl
use strict;
use warnings;
use Git;
use Fcntl qw(:flock SEEK_END);
my $git_dir = $ARGV[0];
die "Must provide path to directory containing git projects:\n".
"Ex.\n".
@dancingfrog
dancingfrog / LocalTimezoneDatabase.mkd
Created April 6, 2016 21:58 — forked from revans/LocalTimezoneDatabase.mkd
This is a pretty rough explanation, with some examples, of how to setup a PostgreSQL database with PostGIS, and build your timezone table that you can query, given a latitude and longitude.

Installing and Setting a Timezone database

We're using Rails 4, PostgreSQL 9.3.4, and PostGIS 2.1.2.

Creating a Postgis enabled Postgresql template

createdb -E UTF8 template_postgis
createlang -d template_postgis plpgsq
psql -d template_postgis -c "CREATE EXTENSION postgis WITH SCHEMA public;"
@dancingfrog
dancingfrog / geoserver
Last active September 26, 2022 22:14 — forked from naholyr/_service.md
Sample /etc/init.d script for running GeoServer as a service
#!/bin/sh
### BEGIN INIT INFO
# Provides: GeoServer
# Required-Start: $local_fs $network $named $time $syslog
# Required-Stop: $local_fs $network $named $time $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Starts and stops the GeoServer, which should be located at /usr/share/geoserver
### END INIT INFO
@dancingfrog
dancingfrog / ngx-lua.sh
Last active May 3, 2016 22:24 — forked from hit9/ngx-lua.sh
THANK YOU FOR MAKING THIS! UPDATE: Assumes nginx source has been already been downloaded to working directory using $ apt-get source nginx
#!/bin/sh
# Script to compile nginx on ubuntu with lua support.
# Assumes that nginx source is already present in current working dir, after running...
#
# $ apt-get source nginx
#
# ... and that nginx-<version>/debian/rules has been updated with
# the desired options, including those passed to ./configure
#

Most people don't say anything, they just drop Perl and move on to more helpful and welcoming communities (with consequently brighter futures), which is really is sad... the only reason I said anything is because I consider myself a Perler, so the comments are totally inclusive of myself... unless you just don't want to include me.

Categorizing my behaviour as "trolling" is actually meant to offend and shame. "dysfunctional", as in "dysfunctional family", "dysfunctional organization", "dysfunctional relationship", is a way of saying, "we need to work on this"...

You don't have to work on it, you don't have to respond to anything I say, and you could have just left the github issue alone (@kraih would have locked it down either way). Maybe you are more aware of the problem than you let on, given your reaction over the last few hours.

I guess you'd feel better if I dropped it and I'm about to head out on vacation, too, after taking a couple hours out of my work schedule to address this (I'm working o

@dancingfrog
dancingfrog / service.sh
Last active October 3, 2016 19:07 — forked from fengye/_service.md
Sample /etc/init.d script
#!/bin/sh
### BEGIN INIT INFO
# Provides: <NAME>
# Required-Start: $local_fs $network $named $time $syslog
# Required-Stop: $local_fs $network $named $time $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: <DESCRIPTION>
### END INIT INFO
@dancingfrog
dancingfrog / vagrant.log
Last active September 4, 2018 12:40
Heroku WP Provision
==> herokuwp: Running provisioner: shell...
herokuwp: Running: /tmp/vagrant-shell20180904-5056-1mmvt34.sh
==> herokuwp: mesg:
==> herokuwp: ttyname failed
==> herokuwp: :
==> herokuwp: Inappropriate ioctl for device
==> herokuwp: ###############################
==> herokuwp: ## Provisioning Heroku WP VM ##
==> herokuwp: ###############################
==> herokuwp: -rw-r--r-- 1 vagrant vagrant 2365 Sep 4 11:08 /app/composer.json
@dancingfrog
dancingfrog / .block
Last active January 5, 2019 15:08 — forked from pbeshai/.block
Draw 100,000 points with regl
license: mit
height: 720
border: no