Skip to content

Instantly share code, notes, and snippets.

View brianlechthaler's full-sized avatar
🎉
This account is now 11 years old!

Brian Lechthaler brianlechthaler

🎉
This account is now 11 years old!
View GitHub Profile
@brianlechthaler
brianlechthaler / torrc
Created February 16, 2020 15:46
Example torrc for Relays
#Example torrc for relay nodes
#Non-exit, logs, no socks proxy, ORPort 9001
#RELAY CONFIG:
##Open ORPort on 9001 for inbound relay traffic.
###You will definitely need to expose this port to NAT and adjust iptables as necessary.
ORPort 9001
@brianlechthaler
brianlechthaler / htb.dockerfile
Created January 30, 2020 06:37
HackTheBox Docker VM template
#!/bin/sh
#IMPORTANT:
# Make sure to place this dockerfile in a directory
# with your (username).ovpn profile from your connection path!!!
#NB: You can change this to any debian-based distro
FROM kalilinux/kali-linux-docker
RUN apt-get update ; apt-get upgrade -y
@brianlechthaler
brianlechthaler / htb.dockerfile
Created January 30, 2020 06:37
HackTheBox Docker VM template
#!/bin/sh
#IMPORTANT:
# Make sure to place this dockerfile in a directory
# with your (username).ovpn profile from your connection path!!!
#NB: You can change this to any debian-based distro
FROM kalilinux/kali-linux-docker
RUN apt-get update ; apt-get upgrade -y
@brianlechthaler
brianlechthaler / config
Last active September 19, 2019 21:03
i3wm Config
set $mod Mod4
#Set the font to something nice. Requires nerdfonts to be installed.
font pango:SpaceMono NF Regular 12
#font pango:DejaVu Sans Mono 8
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
@brianlechthaler
brianlechthaler / ezcrypt.sh
Created February 4, 2019 05:41
EasyCrypt
#Brian Lechthaler
#2/3/2019
#NTS370/Project 1.5
#University of Advancing Technologies
#
#[Project from NTS370 "Shell Scripting for Hackers"]
#
#EasyCrypt
# Use OpenSSL to encrypt/decrypt files
# with a user-defined password.
@brianlechthaler
brianlechthaler / ethminer_setup.sh
Created December 18, 2017 05:15
NVIDIA CUDA/OpenCL ethminer Setup Script
####PLEASE CHECK LINES 30-33 BEFORE EXECUTING SCRIPT!
####YOU HAVE BEEN WARNED.
#!/bin/bash
####CUDA Installation
sudo apt-get install wget git openssl curl
git clone https://gist.github.com/aabccbe60948d9fb29f5dacf81c5fd84.git
chmod +x aabccbe60948d9fb29f5dacf81c5fd84/install_cuda.sh
./aabccbe60948d9fb29f5dacf81c5fd84/install_cuda.sh
@brianlechthaler
brianlechthaler / install_cuda.sh
Last active May 10, 2018 05:51
Ubuntu 16.04 CUDA Install Script
#!/bin/bash
cd /tmp
wget https://developer.nvidia.com/compute/cuda/9.1/Prod/local_installers/cuda-repo-ubuntu1604-9-1-local_9.1.85-1_amd64
sudo dpkg -i cuda-repo-ubuntu1604-9-1-local_9.1.85-1_amd64
sudo apt-key add /var/cuda-repo-9-1-local/7fa2af80.pub
sudo apt-get update
sudo apt-get install cuda -y
echo "-----------------"
echo "INSTALL COMPLETE."
echo "HIT ANY KEY"
@brianlechthaler
brianlechthaler / install_docker.sh
Last active June 30, 2019 05:01
Docker CE Install Script
#!/bin/bash
echo "This script will install Docker CE."
echo "Press any key to continue."
read -n 1
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update

Keybase proof

I hereby claim:

  • I am brianlechthaler on github.
  • I am brianlechthaler (https://keybase.io/brianlechthaler) on keybase.
  • I have a public key ASD00ifsahyFO_cvYk0Ll03hQTtPYwFDa-xq4Tlqerpn4wo

To claim this, I am signing this object:

@brianlechthaler
brianlechthaler / macgen.sh
Created December 5, 2015 21:17
generates a MAC address at random using OpenSSL
while openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//' >> random_mac-addrs.txt; do echo $LINENO; done