Forfatterarkiv: Brian Lund Klint

Bookmarklets

This only works in IE (sigh). I’m working on a mozilla compatible version… make a .html file with this content and add the bookmarklets to your bookmarks: <a href=”javascript:Q=document.selection.createRange().text;if(!Q){void(Q=prompt(‘Find funktion:’,”))};if(Q)location.href=’http://dk2.php.net/search.php?lang=en&show=quickref&pattern=’+escape(Q)”>Find PHP funktion</a> <br /> <a href=”javascript:Q=document.selection.createRange().text;if(!Q){void(Q=prompt(‘Søg efter:’,”))};if(Q)location.href=’http://base.fujang.dk/cgi-bin/index.pl?action=query&query=’+escape(Q)”>Søg på Fujang knowledge … Læs resten

Udgivet i Knowledge Base | Skriv en kommentar

NTFS i FreeBSD

Add the following to your kernel: options NTFS Add this to /etc/fstab (ofcourse adjust for your system) /dev/ad3s1 /mnt/boot ntfs ro 0 0 /dev/ad3s2 /mnt/data ntfs ro 0 0 Mount with: mount /mnt/data

Udgivet i Knowledge Base | Skriv en kommentar

Naming vars(and other shit) with camel notification

VeryLongPassword for Very long password are called camel notification and camel notation.

Udgivet i Knowledge Base | Skriv en kommentar

Linking pre 3.2 Unreal IRCD Servers

This describes how to link pre 3.2 Unrealircd server 3.2+ are using a differet config file format. C tells the server to try to connect to the server with adresse 10.2.1.10 with name hub.geeknet.dk on port 6667 in connection class … Læs resten

Udgivet i Knowledge Base | Skriv en kommentar

No color when programming ncurses on linux when connected via putty.

When you login via putty then your TERM is set to ‘xterm’. You will not be able to see colors with ncurses. Set TERM=’linux’ and you can now see the colors. cc

Udgivet i Knowledge Base | Skriv en kommentar

SQL backup and restore

dump the database with mysqldump: mysqldump -A -a -p > [FILE] store it, move it to the new server or do whatever is needed… insert the table by starting the mysql client: mysql -p and run the file with the … Læs resten

Udgivet i Knowledge Base, SQL | Skriv en kommentar

Compile freebsd kernel

cd /usr/src/sys/<arch>/conf/ cp GENERIC HOSTNAME vi HOSTNAME # Edit file and add wanted options (remove unwanted) cd /usr/src make buildkernel KERNCONF=HOSTNAME make installkernel KERNCONF=HOSTNAME

Udgivet i FreeBSD, Knowledge Base | Skriv en kommentar

DNS Querys

Simple A-Record query (what is the ip of this host?) host dr.dk Simple PTR-record query (What is the hostname for this ip) host -t ptr 129.142.20.35 Simple MX-record query (Who is handlin mail for this host) host -t ptr dr.dk … Læs resten

Udgivet i Knowledge Base | Skriv en kommentar

How to disable xscreensaver black screen

use: xset s off If you want to learn more, please refer to “man xset” // Vladimirr – Vladimirr.dk

Udgivet i Knowledge Base | Skriv en kommentar

Unix prompt in windows 2000

prompt %USERNAME%@%COMPUTERNAME%:$p$$

Udgivet i Knowledge Base, Windows | Skriv en kommentar