Kategoriarkiv: Old Base

Hvorfor nej til EU

Nitrit i øko pølser http://nyhederne.tv2.dk/article.php?id=1924680&forside

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

Automatic DNS check of apache virtualhosts

#!/usr/bin/perl $space=65; $myip=”212.242.77.75″; # Domains with this ip gets “working” stamp open(fh, “/usr/local/apache2/conf/httpd.conf”); while ($dat=<fh>) { if ($dat=~ /servername/i) { $dat =~ s/ //g;chop($dat); if ( lc ( substr($dat,0,10)) eq “servername”) { $domain=substr($dat,10,length($dat)); print $domain; $res = `host -t a … Læs resten

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

Alternativ brug al grafikram. (Linux)

Et lækkert hack jeg fandt. Har bibeholdt den oprindelige hackers navn i teksten, for at give ham den credit jeg mener han fortjener. ——————- VRAM Storage Device – How to use the memory on GFX board in a different way… … Læs resten

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

Irssi timestamp

Two smart settings for irssi. To format the timestamp in the window /format timestamp {timestamp %%H:%%M:%%S } To format the timestamp in status-bar. /set timestamp_format %a-%H:%M:00 For more help see “man strftime”

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

Nyttige PHP funktioner

5 function eng2dan($ls,$string) 6 { 7 $da_mon_long=array(“Januar”,”Februar”,”Marts”,”April”,”Maj”,”Juni”,”Juli”,”August”,”September”,”Oktober”,”November”,”December”); 8 $da_mon_short=array(“Jan”,”Feb”,”Mar”,”Apr”,”Maj”,”Jun”,”Jul”,”Aug”,”Sep”,”Okt”,”Nov”,”Dec”); 9 10 $da_day_long=array(“Mandag”,”Tirsdag”,”Onsdag”,”Torsdag”,”Fredag”,”Lørdag”,”Søndag”); 11 $da_day_short=array(“Man”,”Tir”,”Ons”,”Tor”,”Fre”,”Lør”,”Søn”); 12 13 for ($i=0; $i<7; $i++) { $eng_days[]=date(“D”,(24*60*60)*(4+$i)); } 14 for ($i=0; $i<12; $i++) { $eng_month[]=date(“M”,(24*60*60*31)*($i)); } 15 16 if ($ls == “long”) 17 { return … Læs resten

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

Watch emerge progress

Introduction From Gentoo Forums: http://forums.gentoo.org/viewtopic.php?t=139562 It is possible to get approximate measures of how far emerge has compiled chosen package. The method used is based on file count (compiled/total). [edit] Making the Script Create file /usr/bin/emerge-progress and paste in it … Læs resten

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

Watch emerge progress

Introduction From Gentoo Forums: http://forums.gentoo.org/viewtopic.php?t=139562 It is possible to get approximate measures of how far emerge has compiled chosen package. The method used is based on file count (compiled/total). [edit] Making the Script Create file /usr/bin/emerge-progress and paste in it … Læs resten

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

Nummerserier i dk..!

http://base.fujang.dk/files/lmp/0000-1999.doc http://base.fujang.dk/files/lmp/2000-6999.doc http://base.fujang.dk/files/lmp/7000-9999.doc

Udgivet i Knowledge Base, Old Base | Skriv en kommentar

Hvor er dit tog??

http://lp.bane.dk/mapcafe/pass_tog.asp

Udgivet i Knowledge Base, Old Base | Skriv en kommentar

Hvor er dit tog??

http://lp.bane.dk/mapcafe/pass_tog.asp

Udgivet i Old Base | Skriv en kommentar