Simple Mysql Backup Script can be used with Crontab

This script backs up all databases on the server it’s running on. Usually ran as a cron job. Hope someone else can use this as well. #!/bin/bash # Backup ALL mysql databases # by crouse – https://crouse.us x=`mysql –user=root –password=REMOVED -B -e "show databases" | wc -l `; y=$((x-2)); for i in `mysql –user=root –password=REMOVED… Read More »

A Bunch of new movies for 2013

My short list of movies to make sure I see in 2013 … ok, not so short… and the thing is, I’m not sure my wife would like even one of these !!! Pacific Rim Man of Steel Star Trek – Into Darkness Elysium After Earth Percy Jackson: Sea of Monsters The Wolverine https://www.youtube.com/watch?v=jWO-pavx9e0 Thor… Read More »

A few .bashrc functions

Adding functions into your .bashrc file makes shortcuts available in your shell session by just typing the name of the function. These are just a few of the ones I have in my own .bashrc file, some are silly, some are useful 🙂 # bu – A quick backup function bu () { cp $1… Read More »

Auto indenting php/html files with vim

Auto indenting php/html files with vim Not really hard once you know how 🙂 :set ft=phtml gg=G Vim is pretty cool, and can do some really interesting stuff if you take the time to learn how 🙂

7 things to do after installing Linux Mint 14

1. Update packages via update manager: 0:12 2. Install additional drivers: 0:52 3. Install ubuntu-restricted-extras: 1:55 4. Select a download server: 2:45 5. Install Firestarter (firewall program): 3:56 6. Install VLC Media Player: 5:35 7. Configure keyboard shortcuts: 6:37

Converting .wma files to .mp3 files

How to convert .wma files to .mp3 files. Requires, mplayer and lame for i in *.wma ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader "$i" && lame -m j -h –vbr-new -b 160 audiodump.wav -o "`basename "$i" .wma`.mp3"; done; rm -f audiodump.wav

Archlinux – fixing the strange characters in your terminal

Ever get those strange looking little buggers in your console after installing Arch and firing up the terminal ? Something like this — [[email protected] ~]$ pstree init─┬─6*[agetty] ├─crond ├─httpd───11*[httpd] ├─mysqld_safe───mysqld───9*[{mysqld}] ├─sshd─┬─sshd───sshd───bash───su───bash │ └─sshd───sshd───bash───pstree ├─syslog-ng───syslog-ng ├─udevd───udevd └─vmtoolsd Simply add the following to your .bashrc and close your terminal window and open it up again, or source… Read More »