Skip to content

Instantly share code, notes, and snippets.

Avatar

duketwo duketwo

View GitHub Profile
@duketwo
duketwo / gist:63cd9fdae6dcc93e49b2a707e5d1233b
Created Aug 5, 2020
Git git ignore removed included files
View gist:63cd9fdae6dcc93e49b2a707e5d1233b
#Add/change gitignore
#Delete all
git rm -r --cached .
#Add all
git add .
#commit
View gist:6bd21a90d9527b5fe9e923d7fd24d244
iptables -L FORWARD -v | grep -v "docker" | grep -v "br-"
@duketwo
duketwo / danted_install_script.sh
Created Nov 22, 2017
Dante-Server (danted) install script (Debian 8 - Jessie)
View danted_install_script.sh
# Dante-Server install script (Debian 8 - Jessie)
# Start with 'chmod +x danted_install_script.sh && danted_install_script.sh'
# duketwo - 12.11.2017
random_pw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
network_adapter=$(ip route | grep default | sed -e "s/^.*dev.//" -e "s/.proto.*//")
username="SallySample"
port="31337"
public_ip=$(dig +short myip.opendns.com @resolver1.opendns.com)
echo "Random password: $random_pw"
echo "deb-src http://ftp.de.debian.org/debian/ sid main non-free contrib" >> /etc/apt/sources.list
@duketwo
duketwo / close_steam.sh
Last active May 20, 2017
Steam link automatically close big picture mode - Linux / Gnome
View close_steam.sh
#!/bin/bash
# wmctrl is required! for debian based distributions: apt-get install wmctrl
# copy to /bin/close_steam.sh
# chmod +x /bin/close_steam.sh
# autostart: launch "gnome-session-properties" and add "close_steam.sh &"
while true
do
wmctrl -c steam
@duketwo
duketwo / tmux.md
Created Apr 17, 2017 — forked from Bekbolatov/tmux.md
Clean tmux cheat-sheet
View tmux.md

Clean tmux cheat-sheet

By resources

sessions

list-sessions        ls         -- List sessions managed by server
new-session          new        -- Create a new session