January, 2014 | [Dev|Web|Sys]Ops - Part 2
image_pdfimage_print
Resize disk and root partition on Linux LVM

Resize disk and root partition on Linux LVM

So, your mysql database grew overnight and there’s no more space on the device? Let’s assume the database is not corrupt and all we need to do is add more space to the server and expand the filesystem. My system is Debian 7, but this should work on RedHat based systems as well. Since this […]

Plus signs replaced with %252520 in query string

Plus signs replaced with %252520 in query string

We recently migrated one of our  websites at work to a new platform  and discovered that Nextopia was encoding plus (+) signs with “%252520”, which completely broke our rewrites. A simple fix was to include this rewrite: RewriteCond %{QUERY_STRING} (.*?)%(25)+20(.*?%(25)+20.*) RewriteRule ^ %{REQUEST_URI}?%1+%3 [N] RewriteCond %{QUERY_STRING} (.*?)%(25)+20(.*) RewriteRule ^ %{REQUEST_URI}?%1+%3 [L,R=301] The solution was provided […]

Getting started with puppet 3 and hiera

Getting started with puppet 3 and hiera

Install Puppet Master Semi-automated setup: https://forge.puppetlabs.com/stephenrjohnson/puppet Manual setup on Debian Install puppet master Install from package Use apache mod_passenger instead of default mongrel server for better puppetmaster performance. Restart Apache to restart puppet master. create separate git repos for puppet code and hiera data (should consider encrypting hiera data) configure environments on the master sudo apt-get install puppetlabs-release […]

image_pdfimage_print