Rabin.IO Blog

0

Setup NAT on Linux (iptables/nftables/firewalld)

The  Setup Having this set up where Machine A like to connect to the Internet via Machine B. Iptables Add the following lines to the iptables and make sure to enable forwarding on Machine...

ansible logo 0

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....

2

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...

0

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 to the...

0

Upgrading Fedora Installation on DigitalOcean

I found this method works for me, #Check if user is root if [[ $EUID -ne 0 ]]; then echo “Sudo privileges required!” exit 1; fi dnf update NEXT_VERSION=25 rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-${NEXT_VERSION}-$(uname -i) dnf...

ZSH Home / End Keys 0

ZSH Home / End Keys

Self note, Add this lines to ~/.zshrc bindkey ‘\e[1~’ beginning-of-line # Linux console bindkey ‘\e[H’ beginning-of-line # xterm bindkey ‘\eOH’ beginning-of-line # gnome-terminal bindkey ‘\e[2~’ overwrite-mode # Linux console, xterm, gnome-terminal bindkey ‘\e[3~’ delete-char...