Skip to content

Instantly share code, notes, and snippets.

View dancingfrog's full-sized avatar
🎸

John Hall dancingfrog

🎸
View GitHub Profile
@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 / 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
#
@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 / .block
Last active January 5, 2019 15:08 — forked from pbeshai/.block
Draw 100,000 points with regl
license: mit
height: 720
border: no
@dancingfrog
dancingfrog / .block
Last active January 5, 2019 15:11 — forked from pbeshai/.block
Animate 100,000 points with regl - I
license: mit
height: 720
border: no
@dancingfrog
dancingfrog / .block
Last active January 5, 2019 15:14 — forked from pbeshai/.block
Animate 100,000 points with regl - II
license: mit
height: 720
border: no
@dancingfrog
dancingfrog / .block
Last active January 5, 2019 15:23 — forked from pbeshai/.block
Animate 100,000 points with regl - III
license: mit
height: 720
border: no
@dancingfrog
dancingfrog / Steam-on-fedora.md
Created November 22, 2019 14:23 — forked from mattbell87/Steam-on-fedora.md
How to install Steam on Fedora

Installing Steam on Fedora

These instructions are currently for Fedora 30. I'll update them over the releases if anything changes.

Open Software

Press the Win/Super key, type software and press Enter.

Enable the Third party and Steam repositories