In this article I’m going to show you how to enable CloudFlare Flexible SSL for your WordPress website.
Cloudflare flexible SSL is the simplest method, to get your site running under SSL (HTTPS) fast and free. Using CloudFlare, you don’t need to purchase an SSL certificate and do any complicated server configuration, pretty much any host will work.
I will try to create very detailed guide on how to do this right, with proper redirects for non-SSL content and HSTS. Don’t be afraid of it’s length, the steps are fairly simple.
What you gonna need
- A WordPress site with admin access and ability to install plugins.
- Access to your domains DNS records. In the example I’m going to use a domain name registered at godaddy.com, but any other registrar should work, you just have to look for an option to change name servers.
- CloudFlare account. You can create one for free here: https://www.cloudflare.com/a/sign-up
I wanted to make a bit rough looking stools for our apartment. We refinished the old and quirky wooden floor, and after some searching decided this kind of stools would suit the place well. Continue reading
Yesterday I was trying to generate some PDFs using CakePHP and awesome CakePDF plugin. After some reading around and testing I concluded WkHtmlToPdf should be the best PDF engine to use.
So I installed it on my Debian system running
sudo apt-get install wkhtmltopdf
It installed successfully and I was able to execute the example code from wkhtmltopdf website Continue reading
If you need to merge couple (or more) different PDF documents into one, pdfresizer.com is a great online tool that can do it (and some other PDF manipulations) perfectly. I prefer this particular site because there are no watermarks and sane file size limits. Continue reading
Very simple script, for regular backup of a specific directory under Linux.
Create file backup.sh
SOURCE=/path/of/data #what should we backup
DESTINATION=/home/user/backups #where to store backups
DELETEAFTER=5 #how many days should we store the backups
mkdir -p $DESTINATION
tar -zcvf latest-backup.tgz $SOURCE
mv latest-backup.tgz $(date +%y%m%d%H)-backup.tgz
find . -name '*-backup.tgz' -mtime +$DELETEAFTER -delete
This is a simple example on how to submit HTML form data and display the response with PHP, without reloading the page (ajax request).
Here is a list of online tools for automated cleaning and beautifying of minified, messy or obfuscated code. Continue reading
Telegram is a great messaging app which supports many different platforms including Linux.
Unfurtunately, it does not run on Debian 7.x, due to unsupported libc6 version. If you are trying to run Telegram desktop client on older Debian Linux, you will likely experience similar error: Continue reading
Show total inode usage on Linux devices:
Easy way to find and list directories containing most of the file system inodes on Linux (only under the current working directory), running this command will take some time on large drives):
sudo find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n
Little one liner to find and replace all occurrences of the string in all files of certain type, recursively.
find . -name "*.TYPE_OF_FILE" -print | xargs sed -i 's/SEARCH_PHRASE/REPLACE_PHRASE/g'