Skip to content

Instantly share code, notes, and snippets.

View TheNicholasNick's full-sized avatar

Nicholas Orr TheNicholasNick

View GitHub Profile
### Keybase proof
I hereby claim:
* I am thenicholasnick on github.
* I am thenicholasnick (https://keybase.io/thenicholasnick) on keybase.
* I have a public key ASDESCNYR3yfZ_-cayZa3H4TqD0iqc3X8zMmhdnfUlttXgo
To claim this, I am signing this object:
@TheNicholasNick
TheNicholasNick / squid.conf
Created May 18, 2019 09:32
squid.conf complete example allow ip
acl IP_OK src 12.13.14.15
acl SSL_ports port 443
acl SSL_ports port 8080
acl SSL_ports port 10443
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
@TheNicholasNick
TheNicholasNick / build.sh
Created April 24, 2019 18:55
TurtleCoin Ubuntu 16.04 xmrig gcc-7
# https://askubuntu.com/a/980495
apt-get update && \
apt-get upgrade -y && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:ubuntu-toolchain-r/test && \
apt-get update && \
apt-get install -y gcc-7 g++-7 && \
apt-get install -y git build-essential cmake libuv1-dev libmicrohttpd-dev libssl-dev && \
git clone https://github.com/xmrig/xmrig.git && \
cd xmrig && \
/* (c) 2017 PeerName | https://peername.com */
chrome.webRequest.onBeforeRequest.addListener(function(details) {
var parser = document.createElement('a');
parser.href = details.url;
var parts = parser.hostname.split('.');
var tld = parts[parts.length-1];
if(["bit", "emc", "coin", "lib", "bazar"].indexOf(tld) !== -1) {
var name = parts[parts.length-2];
var domain = parser.hostname;
var access = (parser.protocol == "https:" ? "HTTPS" : "PROXY");
@TheNicholasNick
TheNicholasNick / doit.txt
Created March 29, 2019 02:49
debian buster wireguard router
# 2019-03-29
# debian-buster-DI-alpha5-amd64-netinst.iso
# ssh only installed at the end up and running, ie internet interface setup and working
# I was running in a hyper-v guest vm on windows and so installed the hyper-v daemons
# and curl as base install doesn't include it, useful for checking public ip's
# then the following
export DEBIAN_FRONTEND=noninteractive
cat <<-EOF > /etc/apt/sources.list
deb http://httpredir.debian.org/debian buster main contrib non-free
@TheNicholasNick
TheNicholasNick / gist:05c7f58ee1ee6a089c9ac3769281b721
Created December 27, 2018 08:31
docker save image with progress
docker save repo/image:tag | pv -s $(docker image inspect repo/image:tag --format='{{.Size}}') | gzip > saved-iamge.tgz
@TheNicholasNick
TheNicholasNick / hex purple colour
Last active December 14, 2018 07:14
hex purple colour
#7d26cd
@TheNicholasNick
TheNicholasNick / 01 Install Arch Linux Guest on Hyper-V.md
Last active May 2, 2023 16:05
Arch Linux, UEFI, LVM - Hyper-V Guest
@TheNicholasNick
TheNicholasNick / addkeys.sh
Last active November 3, 2018 08:12
Script to add SSH keys to authorized_keys file
# curl -L https://domain/addkeys | bash -s
mkdir -p ~/.ssh
echo ""
if ! [[ -f ~/.ssh/authorized_keys ]]; then
echo "Creating new ~/.ssh/authorized_keys"
touch ~/.ssh/authorized_keys
fi
chmod 700 ~/.ssh

Keybase proof

I hereby claim:

  • I am soregums on github.
  • I am soregums (https://keybase.io/soregums) on keybase.
  • I have a public key ASD4IJkf49NZO3qZhn0eKAuJ5f65mRfHgTfEFEVPKfSoKgo

To claim this, I am signing this object: