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 FreeBSD, Old Base | Skriv en kommentar

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 base</a>
<br />

<a href="javascript:Q=document.selection.createRange().text;if(!Q){void(Q=prompt('Søg efter:',''))};if(Q)location.href='http://www.google.com/search?hl=da&q='+escape(Q)">Søg på google</a>
<br />

<a href="javascript:Q=document.selection.createRange().text;if(!Q){void(Q=prompt('Indtast URL til siden:',''))};if(Q)location.href='http://validator.w3.org/check?uri='+escape(Q)">W3c Valider HTML side</a>
<br />

<a href="javascript:Q=document.selection.createRange().text;if(!Q){void(Q=prompt('Indtast servernavn: f.eks. www.domæne.com',''))};if(Q)location.href='http://uptime.netcraft.com/up/graph?port=80&host='+escape(Q)">Slå webserver op i Netcraft</a>
<br />
Udgivet i HTML, Old Base, Programmering, Windows | Skriv en kommentar

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 base</a>
<br />

<a href="javascript:Q=document.selection.createRange().text;if(!Q){void(Q=prompt('Søg efter:',''))};if(Q)location.href='http://www.google.com/search?hl=da&q='+escape(Q)">Søg på google</a>
<br />

<a href="javascript:Q=document.selection.createRange().text;if(!Q){void(Q=prompt('Indtast URL til siden:',''))};if(Q)location.href='http://validator.w3.org/check?uri='+escape(Q)">W3c Valider HTML side</a>
<br />

<a href="javascript:Q=document.selection.createRange().text;if(!Q){void(Q=prompt('Indtast servernavn: f.eks. www.domæne.com',''))};if(Q)location.href='http://uptime.netcraft.com/up/graph?port=80&host='+escape(Q)">Slå webserver op i Netcraft</a>
<br />
Udgivet i Knowledge Base | Skriv en kommentar

TCP/IP and tcpdump Guide

Pocket Reference Guide:
http://base.fujang.dk/files/black/tcpip.pdf

Guide to IP Layer Network Administration with Linux:
http://base.fujang.dk/files/black/linux-ip.html

Etheral: 
an alternate packet sniffer

Download:
http://www.ethereal.com/

User guide:
http://www.ethereal.com/docs/user-guide/
Udgivet i Knowledge Base, Links, Linux, Networking, Old 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

Naming vars(and other shit) with camel notification

VeryLongPassword
for
Very long password
are called camel notification and camel notation.
Udgivet i Uncategorized | Skriv en kommentar

Remote CVS access

first check if the file ~/.cvspass exists and is readable
else create it with:

  touch ~/.cvspass

start the session by loggin in:

  cvs -d :pserser:user@server:$CVSROOT login

where:
pserver  is the connection method. pserver is the most used
user     is your username at the cvs server
server   is the DNS name or IP of the cvs server
$CVSROOT is the path on the server to the cvs

chdir to the location where you want the local copy, f.ex:

  cd ~/branch

update the local copy with the checkout command:

  cvs -d :pserser:user@server:$CVSROOT checkout branch

where:
branch   is the specific branch you're working on. Leave this out if you want a complete update of the repository

edit the files needed and send them to the cvs server with the commit command:

  cvs -d :pserser:user@server:$CVSROOT commit -m "comment" file

where:
comment  is a comment of your changes
file     is the file you want to update

need more info? look here:
http://www.loria.fr/~molli/cvs/doc/cvs_toc.html
Udgivet i FreeBSD, Knowledge Base, Linux, Windows, Workstation | 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 50(dont mind that one) using VeryAdvancedPassword as password.

N allows the server with adress 10.2.1.10 and name hub.geeknet.dk to connect to it.

C and N must always be in pair otherwise it wont work.

C:10.2.1.10:VeryAdvancedPassword:hub.geeknet.dk:6667:50
N:10.2.1.10:AnotherAdvancedPassw:hub.geeknet.dk::50

When we are connecting a client server to a hub we also have to tell our local server that hub.geeknet.dk er allowed to introduce us to new servers, this is done by specifying a H line , like list:

H:*::hub.geeknet..dk
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 50(dont mind that one) using VeryAdvancedPassword as password.

N allows the server with adress 10.2.1.10 and name hub.geeknet.dk to connect to it.

C and N must always be in pair otherwise it wont work.

C:10.2.1.10:VeryAdvancedPassword:hub.geeknet.dk:6667:50
N:10.2.1.10:AnotherAdvancedPassw:hub.geeknet.dk::50

When we are connecting a client server to a hub we also have to tell our local server that hub.geeknet.dk er allowed to introduce us to new servers, this is done by specifying a H line , like list:

H:*::hub.geeknet..dk
Udgivet i Uncategorized | Skriv en kommentar