Sometimes one needs to debug a protocol problem between client and server but what if the connection is encrypted with SSL/TLS? You can use this trick to reveal the unencrypted traffic.
Continue reading Eavesdropping HTTPS with HaproxyCategory Archives: Nezaradené
My Go cheatsheet
print struct with field names:
fmt.Printf("%+v\n", myStruct)
foreach
for key := range myArray { }
check if key is in map
if val, ok := myMap["key"]; ok {
}
Example systemd unit config
/etc/systemd/system/my-service.service
[Unit] Description=My super service After=network.target [Service] ExecStart=/full/path #Type=forking #PIDFile= Restart=always RestartSec=2 User=root Group=root WorkingDirectory=/opt/service/ StandardOutput=syslog StandardError=syslog SyslogIdentifier=my-service Environment=PATH=/bin [Install] WantedBy=multi-user.target
systemctl daemon-reload systemctl enable my-service
MongoDB & HAProxy
If you want to put haproxy in front of mongodb cluster, haproxy needs to know the status of mongodb nodes. Continue reading MongoDB & HAProxy
My patch made it to the OSCam trunk :)
USB switch for 2 PC under Linux
Hi there!
As you can note from previous blogs, I love to buy strange devices directly from china :). This time I needed to connect one USB device to 2 computers (servers) so i fired up ebay and aliexpress and found this:
http://www.aliexpress.com/item/USB-2-0-Sharing-Switch-Hub-2-PC-to-1-Printer-Scanner-Newrok-Switcher-Wholesale/2037808594.html
The description doesn’t say anything about Linux support, but I thougt: “Come on… how complicated can it be?” Continue reading USB switch for 2 PC under Linux