This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install ufw fail2ban | |
ufw enable | |
sudo ufw enable | |
sudo ufw logging low | |
sudo ufw allow 80/tcp # http | |
sudo ufw allow 443/tcp # https | |
sudo ufw allow 64738 # mumble | |
sudo ufw limit 22/tcp # limit ssh attempts | |
sudo ufw status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
mkdir mp3 | |
for I in *.flac; do | |
flac -d --stdout "$I" | lame -V0 --vbr-new - mp3/"$I" | |
done | |
for J in *.flac; do | |
id3cp -2 "$J" mp3/"$J" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# for all files in folder, remove newlines | |
for FILE in `ls` | |
do | |
tr -d '\n' < $FILE > ${FILE}.tmp | |
mv ${FILE}.tmp $FILE | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
eyeD3 --rename '$artist - $album - $track:num - $title' *.mp3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HANDY ONE-LINE SCRIPTS FOR AWK 30 April 2008 | |
Compiled by Eric Pement - eric [at] pement.org version 0.27 | |
Latest version of this file (in English) is usually at: | |
http://www.pement.org/awk/awk1line.txt | |
This file will also be available in other languages: | |
Chinese - http://ximix.org/translation/awk1line_zh-CN.txt | |
USAGE: |
NewerOlder