Månedsarkiv: oktober 2007

SOURCE: Generic PHP Autoloader

<? // COPYRIGHT (c) 2007 MC Solutions /** * Class to handle autoloading of Php class files */ Class AutoLoader { private $files; private $error; private $use_session_cache = “true”; /** * Tells the AutoLoader what to do when duplicate class … Læs resten

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

Cisco 1760 Config with CyberCity G.SHDSL Config

! To Apply this config, alter the following things: ! * CyberCity DSL Password ! * Telnet Password ! * Enable password ! * Access-list for telnet access. ! ! Then paste the commands into the console terminal, ! after … Læs resten

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

Creating trusted certificate for Java JSSE

First, take the unencrypted file certificate.pfx (used on the server), and chop it up into key and PEM encoded certificate: # openssl pkcs12 -in certificate.pfx -nodes -out certificate.key -nocerts # openssl pkcs12 -in certificate.pfx -nodes -out certificate.pem -nokeys Edit the … Læs resten

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

Configuring cisco catalyst / router

# Cisco configuration: # Indendted commands are short forms of normal commands # connect to the catalyst telnet 192.168.200.250 # or connect console cable and fire up hyperterminal bps: 9600 Databit: 8 Parity: none Stop Bit: 1 Flow control: none … Læs resten

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

Tooltip javascript function

tooltip.js: // position of the tooltip relative to the mouse in pixel // var offsetx = 12; var offsety = 8; function newelement(newid) { if(document.createElement) { var el = document.createElement(‘div’); el.id = newid; with(el.style) { display = ‘none’; position = … Læs resten

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

Simple tunneling across weird networks

web01:~# ssh zennet.dk -p 2222 -L 8080:192.168.1.252:80 -g -f -N root@zennet.dk’s password: web01:~# -f and -N make the process fork into background once loaded -L 8080:192.168.1.252:80 , means that local port 8080 should be tunneled to remote ip 192.168.1.252 port … Læs resten

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