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 | |
find . -regex ".*\.\(opus\|ogg\|m4a\)" -print0 | | |
while IFS= read -r -d $'\0' filename; do | |
echo $filename | |
name="${filename%.*}" | |
< /dev/null ffmpeg -nostats -loglevel 0 -n -i "$filename" -b:a 0 -codec:a libmp3lame -vn "./$name.mp3" | |
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 | |
usage() | |
{ | |
echo "Usage: sh images_compress.sh -d /directory -q 60" | |
exit | |
} | |
while [ "$1" != "" ]; do | |
case $1 in | |
-d ) shift | |
DIRECTORY=$1 |
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
mkdir /ramdisk | |
mount -t tmpfs -o size=2048M tmpfs /ramdisk | |
or copy inside /etc/fstab | |
tmpfs /media/ramdisk tmpfs rw,size=2048M 0 0 | |
And do : | |
mount -a |
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 | |
source /root/.bashrc | |
tmux kill-session -t watch | |
tmux new -d -s watch | |
tmux send-keys -t watch:0.0 'tmux split-window -h' ENTER | |
tmux send-keys -t watch:0.0 'tmux split-window' ENTER | |
tmux send-keys -t watch:0.0 'tmux split-window' ENTER | |
sleep 1 | |
tmux send-keys -t watch:0.1 'top' ENTER | |
tmux send-keys -t watch:0.2 'iftop' ENTER |
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
alias header='curl -I --insecure' | |
alias top='top -d1' | |
alias ttfb='curl -o /dev/null -w "Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} \n"' | |
alias avg='cat /proc/loadavg' | |
alias cs='pidstat -hw | head -3 && pidstat -hw | tail -n +3 | sort -nr -k 4 | head -n 10' | |
alias pflog='cat /var/log/mail.log | /root/scripts/pflogsumm-1.1.1/pflogsumm.pl' | |
alias logmail='tail -f /var/log/mail.log' | |
alias dl='aria2c -x5' | |
alias ngxreport='goaccess -f /var/log/nginx/access.log -a > report.html' |
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
certmgr.msc - Certificate Manager | |
ciadv.msc - Indexing Service | |
compmgmt.msc - Computer management | |
devmgmt.msc - Device Manager | |
dfrg.msc - Defragment | |
diskmgmt.msc - Disk Management | |
fsmgmt.msc - Folder Sharing Management | |
eventvwr.msc - Event Viewer | |
gpedit.msc - Group Policy (< XP Pro) | |
iis.msc - Internet Information Services |
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 | |
# | |
# bash script to create playlist files in music subdirectories | |
# This one will aggregate every sonds inside only one same playlist | |
# Steve Carlson (stevengcarlson@gmail.com) | |
rm -f all.m3u | |
find . -type d | | |
while read subdir | |
do | |
# rm -f "$subdir"/*.m3u |
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
wget \ | |
--recursive \ | |
--no-clobber \ | |
--page-requisites \ | |
--html-extension \ | |
--convert-links \ | |
--restrict-file-names=windows \ | |
--domains www.domain.com \ | |
--no-parent \ | |
www.domain.com |
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
#COPY FILES TO THE PROGRAM DIR | |
New-Item -ItemType Directory -Force -Path "${env:programfiles(x86)}\Aria2\" | |
Copy-Item aria2c.exe "${env:programfiles(x86)}\Aria2\" | |
Copy-Item installer.ps1 "${env:programfiles(x86)}\Aria2\" | |
Copy-Item nssm.exe "${env:programfiles(x86)}\Aria2\" | |
#Install the service | |
##Verify that it's not already installed | |
sc.exe stop aria2c-rpc | |
sc.exe delete aria2c-rpc | |
sleep 2 |
OlderNewer