Forfatterarkiv: black

Using indent on C code

this slamcoded program works fine, but looks like shit: #include <unistd.h> int main (int argc, char **argv) { if (argc < 2) { printf (“Hva har du kog i fister?\n”); } else if (!strcmp (argv[1], “-GiB”)) { printf (“Gibibyte\n”); system … Læs resten

Udgivet i Knowledge Base, Old Base, Programmering | 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 … Læs resten

Udgivet i HTML, Old Base, Programmering, Windows | 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

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 … Læs resten

Udgivet i FreeBSD, Knowledge Base, Linux, Windows, Workstation | Skriv en kommentar

Linux IPv6 opsætning

Noterne er baseret på følgende netværks konfiguration: Public IPv4 IP: 80.199.18.5 Router IPv6 IP: 3ffe:80ee:603::1/128 Klient IPv6 IP: 3ffe:80ee:603::2 IPv4 IP på tunnel endpoint i .dk: 62.61.157.209 Klient opsætning: På klienterne skal følgende indskrives i et af startscriptene: modprobe ipv6 … Læs resten

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

.htaccess password protection

The htaccess file: AuthName “– Clasified area –” AuthType Basic AuthUserFile /www/htpasswd require user rip rap rup To initialize the passwd file: , file must be outside wwwroot root@chilibeans:/root# htpasswd -c /www/htpasswd mike New password: Re-type new password: Adding password … Læs resten

Udgivet i Apache, FreeBSD, Knowledge Base, Lamp, Linux, Old Base | Skriv en kommentar

check open ports on Linux with Netstat

If you for some reason need to find out, what program uses a specific port use this cmd: netstat -p -l –numeric-ports

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

Indstillinger i Mozilla Firebird

Here’s some tips: more can be found at http://texturizer.net/firebird/tips.html Smooth Scrolling Mozilla Firebird 0.6 has a Smooth Scrolling feature enabled by default. Later nightly builds have the feature disabled. To enable or disable this feature, add the following code to … Læs resten

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

Binary Prefix Definition

http://physics.nist.gov/cuu/Units/binary.html MegaBytes = 1000 * 1000 bytes MeBiBytes = 1024 * 1024 bytes

Udgivet i Knowledge Base, Old Base | Skriv en kommentar

Netgear MR314 telnet interface

ifaces: enif0 = lan enif1 = wan ifconfig: ip ifconfig route: ip route status ip route add [/] [] ip route addiface [/] [] ip route drop [/] dhcp: ip dhcp status ip dhcp client release ip dhcp client renew … Læs resten

Udgivet i Hardware hacking, Knowledge Base, Old Base | Skriv en kommentar