Skip to content

Instantly share code, notes, and snippets.

@duketwo
duketwo / gist:63cd9fdae6dcc93e49b2a707e5d1233b
Created August 5, 2020 15:48
Git git ignore removed included files
#Add/change gitignore
#Delete all
git rm -r --cached .
#Add all
git add .
#commit
@duketwo
duketwo / gist:6bd21a90d9527b5fe9e923d7fd24d244
Created August 5, 2020 12:14
Hide docker iptable rules
iptables -L FORWARD -v | grep -v "docker" | grep -v "br-"
@duketwo
duketwo / danted_install_script.sh
Created November 22, 2017 03:30
Dante-Server (danted) install script (Debian 8 - Jessie)
# 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 17:04
Steam link automatically close big picture mode - Linux / Gnome
#!/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 April 17, 2017 05:07 — forked from Bekbolatov/tmux.md
Clean tmux cheat-sheet

Clean tmux cheat-sheet

By resources

sessions

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