A handy little script to output which Ceph OSD it mapped to which drive serial number: #!/bin/bash DISKS=`ceph-disk list | grep "ceph data"` old_IFS=$IFS IFS=$'n' #echo $DISKS for DISK in…
Ceph map OSD to disk/drive serial number
Ubuntu manual partition installation
From time to time you might need to create partitions manually in order to install Ubuntu on a specific hard drive in a multi-drive PC. Get started by deleting all…
Reload html, css and js without restarting app Spring
When working on the frontend for Spring web apps, you will probably have come across an issue where you'll need to reload the app each time you change one line…
Strange emoticons/icons in Thunderbird Ubuntu
Thunderbird on Ubuntu sometimes displays enlarged icons for mails containing certain emoticons. To solve this you can run the following command: sudo apt-get install fonts-symbola
Graphics card not showing in Nvidia X Server Settings Ubuntu
It can sometimes be quite a mission to get Nvidia graphics cards working correctly with Ubuntu/Linux. I recently encountered an issue where after installing the drivers (for the GTX 1060)…
Find duplicate rows MySQL
A nice simple query to find duplicate rows in MySQL: SELECT COLUMN_NAME, COUNT(*) c FROM TABLE GROUP BY COLUMN_NAME HAVING c > 1; Credit to the Tin Man
Update root password MySQL
ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password';
ValidatorException: PKIX path building failed
When using self-signed certificates you might come across the following error: > "javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target" To solve…
Mount NFS share Ubuntu
To mount an NFS share in Ubuntu you need to install nfs-common: sudo apt-get install nfs-common Next, create the directory to which you would like to mount the share: sudo…
Remove node from cluster Proxmox
To remove a node from a Proxmox cluster you will need to SSH into any node other than the one you want removed. Next, identify the name of the node…









