Search
Donate
Buy me a beer. Or help me to maintain my blog :)
aesptux
Friends blogs
Forums
Fedora release
Categories
Archives
- May 2012
- April 2012
- March 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- May 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- April 2009
Linux Registered User
Author Archives: aesptux
Convert m4a files to mp3 with this script.
Some of my library was in m4a files, which I have problems to play, furthermore I prefer having everything in mp3 format. So I wrote the following script: echo “Dependencies: mplayer and lame” if [ $# -lt 1 ]; then … Continue reading
Quick tip: Adding and substracting dates in PHP
More simple than it may seems. It will take care of adjusting months and days automatically: Working with days: // My date Y-m-d $mydate = “2012-05-06″; //Adding five days $newdate = date(“Y-m-d”, strtotime($mydate. ” +5 days”)); // Substracting five days … Continue reading
Python script to backup and restore rpm packages
I’ve written a simple Python script to backup and restore installed rpm packages. On Ubuntu, I used APTonCD for this matter, but in this case, for Fedora I decided to use my own script. The usage is quite simple, only … Continue reading
Reset NICs by unloading / loading network drivers
This script is specially useful when you clone VMs, but can be used in any other kind of situation where you have problems with network cards, say, duplicated cards for X reason. Try to run this script I wrote: if … Continue reading
How to unlock files on Windows 7
It may happen that you are running several applications writing/reading on several files, then for example, you want to delete one of those files and you cannot because file is being used. On Linux systems it allows you to know … Continue reading
Transactions with MySQL.
If you want to use transactions with MySQL, you will have to use InnoDB engine, because the default engine on MySQL 5.1 (MyISAM) does not support transactions. Otherwise, if you use MySQL 5.5 you do not have to worry about … Continue reading
Check whether Ubuntu requires a reboot or not
To find whether Ubuntu requires a reboot or not, is as simply as checking if a special file exists. To do so: file /var/run/reboot-required ————————– ls /var/run/reboot-required | grep required If the file exists, system would require a reboot.
Generate random password with apg.
Quick tip. If you want to generate a random password, you could use /dev/random, but it is more complex than using apg (Automated Password Generator). So, to install apg on Fedora, run this command: # yum install apg Useful parameters: … Continue reading
Videogame hacking. Cheat on almost every offline game.
Sometimes we get stuck on a game, and we use cheats, that is ok. But in certain cases there is no cheats or are very limited. In games like Dead Space 2 it is not possible, I did not find … Continue reading
Short and useful tip: How to make “tail -f” beep on each new line.
Just in case you do not know, tail prints the last ten lines of the indicated file. Like this: tail /var/log/yum.log Furthermore, if you want to print more lines you can do it with -n parameter: tail -n 20 /var/log/yum.log But … Continue reading