Skip to content

Instantly share code, notes, and snippets.

View kalebheitzman's full-sized avatar

Kaleb Heitzman kalebheitzman

  • Lexington, Kentucky
View GitHub Profile
@ruanbekker
ruanbekker / docker-nfs-volumes.md
Created December 10, 2017 10:43
NFS Volumes with Docker Swarm

Create NFS Volumes:

Creating the NFS Volume:

$ docker volume create --driver local \
  --opt type=nfs \
  --opt o=addr=192.168.1.115,uid=1000,gid=1000,rw \
  --opt device=:/mnt/volumes/mysql-test \
  mysql-test-1
@guisehn
guisehn / gist:6648c8fdcd1102a22a22
Last active June 2, 2021 11:08 — forked from wrburgess/gist:5528649
Backup Heroku Postgres database and restore to local database

Grab new backup

Command: heroku pg:backups capture -a [app_name]

Download

Command: curl -o latest.dump `heroku pg:backups public-url -a [app_name]`

Restore backup dump into local db

@danott
danott / time_of_day.css
Created October 7, 2010 13:15
CSS to style the page based on the time of day.
/*!
* time_of_day.css
* Time Sensitive CSS
* @danott in reply to @kalebheitzman's tweet http://twitter.com/#!/kalebheitzman/status/26639173336
*
* Here is a basis of class names for how I would approach a time-sensitive CSS stylesheet.
*
* Along with these classnames, I'd use side-by-side PHP and Javascript functions to add classes to
* the body element of your html document.
*/