Again i want to share a simple bash function for dealing with the
svn diff. I was tired to add the file i want to compare multiple times so i wrote a small wrapper function.
The syntax is the following.
netbazzlinesvndiff https://svn.mydomain.org/trunk https://svn.mydomain.org/branches/mybranch module/myModule/myFile.foo
Enjoy it and be aware that there is no fancy validation logic inside.
# Calles svn diff for two repositories.
# Call $repositoryUrlOne $repositoryUrlTwo $filePath
# @author stev leibelt
# @since 2013-01-30
function net_bazzline_svn_diff ()
if [ $# -eq 3 ]; then
svn diff "$1""/""$3" "$2""/""$3"
echo 'No valid arguments supplied'
Sourceode also available on github.com.
A small howto for the task "adding a printer in linux by using cups".
- Start the cups service (service cups start, rc.d start cups - this depends on your distro)
- Open "/etc/cups/cups.conf" and search for "SystemGroup" and note the group
- If needed, add your user to this group by using "usermod -a -G $groupname $username
- Open a browser and open the url "http://localhost:631/", there you are at the administration page for cups
The rest should be self explaining.
I stumbled over a domain name called "betterthangrep.com and thought "wow, bold statement". But i liked the testimonials as well as the featurelist so i played a round a bit and you really get the feeling ack is doing better then grep in the metter of "output what you search for".
I will go on with my investigation, lets see if i find something i can add to this entry.
Apanding to the simple editing post i would like to add this time some hints for moving arround
- ctrl+F - scroll forward one screen
- ctrl+B - scroll backward one screen
- ctrl+D - scroll forward half a screen
- ctrl+U - scroll backward half a screen
- H - move to the home/top line of the screen
- M - move to the middle of the screen
- L - move to the last line of the screen
- + - move to the first character of the next line
- - - move to the first character of the previous line
- ? - search backward
- N - step search backward
I am using the vi since a few years. A few months ago i realized that i am just using a bit of the mighty power of the vi. Thats why O`Reilly's Learning the vi editor was welcomed in my house .
I have just finised a small part of the book but found already some "new" stuff for me. Thats why this entry is a supplement to my vi knowledge. But maybe there is something for you out there too.
- :e! - returns you the last saved version of your file
- W - move forward from word by word without considering symbols and punctuation
- c2b - change two words backwards
- c$ - change to the end of the line
- cc - change the entire current line
- C - change characters from current cursor position to the end of the line
- s - substitute from current position
- S - same as cc
- R - puts you in "overwrite" mode
- ~ - change case of your letter (Upper- to Lowercase and other way)
- D - deletes from courrent position to the end of the line
- x - deletes current character
- X - deletes character before current position
- xp - delete current character ad put after curser
- y$ - yankes to the end of the line
- . - repeats last command
- O - opens blank line above curser
- J - joins two (or more) lines
- e - moves to the end of a word
Wow, after this list it is hard to believe that i am using the vi for years now, "we are absolute beginners" comes to my ears .
Open a shell and try the following command:
The output shows you the user, the console he is using, the datetime when he logged in and so on.
Some usefull links:
First of all, you have to install "sshfs".
After that you just have to type.
sshfs $user@$host:/path/to/dir /path/to/mount
If fuse throws an error of permission, you have to add your user to the group fuse by typing:
usermod -a -G fuse $user
After you re-logged-in you can see by typing "groups" in your shell that everything is done fin.
Do not want to logoff? Try
in your shell. This is a new login and so your new group is available now.
Just another hint, if you want to access symbolic links, try:
The man page will help you to understand what you are doing.
Now put everything as an alias in your bashrc (or something similar) and you are done .
alias mountMyShare="sshfs [email protected]:/path/to/dir /path/to/mount -o follow_symlinks";
alias umountMyShare="fusermount -u /path/to/mount";
Happy mounting and unmounting.
Searching for perfect tools seams to have a long tradition. Also switching from gui tools to cli tools back to gui and so one is a great game. This time i decided to try out some cli file managers.
Since we are working on the cli it is a massive benefit if the software supports vi keybindings.
At first i tried a recommended tool called ranger.
It feels very naturaly when you browse your dictionaries and it looks like the osx finder in console mode - maybe the finder "adopt" his design from a cli tool that i do not know so i do not know if the compare is correct, do not blame me for that .
It still feels a bit under development but it is no wasted time if you give him a try.
A short howto can be found here
Second file manager i tried is vifm. It is definitly a file manager for vi lovers .
Vifm provides, if wished, a two panel view like used by mc.
Since i am a vi (i know vi is the center of eVIl), i like working with vifm and with the option of having a two panel layout if feels like mc on (vi) dope . This tool definitely get a "try it out" mark, do it!
A short help can be found here
Wie erst jetzt bekannt wurde, ist der US-amerikanische Informatiker Dennis MacAllstair Ritchie am vergangenen Wochenende nach langer Krankheit in Murray Hill gestorben. Ritchie wurde 70 Jahre alt.
So scheinbar Jeder, der Informatik studiert oder gelernt hat, ist wenigst einmal mit Ritchie in Kontakt gekommen. Es ist schade das er gegangen ist, jedoch hofft man "nur", dass es ohne viele Schmerzen vonstatten ging. Thankts for all the fish .
C/C++-Programmierer sterben nicht, die werden nach void gecasted.