Archive for 'Tips & tricks'
Hard Resetting a Thomson router if password is not obtainable: Telenor/NGT modems.
(Or upgrade your existing Speedtouch router to support bridging.)
Works for:
Thomson SpeedTouch 516i v6
Thomson SpeedTouch 546i v6
From a terminal window in Ubuntu (10.10):
:~$ sudo aptitude install bootp tftpd-hpa
:~$ sudo pico /etc/default/tftpd-hpa
Installing gitosis
Install gitosis on a server where you would like to backup/store documents.
On my debian 5.08 (lenny) server, gitosis may simply be installed via aptitude.
my-git-server:~$ sudo aptitude install gitosis
Now, standard “home-dir” for gitosis is /srv/gitosis. I would like to store my git-repositories on a raid location called /storage/. To change home-directory for gitosis, run this [...]
Remote control support (input device events) is now handled by the kernel (>=2.6.17). However, not all remote buttons may work out of the box. The driver that handles input device events, xf86-input-evdev, needs to be patched in order to remap higher keycodes than the xserver may handle. x server (Xorg/x11) is built with 255 keycodes [...]
Problem updating software depository with aptitude, a signature / public key changed.
W: GPG error: http://debian.samfundet.no etch Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B
:~$ sudo gpg –keyserver pgpkeys.mit.edu –recv-key 9AA38DCD55BE302B
:~$ sudo gpg -a –export 9AA38DCD55BE302B | sudo apt-key add -
Ubuntu 10.10 (Maverick)
OUTDATED: go to http://archive.pfb.no/2010/12/14/fully-working-remote-control/
I have been quite frustrated over the lack of being able to navigate in media center menus for a long time since the back/exit button has failed to do the desired response, namely navigate back / go up one level / go to parent dir / go to parent menu. [...]
SystemC is a set of C++ classes and macros which provide an event-driven simulation kernel in C++ (see also discrete event simulation). These facilities enable a designer to simulate concurrent processes, each described using plain C++ syntax. SystemC processes can communicate in a simulated real-time environment, using signals of all the datatypes offered by [...]
Okay,
The lazy days are over and I figured out it was time to create a more useful redirection of a hostname in my apache2 configuration files. The past few years I have been using this redirection method, but not been happy with it:
RedirectMatch ^/$ http://www.hostname.com
This is ok, but if the user is trying to reach [...]
Garden/Lawn Tractor batteries can be recharged by using a 12V automotive charger.
A typical 12V Tractor battery has a capacity of about 10Ah.
Be sure to set the charging time accordingly to the Ah output of the charger.
It is a good practice to charge the battery before storing the Tractor for the winter.
Store the battery in a [...]
I came across a nice little command to extract pages from a pdf file.
:~$ gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER \
-dFirstPage=3 -dLastPage=4 \
-sOutputFile=OUTFILE_p3-p4.pdf SOURCEFILE.pdf
Putting (splicing) multiple pdfs together:
:~$ gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER -sOutputFile=OUTFILE.pdf SOURCE_FILE_1.pdf SOURCE_FILE_2.pdf
Source: http://www.linuxjournal.com/content/tech-tip-extract-pages-pdf
I wanted to create a time-lapse video with a few CCTV cameras and a video capturing card.
To record images at 10 sec interval I used motion.
This analog video recording left me with lots a couple of mpg files that I wanted to crop in order to remove black lines on the sides. ffmpeg turned out [...]