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
## 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
@SolomonHD
SolomonHD / README.md
Last active November 27, 2023 17:42
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

@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 / 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 / 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 / delegates.rb
Created December 2, 2019 22:04
Delegates file for S3
require 'net/http'
require 'uri'
require 'json'
require 'java'
##
# Delegate script to connect Cantaloupe to Fedora. It slices a piece of
# Cantaloupe for Samvera to consume.
#
# This is a first pass and doesn't have a lot of error checking built in yet.
@SolomonHD
SolomonHD / ssh-to-ec2-by-tag-name
Last active October 11, 2019 18:17
Bash function for SSH into EC2 by Name Tag
<< ////
This function will ssh into a EC2 based on Name tags. You can ssh in via public or private IP This function requires awscli to work
There are several optional environment variables:
AWS_PROFILE = Control which profile is active with this variable, if this is unset the function will use AWS_DEFAULT_PROFILE instead
SSH_EC2_KEY_FILE = path to the key file for the user
SSH_EC2_USER = name of the user that logs in, if this variable is unset the value is ec2-user
To use this function do the following commands
(from command line)
@SolomonHD
SolomonHD / delegates.rb
Created December 11, 2018 16:44
Cantaloupe delegates.rb with CGI enabled
require 'net/http'
require 'uri'
require 'json'
require 'java'
##
# Delegate script to connect Cantaloupe to Fedora. It slices a piece of
# Cantaloupe for Samvera to consume.
#
# This is a first pass and doesn't have a lot of error checking built in yet.
@SolomonHD
SolomonHD / ec2_name_mapping.yml
Last active July 6, 2018 14:10
EC2 Name Mapping
---
- name: Build list of instance IDs by instance name
ec2_instance_facts:
region: "{{ region }}"
filters:
"tag:NightlyBackup": "Yes"
# "tag:Name": "{{ groups['backup'] }}"
register: ec2_facts
- debug:
@SolomonHD
SolomonHD / 05MAR15
Created March 5, 2015 14:12
05MAR15 Its about MODULEs guys
require 'minitest/autorun'
require 'minitest/pride'
# Write code which will be included in the human class which will give humans
# intelligent and bipedal behavior.
# WRITE YOUR CODE BELOW THIS COMMENT...
module Intelligent
NUMBER_OF_BRAINS = 1