RSS

13. August 2009

0 Comments

Resetting your mysql root password

First of all we need to stop mysql
/etc/init.d/mysql stop

Create a mysql table dump to reset the password
UPDATE mysql.user SET Password=PASSWORD('YOUR-NEW-MYSQL-PASSWORD') WHERE User='root';
FLUSH PRIVILEGES;

Now we need to start mysql in safe mode and import the mysql table dump
mysqld_safe --init-file=/path/to/mysql/table/dump &

Finally we need to kill mysql and start it in normal mode
killall mysqld
/etc/init.d/mysql start

Your password should now [...]

Continue reading...

12. August 2009

0 Comments

Howto Add time And Date To Your Bash History

This comes in very handy if your trying to track back when you had last run something.
To enable it just simply add export HISTTIMEFORMAT="%h/%d - %H:%M:%S " to your .bashrc file
echo 'export HISTTIMEFORMAT="%h/%d - %H:%M:%S "' >> ~/.bashrc

Then reload your .bashrc
source ~/.bashrc

Now when you run history you should get a output similar to the one [...]

Continue reading...

8. August 2009

0 Comments

How to flush your dns cache

Windows

Firstly open a cmd box by going to start > run > cmd
Then flush your dns by running the following:
ipconfig /flushdns

OSX

Open your terminal
Run the following command:
dscacheutil -flushcache

Linux

Just run the following:
/etc/init.d/nscd restart

Continue reading...

8. August 2009

0 Comments

How to update your twitter status using curl

Have you ever wanted to update your twitter status from linux command line? Using curl you can do this.
curl -u user:password -d status=”Your status message” http://twitter.com/statuses/update.xml
Just simply replace user with your username password with your password and Your status message with the content of your latest tweet

Continue reading...

5. August 2009

24 Comments

Windows 7 Move the Users and Program Files Directories To A Different Partition

After installing windows 7 you will be greeted with a user creation prompt press shift+f10 and you should get a cmd window up like in the image below
Copy the Users Profiles, Program Files And ProgramData Folders onto the Partition you want to use
robocopy "C:\Users" "D:\Users" /E /COPYALL /XJ
robocopy "C:\Program Files" "D:\Program Files" /E /COPYALL /XJ
robocopy [...]

Continue reading...
Page 2 of 12«12345»10...Last »