Månedsarkiv: juni 2005

proftpd bandwith limit

<Directory /> AllowOverwrite on TransferRate APPE,RETR,STOR,STOU 25:1024 user !black </Directory> limits to 25KB/s with a 1024KB fullspeed limit, excludes the user black  

Udgivet i Apache, Knowledge Base, Old Base | Skriv en kommentar

PHP XML Parsing

<pre> <?php $file = “artikel.xml”; $depth = array(); function startElement($parser, $name, $attrs) { global $depth; for ($i = 0; $i < $depth[$parser]; $i++) { echo ” “; } echo “$name “; if (sizeof($attrs)) { while (list($k,$v) = each($attrs)) { // … Læs resten

Udgivet i Knowledge Base, Old Base, Programmering | Skriv en kommentar

How to use Squid to stop computer worms and vira

[My credit goes to this clever hacker: http://www.aub.dk/~misak/index.php/archives/2004/10/27/35/] I am a one of the administrators for a network with about 900 residential users. We have no control over what people are running on their computer and therefor we get our … Læs resten

Udgivet i Knowledge Base, Linux, Networking, Old Base | Skriv en kommentar

Mike keder sig og Riis tåger

#include <stdio.h> int findlastword(char *string,char *buffer) { int i,c; c=0; for (i=0; i<=strlen(string); i++) { buffer[c]=string[i]; c++; if (string[i]==’ ‘) {c=0;} } } int main(void) { char buffer[255],input[255]; int inputsize; inputsize=0; while ((input[inputsize] = getchar() ) != EOF) { if … Læs resten

Udgivet i Knowledge Base, Old Base | Skriv en kommentar

Windows LIVE CD’s

http://www.nu2.nu/pebuilder/ What is BartPE and PE Builder? Bart’s PE Builder helps you build a “BartPE” (Bart Preinstalled Environment) bootable Windows CD-Rom or DVD from the original Windows XP or Windows Server 2003 installation/setup CD, very suitable for PC maintenance tasks. … Læs resten

Udgivet i Knowledge Base, Old Base, Windows | Skriv en kommentar

Sladrekort Manual

http://www.soyogroup.com/dl/manuals/peripherals/techaid_manual_v10.pdf

Udgivet i Knowledge Base, Links, Old Base | Skriv en kommentar

C Pointer Crash Course

#include <stdio.h> int main(void) { int buffer; // An integer are declare int *pointer; // A pointer to an integer are declared buffer=512; // The buffer are set to 512 pointer=&buffer; // Pointer gets assigned the _adress_ that buffer points … Læs resten

Udgivet i Knowledge Base, Old Base, Programmering | Skriv en kommentar

High Availablitiy Clusters in Linux

Forskellinge links jeg har fundet på min jagt om emnet: LinuxHA , Failover, heartbeat o.l. snask: http://linux-ha.org/download/GettingStarted.html Network Block Device + Raid http://www2.linuxjournal.com/article/3778 Distributed Remote Block Device http://www.drbd.org/

Udgivet i Knowledge Base, Linux, Networking, Old Base | Skriv en kommentar

Pastasalat alá Mike og Midnight

I går lavede Mikkel og jeg den bedste pastasalat, så her kommer lige opskriften 😉 Opskrift på “Verdens bedste pastasalat”, eller Pastasalat alá Mike og Midnight Til 25 sultne hanløver skal der bruges: Ingredienser: En masse pasta! 4-5 store gulerødder … Læs resten

Udgivet i Knowledge Base, Links, Old Base | Skriv en kommentar