Forfatterarkiv: mike

Business links

http://www.match-online.dk/ http://www.webhostingtalk.com/

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

Skift mellem labelprinter og a4 printer paa Thyfisk’s printerserver

Printer labels root@thyfisk:/etc/cups/ppd# html2ps http://ekimrebyc.dk | lpr Retrieving http://ekimrebyc.dk Retrieving http://ekimrebyc.dk/dragonmini.png Printer A4 root@thyfisk:/etc/cups/ppd# html2ps http://ekimrebyc.dk | lpr -P Laserjet-1320 Retrieving http://ekimrebyc.dk Retrieving http://ekimrebyc.dk/dragonmini.png

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

Simplistisk debian system backup and restore process

mount and unmount the floppy as needed ( it holds your system config ) Save System dpkg –get-selections * > /mnt/floppy/pkg.lst # You might want to save your important config files too tar zcvf /mnt/floppy/etc.tgz /etc Restore System build a … Læs resten

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

restricting users to scp access (debian)

apt-get install rssh – uncomment allowscp and allowsftp from /etc/rssh.conf to restrict a user to rssh add /usr/bin/rssh as its shell Add shell to /etc/shells (or dont if you want to prohibit ftp logins)

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

vmware server serials

981K8-YAU6A-25413-4L3JE 9AHUT-Y2V6Z-2GM96-4J6KE 92MUX-Y2FFV-2GH1K-4TLCX 90HU9-Y2F6V-2G4FN-4AH2J 905HW-Y0Z6Z-2EJ1K-4L3HH 92NRT-Y8C4U-25N1Q-4JQA8 92JU8-Y2CDY-27H37-4J4JX 98HHT-Y8V6F-27H37-4J60J 980KR-Y2U6Y-2E09L-4L6JN 92JRX-YAUFA-27592-4V711

Udgivet i Uncategorized | Skriv en kommentar

Renaming PHP Functions

web02:~# apt-get install php4-apd In php.ini zend_extension=/usr/lib/php4/20020429/apd.so apd.dumpdir = NULL apd.statement_tracing = 0 And then in your code: rename_function(‘mysql_query’, ‘doquery’); function mysql_query($query) { doquery($query); echo “Der var en SQL-kommando her<br>\n”; }

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

How shit happends

In the beginning was the plan. And then came the assumptions. And the plan was without substance. And the assumptions were without form. And darkness was upon the face of the workers. And they spoke among themselves saying “It is … Læs resten

Udgivet i Humor | Skriv en kommentar

Great color sheme for vim

cd /usr/share/vim/vim63/colors wget http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/adaryn.vim and in vim :color adaryn

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

Installer vmware-server på debian

Installer en ren debian apt-get install x-window-system apt-get install libdb2 (only needed for mui) Download and install vmware-server, you can use only vmware server if you want to connect to it with vmware console and login with the unix root … Læs resten

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

Stuff for dynamic webpages

http://blogus.xilinus.com/pages/javawin

Udgivet i Links, Old Base | Skriv en kommentar