A tiny Segmentation fault study example (Page Fault).
This tiny code will produce a SIGSEGV (Segmentation fault) after compiling and executing
Create file example.c and fill it with this code: [Read more…]
A tiny Segmentation fault study example (Page Fault).
This tiny code will produce a SIGSEGV (Segmentation fault) after compiling and executing
Create file example.c and fill it with this code: [Read more…]
I hate CDs and DVDs, we are living in digital world and one gigabyte cost at the time about 0,03€ cents. I try to copy everything on my flash drives and HDDs. This post will show you how you can throw away your windows seven CD/DVD.
Insert a 8 or 16GB usb flash drive in your USB port. Careful! this [Read more…]
The simplest way to remove files older than $NUMBER of days..
Dry run (files will be NOT deleted, you will see a list with files older than 100 days)
1 | find -mtime +100 | less |
find -mtime +100 | less
Another dry run, see what would be delete:
1 2 3 | find -mtime +600 | xargs echo rm rm /var/log/squid3/access.log.0 rm /var/log/squid3/access.log.2 |
find -mtime +600 | xargs echo rm rm /var/log/squid3/access.log.0 rm /var/log/squid3/access.log.2
Finally if you decided to remove the files – the final command to delete them:
1 | find -mtime +600 | xargs rm |
find -mtime +600 | xargs rm
Long Long time ago I wrote how I migrated from Xen to OpenVZ. This post will show you how to manage your VE memory.
First you set the veid=yournumberofve and the rest is copy paste ; Look at the examples:
[Read more…]
The original Plugin was written by Chris Bair, after some tunings it worked fine for me.
I made some useful modifications to this Plugin:
– Visualization of the number of Drafts
– Set table prefix (I hate hardcodet things)
And now how to use it, first you need to create a configuration file for the plugin(replace the needed credentials) [Read more…]