zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Opensolaris

November 2, 2010 by Igor Drobot Leave a Comment

Spen solaris packet management is like a linux apt. The command to update packeges:

1
pkg image-update

pkg image-update

Filed Under: Linux Tagged With: Opensolaris, PKG

FreeBSD install VIM

November 2, 2010 by Igor Drobot 3 Comments

Currently FreeBSD has only a old version of vi. I like vim as it is a highly configurable text editor and efficient one. And I prefer to work only with it.

How install it:

1
pkg_add -r -v vim-lite

pkg_add -r -v vim-lite

Example; install MC

1
pkg_add -r -v mc

pkg_add -r -v mc

Filed Under: Linux Tagged With: FreeDSB, pkg_add

TFTP Server

November 2, 2010 by Igor Drobot Leave a Comment

Install a simple tftp Server under Debian 5 codename Lenny:

1
aptitude install atftpd

aptitude install atftpd

Should the server be started by inetd?
On the question answer with NO, it should run as a daemon and not as inetd service:

Choose a base directory for your data.

Test tftp-server:

1
tftp 192.168.10.2

tftp 192.168.10.2

Filed Under: Linux, Networking Tagged With: tftp, tftp-server

Aptitude search

October 31, 2010 by Igor Drobot Leave a Comment

Very useful search hack for aptitude, to compare package versions. Normaly you see the versions if you open aptitude and it takes to much time.

1
aptitude search virtualbox -F '%p%V'

aptitude search virtualbox -F '%p%V'

Filed Under: Bash, Linux Tagged With: aptitude, aptitude search

Top funny source code comments

October 31, 2010 by Igor Drobot Leave a Comment

Some funny comments from different codes found around the net:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * OK; before you read the following code know what I am trying to do.
 * I needed to get the list of child catagories from the root node so that
 * the root node didn't appear in the selection box. But for some stupid
 * fucking reason the stupid fucking DBA wont let me access the items using
 * indices and I instead have to use their stupid fucking Iterator
 * implementation. So there.
 */
$firstList = $this->getRootNode()->getChildren();
foreach ($firstList as $node)
{
    $nodes = $node->getChildren();
    break;                // wtf?
}

/* * OK; before you read the following code know what I am trying to do. * I needed to get the list of child catagories from the root node so that * the root node didn't appear in the selection box. But for some stupid * fucking reason the stupid fucking DBA wont let me access the items using * indices and I instead have to use their stupid fucking Iterator * implementation. So there. */ $firstList = $this->getRootNode()->getChildren(); foreach ($firstList as $node) { $nodes = $node->getChildren(); break; // wtf? }

1
// if i ever see this again i'm going to start bringing guns to work

// if i ever see this again i'm going to start bringing guns to work

[Read more…]

Filed Under: Fun, Linux Tagged With: Funny code

  • « Previous Page
  • 1
  • …
  • 58
  • 59
  • 60
  • 61
  • 62
  • …
  • 74
  • Next Page »
Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok