Skip to content

Instantly share code, notes, and snippets.


Justin P jpartain89

  • Dallas, Tx
View GitHub Profile
jpartain89 /
Created Mar 6, 2017 — forked from mcxiaoke/
Set up Gitweb + Nginx from scratch on Debian Wheezy

This guide offers the least time-consuming way of setting up Nginx for serving Git repositories over HTTP using Gitweb. The stuff here has been tested with Git 1.9.1 and Nginx 1.6.0 on Debian Wheezy. Probably also works for Ubuntu, etc.

Total time ~ 10 minutes.


Enable wheezy-backports by adding this line to /etc/apt/sources.list:

deb wheezy-backports main
jpartain89 / vb.monit.plist
Created Dec 26, 2016 — forked from viktorbenei/vb.monit.plist
Monit OS X Launch Agent Plist file
View vb.monit.plist
Don't forget to set the /path/to/.monitrc path!
* Save this into: ~/Library/LaunchAgents/vb.monit.plist
* Load with (auto loaded at user login): launchctl load ~/Library/LaunchAgents/vb.monit.plist
* Unload with: launchctl unload ~/Library/LaunchAgents/vb.monit.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
jpartain89 /
Created Sep 26, 2016
Builds Monit from their BitBucket repo
# This builds monit with the --enable-optimized flag set.
if [[ ! -e "$monit_dir" ]]; then
echo ""
echo "Monit's git directory missing."
echo "Cloning"
View dnsmasq.conf
# Configuration file for dnsmasq.
# Format is one option per line, legal options are the same
# as the long options legal on the command line. See
# "/usr/sbin/dnsmasq --help" or "man 8 dnsmasq" for details.
# Listen on this specific port instead of the standard DNS port
# (53). Setting this to zero completely disables DNS function,
# leaving only DHCP and/or TFTP.

Keybase proof

I hereby claim:

  • I am jpartain89 on github.
  • I am jpartain89 ( on keybase.
  • I have a public key whose fingerprint is D182 E203 7AA3 39AD 5873 2D81 AF51 1EBA 2248 1781

To claim this, I am signing this object:

jpartain89 / pedantically_commented_playbook.yml
Created Jul 12, 2016 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
View pedantically_commented_playbook.yml
# ^^^ YAML documents must begin with the document separator "---"
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
View Building SSH Key management tool with

Building an SSH key management tool with Elixir

Sipping the Elixir

After being inspired by David's talk on Elixir at Hardhat, we decided to try and build our own SSH public key management tool, PubKeys, in Elixir. We're delighted to report back that Elixir is amazing.

Things we love about Elixir:

  • Writing code in a functional style encourages us to break the code into small chunks of functions.
  • Through the use of the function composition operator |>, the code is readable and elegant.
  • Pattern matching is great.
jpartain89 / .bash_profile
Created Jun 26, 2016 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
View .bash_profile
# ---------------------------------------------------------------------------
# Description: This file holds all my BASH configurations and aliases
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
jpartain89 / pia_port_forward
Created Jun 14, 2016
pia Port Forwarding with openvpn
View pia_port_forward
1. wget
2. chmod +x
3. Make sure you are connected in one of the gateways that supports port forwarding
3. ./ <user> <password>
It should return something like: { "port": 23423 }
You can then enter this port into your software.