Skip to content

Instantly share code, notes, and snippets.

[ExternalHd]
comment = External USB Disk
path = /media/rock/NAS
hide files = /media/rock/NAS/z
force user = rock
writeable = Yes
only guest = Yes
create mask = 0777
directory mask = 0777
browseable = Yes
@deepesh-agarwal
deepesh-agarwal / net_priority.sh
Last active February 10, 2022 15:57
Linux Traffic Prioritization Script
#!/bin/bash
# Personal note : add rules to /etc/rc.local file so they will be loaded after booting up
# Change modemif to your network interface value
modemif=eth0
iptables -t mangle -N ack
iptables -t mangle -A ack -m tos ! --tos Normal-Service -j RETURN
iptables -t mangle -A ack -p tcp -m length --length 0:128 -j TOS --set-tos Minimize-Delay
iptables -t mangle -A ack -p tcp -m length --length 128: -j TOS --set-tos Maximize-Throughput
#!/bin/bash
# Usage instructions at http://www.megaleecher.net/Best_Raspberry_Pi_Hot_Backup_Shell_Script
# This version disables backup image compression as it takes too much time on Pi, to enable uncomment the relavent lines
# Setting up directories, Just change SUBDIR and DIR varibales below to get going
SUBDIR=raspberrypi_backups
DIR=/media/ExternalHd/$SUBDIR