Easy way to get the own IP address via command line under Linux
Easy way to get the own IP address (and just the IP address) via command line under Linux
Simple generic C# like events in Go
I needed a simple generic event system like the one in C# so here’s my solution
Change the strength of a normal map in a Unity shader
I needed a function where i can change the “strength” of a normal. It seems to be not as easy as multiplying the normal vektor with a factor.
Dynamic C# code compilation in memory
Simple example how to compile C# code within a C#-Programm
Convex Hull Generator For Unity
I had the need for a simple script that i can feed with the vertices from a existing mesh and generete a convex collider-mesh out of it for Unity. So i found this realy nice C# implementation 1 2 from Matt Campbell of a fast algorithm called QuickHull 3 and could it implement it very easy into my Unity project.
The result of this was a nice little script component you can attach to any game object and it will generate a mesh collider from it and add it to the gameobject or any other target gameobject.
Flustro
Flustro was born out of the need to share links or thoughts with friends and people I know on a private level, without having to write to them directly. Instead of bombarding each person at the next time i meet them, with content that I may have forgotten, it made more sense to let people decide for themselves when they wanted to receive and view that content.
Blazing Fast Block Many IPs With Fail2Ban and IP Sets
I am a big fan of the software Fail2Ban to ban hackers, script-kiddies and spambots from my server. If you don’t know the software, it works like this on a SSH server:
Fail2Ban monitors the log file of the SSH server, someone tries to log in and enters the wrong password. If Fail2Ban registers this, it evaluates as “Fail”. If someone creates e.g. 4 Fails in a row, an iptables rule is automatically created which blocks the access of the attacker’s IP to port 22 (SSH) for a certain time (temporary ban).