Skip to content

Instantly share code, notes, and snippets.

View justinporterfield's full-sized avatar

Justin Porterfield justinporterfield

View GitHub Profile
@xero
xero / hopeless
Last active September 1, 2025 07:58
dante's infernal motd ansi art
#!/bin/bash
cat << X0

/ \ ‾‾‾ ‾___ ‾‾ ‾‾‾‾‾ ‾‾‾ ‾‾‾ ‾‾‾‾\/‾‾‾ ‾ ‾‾‾‾‾‾‾‾\
( __| ( / \ / / _ |
\ ) | //--/ / _ _ __/ _ _ / \ / /  |
: // (_ /‾) (_\ / ) (_/ (_)/ ) //--/ / / |
x . _ ‾‾ // (_ / /  :
0 | ' ) / _ |
: | //--/ _ _ _ ' ) / _ |
@davecoutts
davecoutts / unifi_ubuntu_2004.sh
Last active November 24, 2025 20:55
Install Ubiquiti Unifi Controller on Ubuntu 20.04
# Install Ubiquiti Unifi Controller on Ubuntu 20.04.
# As tested on a fresh install of ubuntu-20.04.1-live-server, August 22nd 2020.
# Thanks to https://gist.github.com/tmuncks for posting the updated install steps.
sudo apt update
sudo apt install --yes apt-transport-https
echo 'deb https://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg
@bdashrad
bdashrad / interviewer_questions.md
Last active September 3, 2023 13:28
Interviewer Questions

Questions to ask your interviewer

Management

  • What problem do you solve and why would I give you money to solve it?
  • When’s the last time someone went above and beyond the call of duty at the company/on the team? What did they do?
  • What are the current goals that the company is focused on, and how does this team/role work to support hitting those goals?
  • What are the projects in this company you think are really key to its future and how would a motivated person go about getting on them?
  • What do you see as your largest technical challenge currently?
  • Pain Points beyond headcount
  • What is a project you wish a new member of the team could take on?
@kyledrake
kyledrake / ferengi-plan.txt
Last active November 14, 2025 04:39
How to throttle the FCC to dial up modem speeds on your website using Nginx
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited
#
# Current known FCC address ranges:
# https://news.ycombinator.com/item?id=7716915
#
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft
#
# In your nginx.conf:
location / {
#!/usr/bin/python
# -*- coding: utf-8 -*-
import subprocess
__all__ = ["transform"]
__version__ = '0.3'
__author__ = 'Christoph Burgmer <cburgmer@ira.uka.de>'
__url__ = 'https://github.com/cburgmer/upsidedown'
anonymous
anonymous / night-before-opsmas.txt
Created December 24, 2013 07:19
Twas the night before Opsmas..
'Twas the night before Christmas, when all through the racks
Not a server was alerting, not even Compaqs.
The backups were written to tapes with care
In hopes that later the data would be there.
The machines were nestled all snug in their sleds
Whilst visions of vengeance danced in their heads;
And oncall in his three-wolf and I in my rack.
Had just settled down for some syn and some ack.
@pdxmph
pdxmph / maxping.rb
Last active December 23, 2015 02:29
So, it'd be nice if I could get an unsolicited ping about upcoming Max arrivals at my two most used stations in the morning, when I'm getting ready to go to work, and in the afternoon when it's almost time to go. It'd also be nice if there were a way to tell the unsolicited ping to shut up. This does that using an ifttt recipe (so I can append a…
#!/usr/bin/env ruby
require 'json'
require 'time'
require 'net/http'
require 'pushover'
# trimet stop ids for easy expansion to other stops
stops = {"lents" => 13135, "union" => 7763}
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active March 5, 2026 10:16
A badass list of frontend development resources I collected over time.