sysctl -a | grep swap
$ sudo pkill -HUP -u _windowserver
| # ---------------------------------------------------------------------------------------------- | |
| # HULK - HTTP Unbearable Load King | |
| # | |
| # This tool is a DOS tool that is meant to put heavy load on HTTP servers in order to bring them | |
| # to their knees by exhausting the resource pool. It is meant for research purposes only, | |
| # and any malicious usage of this tool is prohibited. | |
| # | |
| # Author: Barry Shteiman, version 1.0 | |
| # Converted to Python 3 | |
| # ---------------------------------------------------------------------------------------------- |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
| import ( | |
| "crypto/md5" | |
| "encoding/hex" | |
| ) | |
| func GetMD5Hash(text string) string { | |
| hasher := md5.New() | |
| hasher.Write([]byte(text)) | |
| return hex.EncodeToString(hasher.Sum(nil)) | |
| } |