Category: SysAdmin

ansible logo

Ansible and ControlMaster file naming

This is a short story of how Ansible and SSH (using the default ControlMaster path format) bite me. Lets take this network layout for example, where we have the same IP behind different machines....

Force WP-CLI output to be in English

I need to manage several insensate of WordPress installations, some of them are in Hebrew and one in Arabic, and when using wp-cli to manage the installation, e.g when running plugin update, wp-cli will...

How to Debug PHP Script From the CLI with PHP-XDEBUG

TL;DR Set your IDE to listen for incoming connections On the CLI set the session key,

Set XDEBUG configuration (can be set as environment variables or in-line parameters)

PS. set remote_host IP...

Speed up a MySQL restore from a dump file

This is a small snippet I found to speed up importing MySQL dumps, it’s is almost as fast as coping the DB files directly. Pre INSERT Put the commands at the top of the...

Dynamic DNS with CloudFlare

This is a simple hack I found for my self to have a “Dynamic DNS” for my home IP. I’m using CloudFlare as my name server to manage the zone file for my domain,...

Secure WordPress

Make a WordPress site work on both HTTP & HTTPS

Since Google started including sites which server under HTTPS in their ranking, and CloudFlare came out with their Universal SSL service, I was thinking to add a native SSL support to my WP blog....

כיצד להשתמש בסיסמאות בתוך סקריפטים

מאוד לא מומלץ להשתמש בסיסמאות ישירות בסקריפטים, אלא לשמור אותם בקובץ נפרד שאפשר להגן עליו על הרשאות שונות וכן הגדרות שונות לגבי אופן הגיבוי שלו. למשל בהפצות על בסיס Debain כשרוצים לכתוב\להשתמש בסקריפט שמבצע...