Skip to content

Instantly share code, notes, and snippets.

View tkuennen's full-sized avatar

Travis Kuennen tkuennen

View GitHub Profile
@tkuennen
tkuennen / config
Created April 12, 2018 04:28
A useful group of settings for ssh config files
Connection Sharing
ControlMaster auto
ControlPath ~/.ssh/ssh_%h_%p_%r
Control persistance
ControlPersist 4h
TCPKeepAlive no
ServerAliveInterval 120
ServerAliveCountMax 3
# Specify identity
IdentityFile /path/to/identity
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install\ macOS\ High\ Sierra.app
@tkuennen
tkuennen / templitize.sh
Last active July 12, 2018 23:23
cleaner
#!/bin/bash
# _ _ _ _ _ _
#| |_ ___ _ __ ___ _ __ | (_) |_(_)_______ ___| |__
#| __/ _ \ '_ ` _ \| '_ \| | | __| |_ / _ \ / __| '_ \
#| || __/ | | | | | |_) | | | |_| |/ / __/_\__ \ | | |
# \__\___|_| |_| |_| .__/|_|_|\__|_/___\___(_)___/_| |_|
# |_|
# Cleans up a system to turn it into a clean template
# curl https://git.io/vNesO |bash
# Stop services for cleanup
@tkuennen
tkuennen / 1-macOS-Launchctl-limits.md
Last active May 30, 2020 05:27 — forked from tombigel/README.md
How to Change Open Files Limit on macOS (10.8 - 10.13)
#!/bin/sh
# _____ ______ _ _ ____ ___ ____
# / _ \ \ / / _ \| \ | | ___ ___ _ __ / ___| ___ ___|_ _| _ \
#| | | \ \ / /| |_) | \| |/ __/ _ \| '_ \ _____| | _ / _ \/ _ \| || |_) |
#| |_| |\ V / | __/| |\ | (_| (_) | | | |_____| |_| | __/ (_) | || __/
# \___/ \_/ |_| |_| \_|\___\___/|_| |_| \____|\___|\___/___|_|
# A simple sctipt to email a summary of OpenVPN connections
script="ovpncon"
version="0.1"
@tkuennen
tkuennen / cmccvti.sh
Last active July 10, 2018 18:50
Install CMCC Visualization Tool
#!/bin/sh
#
# https://github.com/ccmc/visualization
#
sudo yum -y install git
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh && bash Miniconda2-latest-Linux-x86_64.sh -b -p $HOME/miniconda2 -f && rm Miniconda2-latest-Linux-x86_64.sh
export PATH="$HOME/miniconda2/bin:$PATH"

A script to add a VPN connection in Windows 10

  1. Download both of the scripts, and place both files on the desktop.
  2. Double click on the VPN.bat file
  3. When prompted click "Yes" to run the script as an administrative user
  4. Enter the connection details when prompted (VPN address, pre shared key)
  5. Reboot
@tkuennen
tkuennen / rstp-hls-streamer.sh
Created July 10, 2018 21:04
RSTP-to-HLS-Stream
ffmpeg -rtsp_transport tcp -i rtsp://<user>:<password>@192.168.0.218/live/ch1 \
-acodec copy \
-vcodec copy \
-hls_wrap 40 \
-flags -global_header \
/var/www/html/cam/cam1.hls
sudo yum -y install epel-release
sudo curl -LOs https://downloads.globus.org/toolkit/globus-connect-server/globus-connect-server-repo-latest.noarch.rpm
sudo rpm --import https://downloads.globus.org/toolkit/gt6/stable/repo/rpm/RPM-GPG-KEY-Globus
sudo yum -y install globus-connect-server-repo-latest.noarch.rpm
sudo yum clean all
sudo yum -y install yum-plugin-priorities
sudo yum -y install globus-connect-server
@tkuennen
tkuennen / NMAP HTML
Created October 5, 2018 14:51
Beautiful HTML output for NMAP scans
nmap -A -oX nmapoutput -T5 192.168.0.1
xsltproc nmapoutput.xml -o scanme.html