Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
codz

Sam Mingo slmingol

:octocat:
codz
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: https://pgl.yoyo.org/adservers/
# ----
# last updated: Sat, 16 May 2020 10:43:53 GMT
# entries: 3353
# format: hosts (hosts -- in hosts file format)
# credits: Peter Lowe - pgl@yoyo.org - https://pgl.yoyo.org/ - https://twitter.com/pgl
# this URL: https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts;showintro=0
# Patreon: https://patreon.com/blocklist
@slmingol
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
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)
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
https://v.firebog.net/hosts/BillStearns.txt
https://v.firebog.net/hosts/static/w3kbl.txt
https://reddestdream.github.io/Projects/MinimalHosts/etc/MinimalHostsBlocker/minimalhosts
https://reddestdream.github.io/Projects/MinimalHosts/etc/MinimalHostsBlocker/minimalhosts
https://raw.githubusercontent.com/StevenBlack/hosts/master/data/KADhosts/hosts
View learning_go.md
@slmingol
slmingol / AdList.txt
Created Feb 23, 2020 — forked from hermanjustinm/AdList.txt
Ad Block List
View AdList.txt
##StevenBlack's list
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
##MalwareDomains
https://mirror1.malwaredomains.com/files/justdomains
##Cameleon
http://sysctl.org/cameleon/hosts
##Zeustracker
@slmingol
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 git@github...my-fork.git
@slmingol
slmingol / dev_signed_cert.sh
Created Feb 7, 2020 — forked from dobesv/dev_signed_cert.sh
Script to create (1) a local certificate authority, (2) a host certificate signed by that authority for the hostname of your choice
View dev_signed_cert.sh
#!/usr/bin/env bash
#
# Usage: dev_signed_cert.sh HOSTNAME
#
# 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
slmingol / README.md
Created Jan 24, 2020 — forked from joyrexus/README.md
collapsible markdown
View README.md

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")