Home of Jacob Aae Mikkelsen

 

Blog


 
 
 

Tips and Tricks

Mostly for my own sake (teflonic brain)

Java Linux
Danish Letters in UTF8 in Java Strings
Java
æ "\u00e6" "\u00c6".toLowerCase()
Æ "\u00c6" "\u00e6".toUpperCase()
ø "\u00f8" "\u00d8".toLowerCase()
Ø "\u00d8" "\u00f8".toUpperCase()
å "\u00e5" "\u00c5".toLowerCase()
Å "\u00c5" "\u00e5".toUpperCase()

Terminate hanging ssh connection gracefully
Linux

Pres ENTER + ~ + .

Enter tilde dot is the command


List all cronjobs
Linux

Run as root:

for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done

Filesize
Linux
du -ks * | sort -n -r

or try ncdu it is easy to manuevere and includes hidden files and dirs