Skip to content

Instantly share code, notes, and snippets.

View SolomonHD's full-sized avatar

Solomon Hilliard SolomonHD

  • Emory University
  • Atlanta,GA
View GitHub Profile
@SolomonHD
SolomonHD / awx_get_token
Last active May 11, 2022 19:49
AWX login script, requires TOWER_USERNAME and TOWER_HOST to be set, uses encpass
#!/bin/bash
# Written by Solomon G Hilliard
### Additional Functionality ###
# To avoid having to set awx token for each shell, create and load this alias:
# alias awx='awx --conf.token $(cat ~/.ansible/.awxcli/token)'
### Requirements ###
# Encpass script: https://github.com/plyint/encpass.sh
# AWX CLI: https://github.com/ansible/awx/blob/devel/INSTALL.md#installing-the-awx-cli
@SolomonHD
SolomonHD / powershell_change_ssh_perms.ps1
Last active June 29, 2022 14:57
Powershell Change SSH Key Perms
## This Powershell template sets proper perms for ssh key usage in WSL2. Edit the variables before running
## Requires Powershell 7+!!!
## Set Variables
New-Variable -Force -Name Key -Value "$env:UserProfile\.ssh\key_file_name_here"
New-Variable -Name PERMS -Value "RW"
## Perform Operations,
@SolomonHD
SolomonHD / wireguard_yacht.json
Last active May 7, 2022 19:34
wireguard_yacht_template
[{
"type": 1,
"title": "WireGuard",
"name": "wireguard",
"description": "WireGuard is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography.",
"logo": "https://cdn.freelogovectors.net/wp-content/uploads/2021/10/wireguard-logo-freelogovectors.net_-400x400.png",
"image": "linuxserver/wireguard:latest",
"categories": [
"Other"
],
@SolomonHD
SolomonHD / README.md
Last active May 7, 2025 21:30
SolomonHD's AdBlock Exclusion List

SolomonHD's AdBlock Exclusions List

Installation

To add to Adblock, import a filter with the following url:

https://gist.githubusercontent.com/SolomonHD/af2d4ccee5e893377396f1be16fcf12f/raw/solomonhd_adblock_exception_list.txt

## Prerequisites:
# 1) Create a Docker IPv4 bridge network
# 2) Pick an IPv4 Address for Traefik, use the end of the network range
# 3) Pick a domain, recommend real DNS but faking is possible by editing the /etc/hosts file to point to Traefik's IPv4 address.
# 4) Replace the ${DOMAIN} place holder in the config-ldap.yaml, and env-config.js and files with the domain.
# 5) Get a valid certificate via Let's Encrypt or another method, recommend a wildcard cert
# 6) Copy cert/private key as /etc/letsencrypt/live/${DOMAIN}/{privkey.pem, fullchain.pem}, Uncomment lines 233-234 in the docker.compose.yml file
# Also uncomment the lines in traefik_dynamic.yaml after cert and key are in place
# 7) Copy this file as '.env', fill out with the appropriate values