Månedsarkiv: august 2003

2600dk.net

Lav BBS Kig på news shit(vil tro nyhedstekst skal laves om til blob) Lav forklaring til textz ratings Lav ‘opret bruger’ Lav post link Lav change profile

Udgivet i Knowledge Base, Old Base | Skriv en kommentar

ADSL sammenkobling

adsl samling: Står din gateway langt fra hvor telefonkablerne kommer ind i huset? Eller har du mange telefonstik i huset og gider ikke til at trække nye kabler ud til dem alle sammen? Så kan du trække et nyt kabel … Læs resten

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

How to get rid of big ugly spiders

Fetch some WD-40 and a lighter Turn on the lighter about 20 cm’s from the spider, and spray it with the wd40 for 2-3 seconds, now the spider will be gone and if not give it a couple of seconds. … Læs resten

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

C operator precedence

Table 4.11 lists all the C operators in order of decreasing precedence. Operators on the same line have the same precedence. Table 4.11. C operator precedence. Level Operators 1 () [] -> . 2 ! ~ ++ — * (indirection) … Læs resten

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

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

C eksempel med argv, argc og system()

#include <stdio.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(“df -h”); } else if (!strcmp(argv[1], “-GB”)) { printf(“Gigabyte\n”); system(“df -H”); } else { … Læs resten

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

Static Mapping NFS

Static Mapping for NFS is used for mapping a local user or group id to a remote user or remote id. So you dont have to sync. user database on both machines. Make the file /etc/nfs/maps.map and put this lines … Læs resten

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

ISO countrycodes

ad Andorra, Principality of ae United Arab Emirates af Afghanistan, Islamic State of ag Antigua and Barbuda ai Anguilla al Albania am Armenia an Netherlands Antilles ao Angola aq Antarctica ar Argentina arpa Old style Arpanet as American Samoa at … Læs resten

Udgivet i Knowledge Base, Old Base | Skriv en kommentar

Create colorized HTML files from your source code files with VIM

Open your source code file with VIM and type ‘:ru syntax/2html.vim’ in command mode. And poof, there we have another window with your HTML converted source code. Enjoy 😉 /secor

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

Create colorized HTML files from your source code files with VIM

Open your source code file with VIM and type ‘:ru syntax/2html.vim’ in command mode. And poof, there we have another window with your HTML converted source code. Enjoy 😉 /secor

Udgivet i Knowledge Base, Vim | Skriv en kommentar