Skip to content

Instantly share code, notes, and snippets.

View AfroThundr3007730's full-sized avatar
🔧
Hacking all the things...

Eddie Carswell AfroThundr3007730

🔧
Hacking all the things...
View GitHub Profile
@AfroThundr3007730
AfroThundr3007730 / keybase.md
Last active September 14, 2016 03:37
Keybase Identity Proof

Keybase proof

I hereby claim:

  • I am afrothundr3007730 on github.
  • I am afrothundr (https://keybase.io/afrothundr) on keybase.
  • I have a public key whose fingerprint is 59CF 0A80 1F35 22E8 E307 692E B1CB BA55 1CB0 C5A3

To claim this, I am signing this object:

@AfroThundr3007730
AfroThundr3007730 / openpgp.txt
Created February 13, 2017 04:54
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:48fee08fd7fc38f0b9abdb46496a436a200e64ec]
@AfroThundr3007730
AfroThundr3007730 / 00-repoupdate.md
Last active January 9, 2023 09:44
Configuration files for local yum and apt repositories. (Retired)

Note: This gist is historical now that I've moved this to a proper repo: AfroThundr3007730/syncrepo

Below are configuration files for creating upstream and downstream yum and apt repositories. These can be hosted on a CentOS, Debian, or Ubuntu system and served via rsync or http. The only requirements are rsync and a webserver, such as apache, and also debmirror. Note that not all required setup steps are listed here (TODO: add setup guide).

Filename Description Notes
00-syncrepo.sh Combined all-in-one repo sync script. Still alpha. Last tested: v1.6.5
@AfroThundr3007730
AfroThundr3007730 / 01-root-openssl.conf
Last active December 5, 2022 23:47
OpenSSL root and intermediate CA configurations
# OpenSSL root CA configuration file.
[ ca ]
default_ca = ca_default
[ ca_default ]
dir = /etc/pki/CA/root-ca
certs = $dir/certs
crl_dir = $dir/crl
new_certs_dir = $dir/newcerts
@AfroThundr3007730
AfroThundr3007730 / 00-clamav-notes.sh
Last active February 5, 2022 05:54
My notes on getting ClamAV working on CentOS 7
# How to get ClamAV working on CentOS 7
yum -y install epel-release && yum -y update
yum -y install clamav clamav-data clamav-scanner clamav-scanner-systemd clamav-server clamav-server-systemd clamav-unofficial-sigs clamav-update
# Add /etc/clamd.d/freshclam.conf
# Add /usr/lib/systemd/system/clamav-freshclam.service
systemctl enable clamav-freshclam.service && systemctl start clamav-freshclam.service
@AfroThundr3007730
AfroThundr3007730 / main.css
Last active September 15, 2018 21:10
Current main site css
/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */
button,
hr,
input {
overflow: visible
}
audio,
canvas,
@AfroThundr3007730
AfroThundr3007730 / filesplit.ps1
Last active March 2, 2024 03:36
Collection of useful powershell snippets
#Usage filesplit.ps1 <filename> <# of lines>
Param(
[parameter(mandatory=$true,position=0)][string]$filename,
[parameter(position=1)][string]$linesperFile = 100000
)
$sw = new-object System.Diagnostics.Stopwatch
$sw.Start()
$rootName = (join-path ([io.fileinfo]$filename).directoryname ([io.fileinfo]$filename).basename) + '_'
$ext = ([io.fileinfo]$filename).extension
@AfroThundr3007730
AfroThundr3007730 / 00-getcert.md
Last active March 30, 2024 23:25
Renews my LetsEncrypt certificates if they expire in less than 3 days.

This gist includes a certificate renewal script, which I use to renew both of my LetsEncrypt certificates, as well as the systemd unit files necessary to automate it. It's currently set to run every 12 hours, and renews the certificates if they expire in less than 3 days. The certbot tool is required in order to use this script. Note that I generated my keys and CSR manually because I needed to add specific extensions to my certificates. That process is not covered here.

Filename Description
01-getcert.sh The certificate renewal script.
02-cli.ini Example Certbot configuration.
03-getcert.timer The systemd timer unit file.
04-getcert.service The systemd service unit file.
05-openssl.conf Example openssl.conf for the CSR
06-getcert-ddns.sh DDNS version of the renewal script.
@AfroThundr3007730
AfroThundr3007730 / NotSymVer
Last active September 14, 2017 20:45
An extension to semantic versioning.
NotSymVer v0.1
================
Name:
Not Semantic Versioning - An extension to semantic versioning.
Syntax:
Name[[-]Gen] [Epoch:][Gen-]Major.Minor[[.Micro].Patch][-Pre][+Post][~Build[Pkg]][_Pkg]
@AfroThundr3007730
AfroThundr3007730 / ms08_067.py
Last active October 2, 2018 11:12
Modified version of the MS08-067 python script found here: https://github.com/ankh2054/python-exploits/blob/master/ms08_067.py
#!/usr/bin/env python
import struct
import time
import sys
from threading import Thread
try:
from impacket import uuid