Kategoriarkiv: Knowledge Base

Mysql backup

to dump all databases from remote host: mysqldump -aAcQl –add-drop-table –default-character-set=danish -h 10.0.181.249 -p > dump_tir.sql to import the dum to ‘remote’ host: mysql –default-character-set=danish -h 127.0.0.1 -p < dump_tir.sql change default charset if necessary to dump any specific db: … Læs resten

Udgivet i Knowledge Base, Mysql | 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

Running qmail under Gentoo Linux

Introduction This document gives instructions on how to install, configure, and run qmail on a system running Gentoo Linux. I originally wrote this after I could not find any qmail documentation specific to Gentoo, despite Gentoo offering packages (or “ebuilds”, … Læs resten

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

Running qmail under Gentoo Linux

Introduction This document gives instructions on how to install, configure, and run qmail on a system running Gentoo Linux. I originally wrote this after I could not find any qmail documentation specific to Gentoo, despite Gentoo offering packages (or “ebuilds”, … Læs resten

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

Vim encrypted files

# vim -x fil

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

How to make courier SSL certificates.

See http://milliwaysconsulting.net/support/systems/courier-ssl.html for original version. We use courier imap for imap and pop connectivity. After a standard install you have to use ‘mkimapdcert’ and ‘mkpop3dcert’ to generate the SSL certificates. This will cause clients (such as outlook) to present the … Læs resten

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