Kategoriarkiv: Knowledge Base

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

Probe version of Named deamons

Nameserver ns.tele.dk runs Bind 9.2.2, bind 8.2 og hoejere kan fake version output. root@chilibeans:~# dig @ns.tele.dk txt chaos version.bind. ; <<>> DiG 9.2.2rc1 <<>> @ns.tele.dk txt chaos version.bind. ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: … Læs resten

Udgivet i Domain Name System, Knowledge Base, 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

portupgrade in FreeBSD

if tou would like to upgrade all installed ports on your machine simply make a “portupgrade -a” if it make some trouble and says something about i don’t like this because i need some dependendies or something then put a … Læs resten

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

mIRC like perform in Xchat (multiple connect commands)

Instead of being limited to one connect command you can make af file with all the commands you need in. In “Connect Command” you can use “/load -e /path/to/file” with all the things needed. Make individual files for each network … Læs resten

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

Password recovery on Cisco-routers

Step-by-step… 1. Get connected with a rollover-cable from your serial-interface, to the routers console-interface. 2. Coldboot your router, and within the first 60 secs of the boot-sequence send the break signal. 3. You’re now in boot-mode, and now we can … Læs resten

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

PHP unicode decoder

function unicode_decode($txt) { $txt = preg_replace_callback( ‘/%u([[:alnum:]]{4})/’, create_function(‘$match’, ‘return “&#”.hexdec($match[1]).”;”;’), $txt ); $txt = preg_replace_callback( ‘/%([[:alnum:]]{2})/’, create_function(‘$match’, ‘return “&#”.hexdec($match[1]).”;”;’), $txt ); return ($txt); }  

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

Dead paths in FreeBSD

If your FreeBSD can’t find the path to a newly installed program from ports, just run “rehash”

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

cvsup FreeBSD to current

Install cvsup: cd /usr/ports/net/cvsup-without-gui && make install For Stable use tag=RELENG_4 Create file /usr/src/current-supfile with this inside: Use this cvsup file: # IMPORTANT: Change the next line to use one of the CVSup mirror sites *default host=cvsup.dk.FreeBSD.org *default base=/usr *default … Læs resten

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