Finding text in files in a folder
Quite often I find myself looking for files which contain the same text. Mainly config settings, etc. On linux you can use this: find ./ -type f -exec grep -l…
A bunch of ramblings about PHP programming, JQuery, MySQL and other 'stuff'
Quite often I find myself looking for files which contain the same text. Mainly config settings, etc. On linux you can use this: find ./ -type f -exec grep -l…
Simple syntax to create a super user (for editing users and dropping schemas etc) CREATE USER 'superuser'@'%' IDENTIFIED BY ''; GRANT ALL PRIVILEGES ON *.* TO 'superuser'@'%' WITH GRANT OPTION;…
In order to compact a virtualbox VDI file and recover some of the lost space (especially useful when using a VM for your development databases) then its really rather simple:…
I’ve used openvpn on Mac (using Tunnelblick) for a few years for a home->work VPN connection with no issues, and suddenly today, it would disconnect me every two minutes. This…
We’ve been using a bit of a google doc recently for logging stuff, and sometimes cells get missed. I wanted to just test out a bit of google doc and…
I often need to check my WAN IP address – so this little command will do it for you in a terminal window dig +short myip.opendns.com @resolver1.opendns.com If you alias…
If you made a typo or a similar mistake when naming your new branch, and you want to rename it, is very simple: svn move http://svn.domain.com/project/branches/old/ http://svn.domain.com/project/branches/new Remember to switch…
So you get that annoying “The volume can’t be ejected because it’s currently in use.” message trying to unmount your disk, well, to find out what is using the disk,…
So, I use svnX on MacOSX and I find DiffMerge a much nicer application than the default FileMerge, but I couldn’t get it to load. I was getting some spurious…
So, trying to use a Linux Mint laptop and Plex for a lower power consumption server seemed a good idea, until I realised the disk in the laptop was only…