Mikrotik Script

mikrotik

Here is simple script which sends your IP address to your email, it will save you paying for a fix IP service from your ISP, unless you have a different case. :global ipadd; :global extinterface […]

Mikrotik with NetFlow on FreeBSD

A short how to adding NetFlow to Mikrotik using ntop and FreeBSD. FreeBSD is the best operating system you can go for your server. While Mikrotik is a budget router it is capable of many. […]

Some Mikrotik Masquerading

mikrotik

There are plenty of good tutorials how to create a L2TP/IPsec VPN or OpenVPN on Mikrotik, though not many mention what rule you need in your firewall if you wan to be able to access […]

OS-X – change username/home directory – El Capitan

As you may know when you change your username in OS-X you must change the home directory as well to match the new username (https://support.apple.com/en-us/HT201548). Now in El Capitan when you change the home directory […]

Incorrect argument handling in sendmsg(2)

To all the FreeBSD users out there, don’t forget to update your systems. The sendmsg(2) system call allows to send data to a socket. The data may be accompanied by optional ancillary data. For details please […]

while loop in csh

This made my day, while loop in one line -one liner- under csh printf “while ( 1 ) \n df -m \n echo ‘remaining space’ \n  sleep 60 \n end” | csh -f  Of course, you could […]

Bandwidth limiting on OS-X [Yosemite, El Capitan or *BSD]

Since Yosemite OS-X is not using ipfw but pf. So if you’re using those ipfw commands to limit your bandwidth, well… they won’t work. You’ll have to learn and implement some pf rules. The usage of […]

RegexOne

If you have dealt with regular expression then you know that it takes a while to get a good grasp on it. If you are just learning it here is an amazing tutorial: http://regexone.com. Enjoy 😉