Forfatterarkiv: black

create a list of java source files from a recursive directory

I use this to produce a list of all java source files I need to build. (Need GnuWin32 grep and coreutils packages) dir *.java /s /B | grep -i java | cut -d\ -f7- > srcfiles.txt

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

Recovering a partition table or masterblock after weird crashes

If your boss accidently overwrites the first few megabytes of you harddrive, both the partition table, and the superblock, all is lost. Or is it? Boot the machine in any way you can, and if it’s not already there, get … Læs resten

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

APC UPS Deamon for Linux

how to install APC UPS CS500 on linux Install APCUPS Deamon: Debian: # apt-get install apcupsd Gentoo: emerge -av apcupsd Edit /etc/apcupsd/apcupsd.conf: 1: If running on USB, set UPSTYPE to usb (default is apcsmart) 2: If running on USB, set … Læs resten

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

ASN.1 to Java conversion

Extract the keys you need from details in JMibBrowser, only Name, Parent and Number. Use the following Find and replace in Visual Studio: Find: (.*Name:b*\::b*){:i}\n(.*Parent:b*\::b*){:i}\n(.*Number:b*\::b*){:z} Replace: public static final String \1 = \2 + “.\3”; more to come…

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

vlan for linux

recompile your kernel if needed, or load module ‘8021q’ install vconfig: emerge -av vconfig apt-get install vlan yum install vconfig After install and reboot, the dmesg should show this: 802.1Q VLAN Support v0.10 Ben Greear <greearb@candelatech.com> vlan Initialization complete. Now, … Læs resten

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

CIDR Notation

CIDR uses variable bit length host masks. To get the network address of an IP address, AND it with the hostmask. 00001010.00001010.00000001.00101100 10.10.1.44 & 11111111.11111111.11111111.11100000 255.255.255.224 (/27) 00001010.00001010.00000001.00100000 10.10.1.32 10100000.10100100.10010111.01001110 80.164.151.78 & 11111111.11111111.11111111.11110000 255.255.255.240 (/28) 10100000.10100100.10010111.01000000 80.164.151.64 Ranges: (Yes I’m … Læs resten

Udgivet i Knowledge Base, Networking | Skriv en kommentar

Danish Railway Station codes

These codes are used to specify stations along the danish railway network. They are also used by some of the major ISP’s, probably due to the historic connection between telegraph and railroads in the past. I found the list on … Læs resten

Udgivet i Knowledge Base | Skriv en kommentar

install mod_mono on gentoo

The mod_mono and some dependencies are masked: (I use ~amd64, use ~x86 if that applies to your system) # echo “www-apache/mod_mono ~amd64” >> /etc/portage/package.keywords # echo “dev-dotnet/xsp ~amd64” >> /etc/portage/package.keywords # echo “dev-lang/mono ~amd64” >> /etc/portage/package.keywords # echo “www-apache/mod_mono aspnet2” … Læs resten

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

Opsætning af pmacct på debian

pmacct og mysql installeres via apt. i mysql oprettes databasen pmacct og brugeren pmacct@localhost med koden pmacct: create database pmacct; grant all privileges on pmacct.* to pmacct@localhost identified by ‘pmacct’; følgende config bruges: (/etc/pmacct/pmacctd.conf) ! pmacctd configuration ! ! ! … Læs resten

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

Novell NetWare 6.5 administration

To switch console, use ctrl+esc. To set up TCP/IP load the following module from the System Console: inetcfg To set up a printer, load the following modules: broker ndpsm (These should start automatically) hpgate ndpsgw To reboot, type ‘reset server’ … Læs resten

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