apache2 – redirect from http to https with some source-ip-based exceptions

i was migrating a server from http to https. while header-based redirect worked for most of the clients, for some – i had to allow for a transition period where some configuration / code had to be adjusted. here’s the config that responds with 302 redir to most of the http requests, but for those …

Continue reading ‘apache2 – redirect from http to https with some source-ip-based exceptions’ »

changing source url of the svn repository replica

i have bunch of svn read-only replicas. they were created using: replication [ fetching of earlier not downloaded revisions ] is done via: to check from which url my replica repo fetches updates: to change it – run: that’s it – next execution of svnsync will fetch the data from the new origin url based …

Continue reading ‘changing source url of the svn repository replica’ »

“Verify your Kindle document” for pdfs self-mailed to my kindle

whenever i travel i like to use kindle for reading some articles that i’ve earlier collected. for collecting i use a simple PHP script with rich text editor that allows me to copy & paste content and then mail it to my kindle address. recently i’ve started getting requests from Amazon to approve each document …

Continue reading ‘“Verify your Kindle document” for pdfs self-mailed to my kindle’ »

xiaomi robot vaccuum disassembly

i have 1st gen xiaomi mi robot vacuum cleaner. it’s been serving very well for the past 3 years. this video was very helpful with disassembly when i had to replace the main sucking motor fan: https://www.youtube.com/watch?v=wdDSBgJ1kRM i had to replace a fan and bought https://www.aliexpress.com/item/4000804127893.html instead of https://www.aliexpress.com/item/4000259186760.html ; not an exact fit but …

Continue reading ‘xiaomi robot vaccuum disassembly’ »

supermicro server getting stuck on “loading initial ramdisk”

i had a quite puzzling moment today when a server refused to boot up after routine maintenance. order of events: datacenter technician has taken server down and added Mellanox 25Gbit network card server booted up cleanly with Debian Buster and aged kernel 4.19.0-6 i’ve rebooted the server again and changed cpu performance settings in bios …

Continue reading ‘supermicro server getting stuck on “loading initial ramdisk”’ »

supermicro IPMI – mounting iso image via samba

reminder for my self in case i need to do it again, relevant for X11DDW-NT and likely – other their platforms: log-in to the IPMI web interface, go to virtual media > CD-ROM image, provide: share host – ip or hostname of samba server. for instance: 10.1.2.3 paht to image – backlash share name backslash …

Continue reading ‘supermicro IPMI – mounting iso image via samba’ »

letting dbeaver talk with manticoresearch

here’s what i did to get dbeaver 7.3.2 + oracle’s JDBC mysql-connector-java-8.0.17.jar work with manticoresearch 3.5.4: /etc/manticoresearch/manticore.conf, under searchd: in dbeaver – new connection using oracle’s JDBC driver as above, under data editor – set ResultFetchSize to 0 to prevent errors like this: when i initially tried to get it working with JDBC driver from …

Continue reading ‘letting dbeaver talk with manticoresearch’ »

using dedicated server hetzner

4 months ago i’ve started renting a dedicated server at https://www.hetzner.com/ and – so far – i’m quite happy with the service. i’ve picked cheapest suitable hardware from their auctions, after a month of trouble-free usage i’ve switched to quarterly billing. then server has crashed few times with “shutting down cpus with nmi” kernel messages. …

Continue reading ‘using dedicated server hetzner’ »

detecting duplicate network packets from linux command line

while going down the rabbit hole of bed network performance at work we’ve narrowed the problem cause to duplicate packets showing up on a specific segment of leased metro Ethernet service. tshark filter helped us to see when duplicates occurred on monitored link we’ve got pair of computers – A and B connected at both …

Continue reading ‘detecting duplicate network packets from linux command line’ »

apache2 – reverse proxy with sticky sessions and fail-over

i needed to set up apache2 as a reverse proxy that will forward requests to few backends. yes – i know that there are better tools to do it – like haproxy or nginx – but in this case apache2 was preferred for the simplicity of the setup. requirements: sticky sessions – in normal conditions …

Continue reading ‘apache2 – reverse proxy with sticky sessions and fail-over’ »

upgrading firmware on Intel’s SATA SSD drives behind Dell’s h730p RAID

fetch Intel_SSD_Data_Center_Tool from here. the zip archive contained, among other, .deb for 64 bit OS – that worked for me under debian stretch. to see drives run: to upgrade the firmware where 0 corresponds to the Index of drive returned by the first command the same likely works for other LSI/Avago cards – no matter …

Continue reading ‘upgrading firmware on Intel’s SATA SSD drives behind Dell’s h730p RAID’ »