Fork me on GitHub
Nation Pigeon

Viewing Yearly Archive 2011

Remotly generate windows event logs

18th December 11 | Windows

To remotly generate log output: (Note the file will be created on the remote machine) wevtutil epl /r:192.168.0.111 System C:\output.evtx You can then view it using event viewer. You can replace System with any of the event logs. e.g. Application, Security and Setup. Reference technet.microsoft.com

[ Read More → ]

Set keyboard mapping via CLI

18th December 11 | Linux

If you’ve just installed a fresh copy of *Unix or your using a Live distribution. I find this command much easier that looking though all the menus. setxkbmap gb As long as your running X.org, you’re in luck.

[ Read More → ]

MySQL manage users

18th December 11 | Linux

To view all users. SELECT user FROM mysql.user; To add a MySQL user which is able to connect only from the local machine, and have access only to a database called soup. # mysql -u root -p INSERT INTO mysql.user (Host,User,Password) VALUES(‘localhost’,'username’,PASSWORD(‘password’)); GRANT USAGE ON *.* to username@localhost IDENTIFIED BY ‘password’; FLUSH PRIVILEGES; GRANT ALL [...]

[ Read More → ]

Site News

18th December 11 | Systemless

I was going to change the appearance of the site. But after looking around I got bored and just updated the CSS to make pre tags nicer, see. Hi Not much better mind you, but at least it’s something. Oh and I created a new category, called Windows for all them windows do-hickys.

[ Read More → ]

MySQL Backup/Restore database

18th December 11 | Linux

The following command will back up your MySQL database to a file. mysqldump –add-drop-table -u user -p database > outputfile.sql The following will restore your database. mysql -u root -p database < outputfile.sql Or for a complete server back up and compression: mysqldump -u root -p --all-databases | gzip > output.sql.gz

[ Read More → ]

ALSA error

17th December 11 | Linux

If you get the following error then you need to add you user to the “audio” group. usermod -a -G audio osaka Once you have done this it should work, you may need to logout for it to take effect. root@river:/home/osaka# sudo -u nobody aplay r106taq3.wav ALSA lib confmisc.c:768:(parse_card) cannot find card ’0′ ALSA lib [...]

[ Read More → ]

PHP speed up

14th December 11 | Linux

I was able to double the speed of my site, with one simple PHP module. Alternative PHP Cache (APC) You can install it with any reasonable package manager. And with the default settings, you’ll be seeing improvements. As this nice little table will show. Stats Before After Time taken for tests [seconds] 259.386 126.654 Requests [...]

[ Read More → ]

Disable GNU Screen Flash

1st December 11 | Linux

The feature is called “visual bell”. Create or edit a ~/.screenrc file. vbell_msg “bell: window ~%” – Message for visual bell vbellwait 2 – Seconds to pause the screen for visual bell vbell off – Turns visual bell off The settings will take place as soon as you detach/reattach your session, providing it’s in the [...]

[ Read More → ]

VPS Update

24th November 11 | Systemless

I’ve just completed updating my VPS. (Thanks AllSimple) We are now running 512MB RAM, previous 256MB, and more hard drive space. We are now running lighttpd instead of apache, in an attempt to save memory. Though this may change once I get around to researching it some more. I also have a load of draft [...]

[ Read More → ]

Delete files based on last modified date

3rd October 11 | Linux

First create some files to test with: touch -d 01/01/2015 newfile touch -d 01/01/2009 oldfile Check it worked. using ls -l osaka@rika:~/test$ ls -l total 0 -rw-r–r– 1 osaka osaka 0 Jan 1 2015 newfile -rw-r–r– 1 osaka osaka 0 Jan 1 2009 oldfile And now delete all files which where last modified over one [...]

[ Read More → ]

Go Back in Time »

Copyright © 2007 ∞ Nation Pigeon - Designed by Peter Mayanrd
Theme Based on Black-Green - Fork it on GitHub