Skip to content

Instantly share code, notes, and snippets.

View nwithan8's full-sized avatar
💭
ABC - Always Be Coding

Nate Harris nwithan8

💭
ABC - Always Be Coding
View GitHub Profile
@nwithan8
nwithan8 / blog20201221-01.cfg
Created April 7, 2024 04:17 — forked from haproxytechblog/blog20201221-01.cfg
Route SSH Connections with HAProxy
frontend fe_ssh
bind *:2222 ssl crt /etc/haproxy/certs/ssl.pem
mode tcp
log-format "%ci:%cp [%t] %ft %b/%s %Tw/%Tc/%Tt %B %ts %ac/%fc/%bc/%sc/%rc %sq/%bq dst:%[var(sess.dst)] "
tcp-request content set-var(sess.dst) ssl_fc_sni
use_backend %[ssl_fc_sni]
blueprint:
name: "HASPone p[x].b[y] displays a fan with a toggle on/off icon"
description: |
## Blueprint Version: `1.05.00`
# Description
A HASPone button displays a fan control on page 4 and 5 with a toggle on/off icon to the left.
import collections
import math
import os
import cv2
import numpy as np
import time
MAX_LINES = 4000
N_PINS = 36*8
MIN_LOOP = 20 # To avoid getting stuck in a loop
@nwithan8
nwithan8 / Contract Killer 3.md
Created July 19, 2023 04:18 — forked from tony-caffe/Contract Killer 3.md
The latest version of Bytes Unlimited ‘Contract Killer’ for web professionals

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Revised by Bytes Unlimited : Feb 3rd 2020

@nwithan8
nwithan8 / README.md
Last active February 15, 2024 17:08
Script to download songs from a Spotify playlist

This does NOT require Spotify Premium or logging into your Spotify account.

  1. Install dependencies with pip3 install -r requirements.txt
  2. Get Spotify playlist share URL by clicking the three dots next to a playlist -> Share -> Copy Link
  3. Run python3 spotify_download.py [URL] to download all playlist items to the local directory.
@nwithan8
nwithan8 / request.txt
Created May 24, 2023 13:42
JetBrains Request ID
Request ID=15052023/11827749
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Nathan Harris",
"label": "Software Engineer II | PSM I",
"image": "https://raw.githubusercontent.com/nwithan8/nwithan8.github.io/master/images/headshot_transparent.png",
"email": "n8gr8gbln@gmail.com",
"phone": "404-909-7586",
"url": "https://github.com/nwithan8",
"summary": "Blending my two loves, the fast-paced, high-stakes world of journalism and the fast-paced, high-stakes world of software development.\n\"Dedicated to combating misinformation.\"",
@nwithan8
nwithan8 / i_dont_care_about_cookies_adp.txt
Created September 15, 2022 23:50
Backup of the I Don't Care About Cookies AdBlock Plus list now that Avast stole the company.
[Adblock Plus 2.0]
! Version: 343.202209151330
! Title: I don't care about cookies
! Expires: 3 days
! Licence: https://www.gnu.org/licenses/gpl-3.0.html
! Homepage: https://www.i-dont-care-about-cookies.eu/
! Last modified: 15 Sep 2022 11:30 UTC
!
!
! GLOBAL RULES
@nwithan8
nwithan8 / multi_commit.sh
Last active April 21, 2022 06:52
Add a single file to multiple local Git repositories and automatically open GitHub PRs
#!/bin/bash
# Copy a set of files to each repo in a dir, create a branch, and push to origin
# Requires GitHub CLI: `brew install gh` and must be logged in with `gh auth login`: https://cli.github.com/manual/
# Usage: multi_commit.sh BRANCH_NAME PATH_TO_LANDING_DIR_IN_REPO_1 PATH_TO_LANDING_DIR_IN_REPO_2 ... PATH_TO_FILE_TO_ADD
# You can edit these variables
MAIN_BRANCH="master"
@nwithan8
nwithan8 / create_reverse_proxy_dns.py
Last active January 8, 2021 02:13
Make an A record on Cloudflare and generate corresponding Apache2 reverse proxy site file
import CloudFlare
import argparse
CLOUDFLARE_API_KEY = "XXXXXXX"
parser = argparse.ArgumentParser(description="Make a reverse proxy file and CloudFlare DNS entry")
parser.add_argument('subdomain',
type=str,
help='new subdomain prefix')
parser.add_argument('domain',