Skip to content

Instantly share code, notes, and snippets.

Tate Johnson tatey

Block or report user

Report or block tatey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
deergod1 / pfSense
Last active Mar 20, 2020
pfSense Easy Configuration Guide for HP t620 Plus
View pfSense

pfSense Simple Home Configuration - 2.4.3 / 2.4.4

Starting from Scratch

This is my personal guide for installing pfSense. I had to make notes to capture the details of the "install from scratch" to ensure I didn't forget the important details. Also, I'm trying to follow the philosophy of building systems with discrete "disposable" components that make a system mutable and less rigid. It does not cover installing any packages like Squid or Suricata as that's way beyond the scope of a basic, functional install.

I migrated from an environment that was at various times running Tomato Toastman 1.28 or Asuswrt-Merlin on Netgear and ASUS routers across four access points (one always acting as the firewall/gateway). It was pretty fast, but had roaming problems, and I was using full Wifi routers with half the stuff disabled. Also, even with 300mb internet service, I found that I could easily swamp the connection and drastically affect VOIP and Wifi Calling without even trying. The only fix was to throttle ever

danieleggert / GPG and git on
Last active Mar 28, 2020
How to set up git to use the GPG Suite
View GPG and git on

GPG and git on macOS


No need for homebrew or anything like that. Works with and the command line.

  1. Install -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys
bmhatfield / .profile
Last active Mar 25, 2020
Automatic Git commit signing with GPG on OSX
View .profile
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
View ViewController.m
// ViewController.m
// Created by Gary Riches on 18/01/2016.
// Copyright © 2016 Gary Riches. All rights reserved.
#import "ViewController.h"
#import "GCDAsyncUdpSocket.h"
smarthall / lifx.c
Created Aug 12, 2015
LIFX Packet Sending Example
View lifx.c
#include "lifx.h"
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
Maxim-Filimonov /
Last active Aug 29, 2015
DNSimple outage workaround
  1. Find an ip address of site you want to access ( including subdomain as each subdomain can point to different ip) using cached DNS records ->

Example 2. Put the following in your /etc/hosts IP_ADDRESS WEBSITE_WITH_SUBDOMAIN

Example: 3. Access website using normal address in browser. Does not require restart unless you are on windows.

blackjid /
Last active May 1, 2019
How configure your raspberry pi with dashing to have a awesome dashboard

Raspberry pi dashboard

This is what we did to setup a few dashboards at platanus

You'll need

  • Raspberry Pi
  • Dashing Service
  • Wifi stick (optional)
View RSPlayPauseButton.h
// RSPlayPauseButton.h
// Created by Raphael Schaad on 2014-03-22.
// This is free and unencumbered software released into the public domain.
#import <UIKit/UIKit.h>
bradmontgomery / install-comodo-ssl-cert-for-nginx.rst
Last active Mar 20, 2020
Steps to install a Comodo PositiveSSL certificate with Nginx.
View install-comodo-ssl-cert-for-nginx.rst

Setting up a SSL Cert from Comodo

I use as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

dnagir / faster_helper.rb
Created Jun 28, 2012
Fast specs with Rails
View faster_helper.rb
ENV["RAILS_ENV"] ||= 'test'
cur_dir = File.expand_path(File.dirname(__FILE__) + '/..')
$LOAD_PATH << "#{cur_dir}"
if defined? Rails
# Most likely going with the full env
puts "Running faster_helper with full Rails env..."
# Eagerly load the Rails so that stubbed dependencies still work
You can’t perform that action at this time.