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é
Adapter powered NX-300 camera
My wife owns a Samsung NX-300 camera and I wanted to use it for longer periods without needing to charge batteries round and round. Unfortunately, this camera can use its microUSB port only for charging – it doesn’t work without a battery and doesn’t charge when powered on. So I had to create a dummy battery.
Continue reading Adapter powered NX-300 cameraMy 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
