•June 30, 2011 •
Leave a Comment
Finaly, after years of searching, i found an almost perfect solution.
I sometimes like to write lists in vim which have 2 columns, or sometimes you copy something from the web and want to have it in two columns.
First you have the text in one column, then you go to the first row you want to have in the second column. Then you enter visual blockmode with Ctrl-V, then you press $, as not all rows will be the same length. Then scroll down with j and select all items you want to have in the second column. Then yank with y, or delete with x, go to the first corner of the second row and paste with p.
Posted in linux, terminal, vim
•June 13, 2011 •
Leave a Comment
This lists visible and hidden ones.
ls -d */ .*/
Posted in linux, terminal
•June 10, 2011 •
Leave a Comment
rsync -e ssh -l somefile someuser@someip:
Posted in linux, terminal
•June 6, 2011 •
Leave a Comment
clear and ^L:
clears window and sets cursor at beginning of window.
reset or ⌘K on Mac OSX:
clears whole scrollback buffer
Posted in linux, terminal
•July 26, 2008 •
1 Comment
For a long time i had not sound in Firefox on Sites using Java (hobnox.com, runescape.com)
I tested the Javasound localy withe the JavaSoundDemo:
http://java.sun.com/products/java-media/sound/samples/JavaSoundDemo/
and i worked flawlessly.
I had to activate the OSS Sequencer API in the Kernel under:
Device Drivers/Sound/Advanced Linux Sound Architecture/
So even modern sites still use and need the OSS API, good to know :)
Posted in configuration, gentoo, java, linux
Tags: alsa, api, oss, sound
•July 20, 2008 •
2 Comments
Ever wondered how to find all those programms in portage you didn’t install, which have a specific useflag you were interested in ?
Well, eix is capable of this useful feature, just search like this:
eix -U someuseflag
Posted in configuration, gentoo, linux, terminal
Tags: eix, gentoo, useflag
•May 15, 2008 •
1 Comment
Its easier than i thought, just type:
diff -rq Dir1 Dir2
-r stands for rekursive
-q output only wether content differ
Posted in linux, terminal
Tags: compare, diff, directories
•May 14, 2008 •
1 Comment
Trying to mount my ext4 partiton with a 2.6.25 kernel i get this errormessage:
EXT4-fs: hda3: not marked OK to use with test code.
There is a new special flag you have to set to mount development code, so do:
[root]# debugfs -w /dev/hda3
debugfs 1.40.9 (27-Apr-2008)
debugfs: set_super_value s_flags 4
debugfs: quit
More info here.
Posted in linux
Tags: debugfs, ext4, mount
•December 26, 2007 •
2 Comments
If you want to sync your portage tree and your layman-overlays with one command, you can use
eix-sync
for that.
All you have to do is to create
/etc/eix-sync.conf
and place a
*
in it.
If you want to have a cronjob for that create for example a file named /etc/cron.weekly/eix.cron
and put something like
#!/bin/sh
/usr/bin/eix-sync
in it.
You can then delete all other cronjobs like emerge –sync and layman -S
As usual man eix has all the info you need.
Posted in configuration, gentoo, linux
•December 22, 2007 •
Leave a Comment
Put
LIBXCB_ALLOW_SLOPPY_LOCK=1
in your /etc/env.d/99local
Posted in java, linux
Recent Comments