Skip to content

Instantly share code, notes, and snippets.

View slmingol's full-sized avatar
:octocat:
codz

Sam Mingo slmingol

:octocat:
codz
View GitHub Profile
@slmingol
slmingol / pi-hole_blacklist.txt
Last active October 20, 2020 04:28
pi-hole blacklist list
# 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
@slmingol
slmingol / learning_go.md
Last active March 9, 2020 13:20 — forked from vermagav/learning_go.md
Learning Go
@slmingol
slmingol / AdList.txt
Created February 23, 2020 19:01 — forked from hermanjustinm/AdList.txt
Ad Block List
##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 February 22, 2020 23:46 — forked from jagregory/gist:710671
How to move to a fork after cloning
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 February 7, 2020 07:31 — 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
#!/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 / certs.md
Last active February 7, 2020 07:30
TLS/SSL Certificate Authority Setup
@slmingol
slmingol / README.md
Created January 24, 2020 00:31 — forked from joyrexus/README.md
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
@slmingol
slmingol / Brewfile
Created January 12, 2020 05:29 — forked from fesnow/Brewfile
The alternate shell script of deprecated `brew bundle` command
#!/bin/bash
## Install Xcode from AppStore before you execute commands below for macvim
## After that, you need to open Xcode and agree the terms and install components
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Base
brew install homebrew/cask/google-chrome
brew install homebrew/cask/google-japanese-ime
brew install homebrew/cask/google-drive
@slmingol
slmingol / verbos-argpary-example.py
Created December 20, 2019 18:38 — forked from ms5/verbos-argpary-example.py
manipulating log level with python argparse
import argparse
import logging
parser = argparse.ArgumentParser()
parser.add_argument('--verbose', '-v', action='count', default=1)
args = parser.parse_args()
args.verbose = 70 - (10*args.verbose) if args.verbose > 0 else 0
logging.basicConfig(level=args.verbose, format='%(asctime)s %(levelname)s: %(message)s',