Skip to content

Instantly share code, notes, and snippets.

View skurhse's full-sized avatar

Skurhse Rage ∅ skurhse

View GitHub Profile
#!/bin/bash
env 1>&1 |
grep '^PATH=' 1> >(cat) |
cut -c 6- |
awk '
{
old = ":"
new = "\n"
while ($0 ~ /:/) {
#!/bin/bash
sudo apt-get update
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:deluge-team/ppa
sudo apt-get update
sudo apt-get install deluged deluge-console
sudo adduser --system --gecos 'Deluge Service' --disabled-password --group --home /var/lib/deluge deluge
#!/bin/bash
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install ufw -y
sudo ufw allow OpenSSH #application name
sudo ufw allow 26656
sudo ufw enable
@skurhse
skurhse / setup_ssh.bash
Last active May 20, 2019 05:29
setup_ssh.bash
#!/bin/bash
read -s -p 'user:' user
adduser --gecos '' --ingroup sudo "$user"
install -o "$user" -g sudo -m 700 -d "/home/$user/.ssh"
install -o "$user" -g sudo -m 644 /dev/null "/home/$user/.ssh/authorized_keys2"
cat </root/.ssh/authorized_keys2 >>"/home/$user/.ssh/authorized_keys2"
rm /root/.ssh/authorized_keys2