Skip to content

Instantly share code, notes, and snippets.

View aphexddb's full-sized avatar
💭
We are all made of stars

Gardiner Allen aphexddb

💭
We are all made of stars
View GitHub Profile
@aphexddb
aphexddb / pfsense.md
Last active December 15, 2017 20:26
pfsense notes

Install docker Install docker

curl -o docker-17.06.1.txz http://pkg.freebsd.org/freebsd:11:x86:64/latest/All/docker-17.06.1.txz
pkg install ./docker-17.06.1.txz

curl -o ca_root_nss-3.34.1.txz http://pkg.freebsd.org/freebsd:11:x86:64/latest/All/ca_root_nss-3.34.1.txz
pkg install ./ca_root_nss-3.34.1.txz
@aphexddb
aphexddb / GIF-Screencast-OSX.md
Created December 12, 2017 17:37 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@aphexddb
aphexddb / setup.sh
Created September 19, 2017 15:18
OSX Setup
#!/bin/bash
# super handy stuff
brew install jq aq thefuck the_silver_searcher wget curl
# dev
brew install maven protobuf
# devops
brew install docker-machine
@aphexddb
aphexddb / setup.sh
Created September 19, 2017 15:18
OSX Setup
#!/bin/bash
# super handy stuff
brew install jq aq thefuck the_silver_searcher wget curl
# dev
brew install maven protobuf
# devops
brew install docker-machine

Keybase proof

I hereby claim:

  • I am aphexddb on github.
  • I am aphexddb (https://keybase.io/aphexddb) on keybase.
  • I have a public key ASC4uW8vZwPcf8V2Yp6ip19LC2AJpW7Dyq0ix17hH4t5XQo

To claim this, I am signing this object:

@aphexddb
aphexddb / README.md
Last active August 29, 2015 14:09
Jison grammar for recipe ingredients

This is a recipe ingredient parser. Strings like:

2 cups whole pecans (8 ounces), toasted and chopped into small pieces

Should end up as:

{
  units: 2,
  unit: 'cups',

item: 'whole pecans (8 ounces)',

@aphexddb
aphexddb / docker_install_rbenv_ruby.txt
Created June 27, 2014 17:19
Ruby with rbenv in Docker
# install ruby
ENV RUBY_VERSION jruby-1.7.8
ENV RBENV_VERSION $RUBY_VERSION
ENV CONFIGURE_OPTS --disable-install-doc
RUN curl https://raw.githubusercontent.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
ENV PATH $HOME/.rbenv/bin:$PATH
ENV PATH $HOME/.rbenv/shims:$PATH
RUN rbenv install $RUBY_VERSION
RUN rbenv global $RUBY_VERSION
@aphexddb
aphexddb / chef_cookie_jar
Created June 9, 2014 20:35
Chef recipe snippet that adds a cookie to the cookie jar. This allows remote_file to use Basic Auth URL's

Time Machine on any network share

Time Machine setup for OSX Mavricks on a shared file server (Linux, windows, etc.)

  1. Find out the machine name of your Mac

     $ hostname
    

    It should be something like: yourname-mbp

@aphexddb
aphexddb / .wakeup
Last active May 14, 2023 05:10
OSX sleepwatcher script to take a photo on wakeup and upload to dropbox
#!/bin/bash
#
# Mac camera auto upload script
#
#####################################################
# Generate filename based on date stamp
FILE_SRC=/tmp/$(date +%m%d%y%H%M%S).jpg;
DROPBOX_FOLDER=macbook
DROPBOX_UPLOADER=/Users/<username>/Dropbox-Uploader/dropbox_uploader.sh