Author | Version | Last Updated |
---|---|---|
Tyler Smith | 0.1.0 | 2016-04-18 |
Based on the moderation policy of @serp.
### Computer you're connection TO (server) | |
### Computer you're connecting FROM | |
#From Client | |
ssh -L 5903:localhost:5901 user@dpassthroughserver.tld -p34350 | |
# VNC client connection | |
host: localhost: 5903 | |
# file ~/.ssh/config | |
# nc command required | |
Host *.onion | |
CheckHostIP no | |
Compression yes | |
Protocol 2 | |
ProxyCommand nc -X 5 -x 127.0.0.1:9050 %h %p |
# file ~/.ssh/config | |
# nc command required | |
Host *.onion | |
CheckHostIP no | |
Compression yes | |
Protocol 2 | |
ProxyCommand nc -X 5 -x 127.0.0.1:9050 %h %p |
Author | Version | Last Updated |
---|---|---|
Tyler Smith | 0.1.0 | 2016-04-18 |
Based on the moderation policy of @serp.
assuming device is in /dev/sda1
sudo apt install mdadm
sudo mdadm --create --verbose /dev/md0 --level=mirror --raid-devices=1 /dev/sda1
sudo mkdir -p /mnt/raid1
sudo mkfs.ext4 /dev/md0
sudo mount /dev/md0 /mnt/raid1/
ls -l /mnt/raid1/
sudo nano /etc/fstab
find the UUID with lsblk -o UUID,NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL,MODEL
Make sure you create /home/pi/shared
first.
#this is a network share with no authentication
//192.168.50.1/MACOZ-240 /mnt/shared cifs username=guest,password=,vers=1.0,_netdev 0 0
#this is a fat32 drive attached to USB
UUID=XYZ-123 /home/pi/shared vfat defaults,auto,users,rw,nofail,umask=000,x-systemd.device-timeout=3 0 0
In linux
sudo ip route add 192.168.50.0/24 via 192.168.15.2
In MacOS
sudo route -n add -net 192.168.50.0/24 192.168.15.2
persist by adding the line above to
/lib/dhcpcd/dhcpcd-hooks/40-myroute
#!/bin/bash | |
VIDEO_URL=$@ | |
echo "Downloading ${VIDEO_URL}\n" | |
youtube-dl -F $VIDEO_URL | grep "audio only" | sort -nr | awk 'NR==1{print $1}' | xargs -I{} youtube-dl -f {} $VIDEO_URL |
sudo yum install -y yum-utils | |
sudo yum install docker-ce docker-ce-cli containerd.io | |
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
sudo yum install docker-ce docker-ce-cli containerd.io | |
sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo | |
sudo dnf repolist -v | |
dnf list docker-ce --showduplicates | sort -r | |
sudo dnf -y install docker-ce --nobest | |
docker ps | |
sudo systemctl enable --now docker |
#!/bin/bash | |
# Optional: | |
# add an A DNS record pointing to you server's IP address | |
# e.g, for mydomain.com, mail -> 127.0.0.1. Would be mail.mydomain.com | |
docker run -it --rm --name inbucket -p 9000:9000 -p 25:2500 -p 1100:1100 inbucket/inbucket |