Grep duplicate JSON keys
If you have large JSON files with application settings in, you need to be sure that the settings only appear once. Not a problem until you get to the stage…
A bunch of ramblings about PHP programming, JQuery, MySQL and other 'stuff'
If you have large JSON files with application settings in, you need to be sure that the settings only appear once. Not a problem until you get to the stage…
If you need to backup your SVN repositories, then you can use this bash script to do so: #!/bin/bash DATE=`date +"%Y-%m-%d"` BACKUP_DIR=/home/user/svn/backup/${DATE} mkdir -p $BACKUP_DIR for dir in `ls /var/svn/`;…
find / -xdev -size +1000000 -exec ls -lh {} \; The above will list files greater than a gigabyte in size… YOu can pipe it to a file if you…
I found on some servers that when I disconnect from an SSH connection, the terminal console is cleared. This is very annoying if I have to SCP a file after…