](https://gagor.pro/generic-cover.webp)
Use bastion host with Ansible
Learn how to configure Ansible to connect to hosts behind a bastion or jump host by customizing your ssh_config and ansible.cfg files.
](https://gagor.pro/generic-cover.webp)
Learn how to configure Ansible to connect to hosts behind a bastion or jump host by customizing your ssh_config and ansible.cfg files.
](https://gagor.pro/generic-cover.webp)
Lately I was searching for mobile notebook that I could use for remote work. I checked f ThinkPad series but they were huge bricks that have nothing in common with ‘mobile’ word. Then I saw ASUS Zenbook that I didn’t take into account before and it was exactly what I was searching for. Configuration of Skylake based notebook right now is not straightforward - there are still glitches and small bugs that are waiting to be fixed. I want to sum up what I’ve done after installation. I started with fresh Ubuntu 16.04 to get Debian based distro with possibly latest kernel and patches. ...
](https://gagor.pro/generic-cover.webp)
A quick tip for forcing IPv4 connections in Linux when IPv6 causes issues with package managers or other services.
](https://gagor.pro/generic-cover.webp)
A quick tip on how to list files with their octal permissions in bash using the stat command.
](https://gagor.pro/generic-cover.webp)
I was configuring WordPress with HyperDB external link plugin on PHP 7.0 but the only I get were constant 500 errors. As I found here external link PHP 7.0 is not supported by HyperDB for now - it’s rely on mysql php extension but in PHP 7.0 there is only mysqli extension. But few folks fixed it and it’s possible to use it. ...
](https://gagor.pro/generic-cover.webp)
I’m playing a lot with Docker lately. Building images, and then rebuilding, and then building again… It’s pretty boring. To automate this task a little I used inotify to build automatically after I changed any file. This trick could be used in many different situations. On Linux You will need inotify-tools package: Install inotify-tools on Linux sudo apt-get install -y inotify-tools Then run something like this: ...
](https://gagor.pro/generic-cover.webp)
I never tried it before but today I needed to install WordPress… From command line only. And there is a way to do this with wp-cli external link . WP-CLI installation First some requirements (as root): apt-get install php5-cli php5-mysql mysql-client curl And now installation of wp-cli (as root too): curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar chmod +x wp-cli.phar mv wp-cli.phar /usr/local/bin/wp Check if it’s working: ...
](https://gagor.pro/generic-cover.webp)
A quick guide to installing and using Docker Compose for automating multi-container Docker applications, including command examples and a sample configuration file.
](https://gagor.pro/generic-cover.webp)
I’ve played with Docker a little in it early days but didn’t stick for longer with it. It’s stable now so I wanted to check how it’s running now. I really can’t accept this method of installation: curl -fsSL https://get.docker.com/ | sh I think that world is going to it’s end when I see such scritps… I prefer to do this manually, knowing exactly what I have to do. Install prerequisites: ...
](https://gagor.pro/generic-cover.webp)
I started playing with Docker and here I will write some commands that where not so obvious at beginning 😃 List running containers: docker ps List also not running containers: docker ps -a Remove all containers (be careful with that): docker rm $(docker ps -a -q) Remove all images: docker rmi $(docker images -q) Docker won’t remove any old volumes used by containers, so after some time you may be interested in deleting them all: ...