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 / .zshrc
Last active July 31, 2019 02:23
My .zshrc
#export PATH=$HOME/anaconda3/bin:$PATH
#export PATH=$HOME/anaconda2/bin:$PATH
export BANNERMSG="Edit your .zshrc!"
export GREP_COLOR=always
export LANG=en_US.utf8
#export EDITOR=/bin/nano
#export GOPATH=$HOME/go/
#export GOCODE=$HOME/go/
#export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/usr/local/share/zsh-syntax-highlighting/highlighters
@brianlechthaler
brianlechthaler / namegen.sh
Created October 21, 2015 17:01
Name Generator
echo First word, Adjective:
curl -s "http://api.wordnik.com:80/v4/words.json/randomWord?hasDictionaryDef=false&includePartOfSpeech=adjective&minCorpusCount=0&maxCorpusCount=-1&minDictionaryCount=1&maxDictionaryCount=-1&minLength=5&maxLength=-1&api_key=YOUR_API_KEY_HERE"
echo
echo
echo Second word, Noun:
curl "http://api.wordnik.com:80/v4/words.json/randomWord?hasDictionaryDef=false&includePartOfSpeech=noun&minCorpusCount=0&maxCorpusCount=-1&minDictionaryCount=1&maxDictionaryCount=-1&minLength=5&maxLength=-1&api_key=YOUR_API_KEY_HERE"
echo
echo
echo Now, combine these two, and you have your name.
echo For example, if your two words were ‘taught’ and ‘webzines’, your name would be TaughtWebzines.
@brianlechthaler
brianlechthaler / Lechthaler.terminal
Created December 5, 2015 21:15
My OS X Terminal Theme (copy/paste into TextEdit, save as Lechthaler.terminal, go to Terminal Preferences and import the theme)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BackgroundColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw
LjEwOTgwMzkyMTYgMC4xMTM3MjU0OTAyIDAuMTA5ODAzOTIxNgAQAYAC0hAREhNaJGNs
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp
@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

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 / 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
@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 / 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 / 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 / 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