bash

Blog entryGet Realtec RTL8191 Working on Linux debian Squeeze

Ok I've just installed Debian squeeze as sick of what's happening with ubuntu and unity and everything worked on my cheapo Advent Laptop execpt for wireless and hardware acceleration for the video card which I will look into at a later time.

So first need to find out what's happening with the card by finding out what it is with lcpci

snippetRestart Apache Automatically When Running Out of Virtual Memory

To restart apache when running out of virtual memory. First create a file
$ vi apache.sh
And fill with following code changing "YourEMail" this should work on any Debian based Linux system.
{syntaxhighlighter brush: bash, toolbar:false; title:"Restart Apache on Low Virtual Memory"}
#!/bin/bash
free -m | grep Swap | awk '{print $NF}' > /tmp/swap

Pages