Sebastian Mogilowskis Blog

Just another blog about administration, linux and other stuff


Force https to http redirect except for WordPress /wp-admin directory

First move all requests that are not wp-admin requests from https to http. Than i want to exclude all of WordPress admin from the https to http redirect, to keep WordPress admin working over https, so this is the result: RewriteEngine OnRewriteBase / RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} ^/?(wp-admin/|wp-login\.php) RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] RewriteCond %{HTTPS} […]


Happy SysAdmin Day! 2015

July 31, 2015 – 16th Annual System Administrator Appreciation Day

System Administrator Appreciation Day – 2013

To all other system adminstrators “HAPPY SYSADMIN DAY !”

Happy Birthday!

This Blog today runs for 5 years. It now has about 125 entries and 380 comments. It get’s about 200 visits per day mostly on weekdays 🙂 The busiest day had 1100 visits. Thank’s a lot to all my followers 🙂

Racktables has problems with NDOUtils from Nagios

Small script reads nagios problems from ndo database and set has_problems flag in racktables: Works with plain Nagios and NDOUtils Setup or an Centreon installation. But you have to use the same name of a server in both system ! #!/usr/bin/perl use strict; use DBI; # NDO Database Settings my $ndoHost = ‘localhost’; my $ndoUser […]


New year new theme

Happy new year ! A new theme is online. It’s a modified version of black-with-orange. Now with a little bit more colors and more cats. I hope everything works for you. If not please let me know !

Convert PDF to Image

Using “convert” from “imagemagick” to convert a PDF to Image. Example: convert -geometry 1024×768 -density 200 -colorspace RGB input.pdf output.jpg Or use a other geometry, quality and no color: convert -geometry 2048×1536 -density 400 -colorspace gray input.pdf output.jpg Links: *

, , ,

Resize images (folder) with imagemagick (mogrify)

Before upload pictures to my online gallery i want to resize them to a smaller size. I don’t want to open all with a tool or something. I want to run a small script on my netbook without GUI. First install imagemagick: aptitude install imagemagick Now “cd” into the directory with your images and execute: […]

, , , ,

Firmware Update HP Procurve

1. Download firmware Download the latest firmware from 2. TFTP Server Extract the downloaded file and use a TFTP Server Example: mv 2800-Software-I1077/I_* /srv/tftp/ 3. Install new firmware Create a telnet connection to the switch: telnet SWITCH_IP and copy the firmware to the switch: copy tftp flash TFTP_SERVER_IP I_10_77.swi Restart the switch with […]

, ,

Factory reset HP Procurve

1. Serial console Connect your PC to the switch via serial console. Use “GtkTerm” for example on Ubuntu. 2. Reset the switch Push “Reset” AND “Clear” on the front of the switch. Release “Reset” Button. If the “Test” LED blinks release the “Clear” button and wait. 2. Save the new configuration After the switch rebooted […]

, ,