Articles
- Remotly generate windows event logs

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

No comments

- Set keyboard mapping via CLI

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

No comments

- MySQL manage users

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 [...]

No comments

- Site News

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.

No comments

- MySQL Backup/Restore database

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

No comments

- ALSA error

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 [...]

No comments

- PHP speed up

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 [...]

No comments

- Disable GNU Screen Flash

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 [...]

No comments