Restore trashed mails from dovecot maildir

To remove the “T”rashed flag from mails in a maildir, the files need to be renamed. I have also created a script which can be executed in the Maildir, searching for files and renaming the files:

AngularJS ng-options syntax

I keep forgetting the correct syntax for ng-options in angular dropdowns. The documentation can be found here: The syntax used in the documentation is a bit confusing: A concrete example for the syntax would look like this: I hope this helps myself and maybe someone else as well…

Sublime Text customization settings

Here’s a backup of my custom settings for my favorite text-editor Sublime. Default (Windows).sublime-keymap [ // Add 7 to toggle_comment command for German keyboard handling { “keys”: [“ctrl+shift+7”], “command”: “toggle_comment”, “args”: { “block”: true } }, ] Preferences.sublime-settings { “ignored_packages”: [ “Vintage”, ], “word_wrap”: “false” }

automysqlbackup – Backup databases on server

The easiest way that I have found for an advanced backup of all databases on a web hosting server was using the automysqlbackup tool. By default the tool creates backups with automatic daily, weekly and monthly rotation. The backup files are being compressed and will be placed into your configured backup folder. Email notifications and a… Continue reading automysqlbackup – Backup databases on server

Must-have software tools

I’m starting to build my list of software that is the first to install on a new system: Multi-platform: Sublime text – currently the best text editor around (multi selection editing, yay!) Synergy – using one mouse/keyboard for multiple systems/screens (Windows notebook next to Linux desktop) Git (git package, msysGit, Posh-Git, Github for Windows) Windows: Cmder – finally a really… Continue reading Must-have software tools

Categorized as Tools

Don’t use magic numbers

Quick note to start a new category on this blog: Good practices/Training Everyone who doesn’t know what a “Magic number” in coding is, please quickly read this: In some rare cases it might be allowed to use magic numbers (like 0/1 or in a circles calculation you may use 90/180/270/360 if it is clear… Continue reading Don’t use magic numbers

OpenWRT on TP-Link TL-WDR4900

My wifi connections at home have been really slow using a really old AVM Fritz!Box, so I decided to upgrade to a TL-WDR4900. (The only thing still missing is 802.11 ac but the cheapest router providing that would be the Asus RT-AC66U AC1750 for twice the price of the TL-WDR4900, so that wasn’t worth it for me.)… Continue reading OpenWRT on TP-Link TL-WDR4900