Dev

Here I collect all my stuff related to software development

Code

Knowledge

Here I collect some knowlegde about various technologies:

Git

Articles about Git on this site:

  • Git Advanced Tips - Some of my personal tricks I use and others I have stumbled upon.
  • Git Quickstart - Die Supereinfachanleitung für Git mit ca. 10 Kommandos.

I contribute(d) to Git in various corners:

Tools

Mutt

Mark all new messages as read

T Tag with pattern
~N Pattern for New Flag
;N Apply command ‘N’ to all tagged messages

Note: If you are using the threaded view you have to expand all threads with ESC-V first. Otherwise not all messages will be marked.

A list of practical pattern:

Pattern Description
~N New messages
~F Flagged messages
~U Unread messages

Compiler

gcc: Output all default compiler defines

echo | gcc -dM -E -

Linux

Test modification of users groups without logging out / restarting your X-session:

su - $USER

Vim

Here the (in my opinion) most important commands from the top of my head:

more useful commands:

C-X C-L Line complete
C-R C-W Pull cword onto search/command line
C-R C-A Pull CWORD onto search/command line
:e ++enc=utf8 Reload current file with utf8 encoding

Vim Bootstrap

A quick way to configure Vim for popular languages/technologies provides vim-bootstrap.

Quick Vimperator (Vim extension for Firefox) Intro

For existing Vim users the original Vimperator introduction is quite lengthy. Here a very quick Vimperator introduction which gets you going with the most important stuff when you are already proficient with vi(m).

Tags

If there is more than one result, it presents a list of matches, otherwise it jumps straight to the result. Ways to invoke this are:

  • :tj [tagname]
  • g CTRL-] with the cursor positioned on the tag.
  • CTRL-w g CTRL-] jumps to the tag in a new window.

From: http://www.8t8.us/vim/vim.html

Sources:

Bashrc

Ubuntu

Git enabled default shell:

PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w$(__git_ps1 " (%s)")\[\033[00m\]\$ '

Fonts

Nerdfonts is a collection of script to patch together iconic fonts (like fontawesome) into one that can be used in terminals. Here is their github Repository.