Check These Out
Extracts the model name of the CPU and displays it on screen.
Gives you a list for all installed chrome (chromium) extensions with URL to the page of the extension.
With this you can easy add a new Bookmark folder called "extensions" add every URL to that folder, so it will be synced and you can access the names from every computer you are logged in.
------------------------------------------------------------------------------------------------------------------
Only tested with chromium, for chrome you maybe have to change the find $PATH.
This command is useful to recursively make executable all "*.sh" files in a folder.
This command is useful to apply chmod recursively in a determined kind of file.
Display a passive popup during seconds. Additionnaly, --title can be used to set the title of the popup. This is a nice way to communicate with a desktop user of a machine you have an SSH access on :
DISPLAY=:0 sudo -u $user -H kdialog --passivepopup "Hello you" 10 --title "cli IM"
If you have to deal with MS Sharepoint which is (rarely, let's hope) used in e.g. certain corporate environments).
This uses Cntlm.
For single files, just use cURL -- its NTLM authentication works quite well.
# /etc/cntlm.conf:
# Username account
# Domain domain
# Password ############
# Proxy 10.20.30.40 (IP of the sharepoint site)
# NoProxy *
# Listen 3128
Converts any number of seconds into days, hours, minutes and seconds.
sec2dhms() {
declare -i SS="$1"
D=$(( SS / 86400 ))
H=$(( SS % 86400 / 3600 ))
M=$(( SS % 3600 / 60 ))
S=$(( SS % 60 ))
[ "$D" -gt 0 ] && echo -n "${D}:"
[ "$H" -gt 0 ] && printf "%02g:" "$H"
printf "%02g:%02g\n" "$M" "$S"
}
Works for most distributions, tested on Ubuntu, Fedora, CentOS, Gentoo, SUSE, RedHat.
Debian and Slackware:
$cat /etc/*version
This commands saves the output in the audio directory. The portion ${file/%avi/mp3} uses bash string replacement to replace the avi to mp3 within the ${file} variable.