My diary

  • Contacts
  • Privacy
  • Sample Page
Illustration of a bird flying.
  • RegExp in Notepad++

    Here are some useful expressions: 1. match everything (including the character) before the character (e.g. hyphen): ^(.*?)\- 2. match everything (including the character) after the character (e.g. hyphen): \-(.*) 3. match everything (excluding the character) before the character (e.g. hyphen): .+?(?=\-) 4. match everything (excluding the character) after the character (e.g. hyphen): (?

    August 14, 2018
  • Routing email traffic on Mikrotik

    I have two internet providers connected to my router: 1st ISP 192.168.1.0/24; 2nd ISP 192.168.2.0/24. And I need to re-route all email traffic via 2nd ISP. So, let’s do that: /ip firewall mangle add chain=prerouting action=mark-routing new-routing-mark=”POP3 traffic” passthrough=no protocol=tcp dst-port=110 add chain=prerouting action=mark-routing new-routing-mark=”IMAP traffic” passthrough=no protocol=tcp dst-port=143 add chain=prerouting action=mark-routing new-routing-mark=”SMTP traffic” passthrough=no […]

    August 14, 2018
  • Uninstalling packages on Mac OS X

    Here is a small  HOWTO for  uninstalling Mac OS X Installer flat packages using native pkgutil. Getting a list of the installed packages, which contain the application name: $ pkgutil –pkgs | grep the-application-name If you found the package name you are looking for, let’s get info and the list of installed files for this package: $ pkgutil –pkg-info […]

    March 12, 2015

My diary

Proudly powered by WordPress