Skip to content

Instantly share code, notes, and snippets.


Sam Mingo slmingol

View GitHub Profile
View gist:984684b9b55029eb45468703ec6bf64f
# Blocklist for use with hosts files to block ads, trackers, and other nasty things
# For more information about this list, see:
# ----
# last updated: Sat, 16 May 2020 10:43:53 GMT
# entries: 3353
# format: hosts (hosts -- in hosts file format)
# credits: Peter Lowe - - -
# this URL:;showintro=0
# Patreon:
slmingol / proc_net_tcp_decode
Created Apr 23, 2020 — forked from jkstill/proc_net_tcp_decode
decode entries in /proc/net/tcp
View proc_net_tcp_decode
Decoding the data in /proc/net/tcp:
Linux 5.x /proc/net/tcp
Linux 6.x /proc/PID/net/tcp
Given a socket:
$ ls -l /proc/24784/fd/11
lrwx------ 1 jkstill dba 64 Dec 4 16:22 /proc/24784/fd/11 -> socket:[15907701]
slmingol / pi-hole_blacklist.txt
Last active Oct 20, 2020
pi-hole blacklist list
View pi-hole_blacklist.txt
# pi-hole blacklist v4.x (changes in v5.x)
slmingol / AdList.txt
Created Feb 23, 2020 — forked from hermanjustinm/AdList.txt
Ad Block List
View AdList.txt
##StevenBlack's list
slmingol / gist:1ca1235429c6b9da3804c68b81843f79
Created Feb 22, 2020 — forked from jagregory/gist:710671
How to move to a fork after cloning
View gist:1ca1235429c6b9da3804c68b81843f79
So you've cloned somebody's repo from github, but now you want to fork it and contribute back. Never fear!
Technically, when you fork "origin" should be your fork and "upstream" should be the project you forked; however, if you're willing to break this convention then it's easy.
* Off the top of my head *
1. Fork their repo on Github
2. In your local, add a new remote to your fork; then fetch it, and push your changes up to it
git remote add my-fork
slmingol /
Created Feb 7, 2020 — forked from dobesv/
Script to create (1) a local certificate authority, (2) a host certificate signed by that authority for the hostname of your choice
#!/usr/bin/env bash
# Creates a CA cert and then generates an SSL certificate signed by that CA for the
# given hostname.
# After running this, add the generated dev_cert_ca.cert.pem to the trusted root
# authorities in your browser / client system.
slmingol /
Created Jan 24, 2020 — forked from joyrexus/
collapsible markdown

collapsible markdown?


yes, even hidden code blocks!

print("hello world!")