Today I was working with a colleague and reasoned about some code over chat. We sent ﬁlename and line number frequently and I got the impression that this is another perfect candidate for automation.
general unix stuff
After reading an article on quadpoint.org I have been conﬁgured my IRSSI irc client with a highlight window as suggested by the author. Since I am running IRSSI in a screen/tmux environment, I only need to restart it when my (virtual) machine has been restarted, which is rarely the case. However, after restart, the highlight window is rarely in the right place.
Today I installed clang_complete using Pathogen (i. e., I installed it as a submodule of my dotﬁles git repository aka nesono-bin.
I tried to be smart and went into the submodule’s directory and invoked
That nicely built the vimball and installed itself - but whenever I tried to open a
cpp-ﬁle I got the following error:
A long while ago, I re-wrote the transfer stack for the shell in Python.
The transfer stack is the counterpart to the directory dtack, which is known by the commands
The corresponding tools of the transfer stack are
transfers, all of which can be found in my github repository.
Check out the recent update on my mail server documentation here. After years of using my mail server actively, I ﬁnally changed to an ISP that blocks port 25, so I had to add the two ports from the head line to the postﬁx ports. However, the solution did not turn out to be straight forward but involved iptables rules.
Just follow above link and read on.
This is actually just a copy of an article from ubuntu.com, but they tend to move things around and I like to have short search times. Apart from that, this works for FreeBSD and even for Windows (tested with Windows 7) as well. Sorry for this this blatant plagiarism, but it might be also to your advantage ;)
One more note: If you want to create a bootable USB stick to be used on a Mac/OS X, do not forget to format the stick with Disk Utility to
HFS+ with a
GUID partition table.
If you want to update nesono-bin, I would recommend you to use the following command inside the nesono-bin directory (especially if you made some editing):
git pull --rebase
If you encounter conﬂicts, you will need to solve them ﬁrst to continue the rebase, of course.
Yesterday, I needed to start spellchecking my latest paper and gave
:help spell a try in vim.
The following line made me almost completely happy:
:setlocal spell spelllang=en_us
After that, typos were highlighted with respect to the alleged error made and suggestions are queried using
z= for the word under the cursor or the selection in visual mode.
Alternatively, the word can be added to the list of accepted words by pressing
Today the command line audio utility sox gave me some head aches while I was working on some sample ﬁles for a listening test I prepare for my current research.
I just found my good old crontab template, which provides some nice formatting and documentation features. Just for our convenience, I paste it in here.