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
deergod1 / pfSense config.md
Last active Sep 23, 2019
pfSense Easy Configuration Guide for HP t620 Plus
View pfSense config.md

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
danieleggert / GPG and git on macOS.md
Last active Oct 11, 2019
How to set up git to use the GPG Suite
View GPG and git on macOS.md

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  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
bmhatfield / .profile
Last active Oct 12, 2019
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
export GPG_AGENT_INFO
else
View ViewController.m
//
// ViewController.m
// LIFX
//
// Created by Gary Riches on 18/01/2016.
// Copyright © 2016 Gary Riches. All rights reserved.
//
#import "ViewController.h"
#import "GCDAsyncUdpSocket.h"
@smarthall
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
Maxim-Filimonov / workaround.md
Last active Aug 29, 2015
DNSimple outage workaround
View workaround.md
  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 -> https://www.whatsmydns.net

Example https://www.whatsmydns.net/#A/docs.semaphoreapp.com 2. Put the following in your /etc/hosts IP_ADDRESS WEBSITE_WITH_SUBDOMAIN

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

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

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
bradmontgomery / install-comodo-ssl-cert-for-nginx.rst
Last active Oct 20, 2019
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 Namecheap.com 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
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
# http://stackoverflow.com/questions/11133712/using-rails-model-that-is-already-declared
You can’t perform that action at this time.