Configuring GD and Freetype on WordPress Docker Image

This applies to official WordPress image but can be used with PHP image also. Create Dockerfile with following contents: FROM wordpress:latest # Install gd and freetype RUN apt-get -y update \ && apt-get -y install php5-gd freetype* \ && docker-php-ext-configure gd –with-freetype-dir=/usr/include/ –with-jpeg-dir=/usr/include/ \ && docker-php-ext-install -j$(nproc) gd Build your image docker build -t wordpress . Or you can use my image here.

Using WordPress and MySQL Docker Containers

I am just starting out on Docker and so far it’s been fun. Here I am going to show how I used Docker WordPress and MySQL containers. Before I delve into the details, I want to tell you that I am going to be working on Windows using SSH on Docker VM. If you want to know how to do that see this post here. So let’s start. Open SSH console. We are going to …

Read moreUsing WordPress and MySQL Docker Containers

Configuring Docker SSH on Bitvise on Windows

Docker on Windows has a lot to be desired. One thing I found uncomfortable to use is the Docker Shell on Windows. As of version 1.11.2, Docker uses MINGW64 extension to provide the UNIX Shell on Windows and even then it operates on the host, i.e. the Windows machine. If you know the current architecture, Docker runs on a Linux VM on top of Windows host. Therefore, what gets typed on Docker console is eventually …

Read moreConfiguring Docker SSH on Bitvise on Windows

PyCharm on Windows and Docker

I have recently started using Python and Docker. As a novice, I wanted to configure PyCharm on Windows to use my Docker Python image. Here are couple of things I had to do to successfully accomplish this: Your Project folder must be inside your Windows home folder, i.e. c:\users\user. If not, PyCharm will not be able to run your Python file Next, ensure that Docker is selected as a “Remote Python Interpreter”. Obviously as a …

Read morePyCharm on Windows and Docker

Creating SSH Key Based Authentication using Bitvise on CentOS

On your client machine (e.g. Laptop) Start Bitvise Client Key Manager, and click “Generate New” Select Algorithm “RSA” and Size 4096 (or any other) Set a Passphrase if required. Enter some comments, and click Generate. After Key is generated, select it, and click on “Export”. In the Export options, make sure you select “Export public key” and underneath it “OpenSSH format”. Click on Export and save the file somewhere. On the CentOS Server Upload the …

Read moreCreating SSH Key Based Authentication using Bitvise on CentOS

PyCharm & Git

Install Git for Windows first Using Git Bash, generate private and public keys Add public key to ~/.ssh/authorized_keys file on the remote server Create a local folder to store repository On server, create a new repository or initialize a repository from existing files cd some_dir git init git add . git commit In PyCharm, use ssh://vik@jarvis/~/code/jarvis/.git

Playing with wit.ai

wit.ai is a NLP (Natural Language Processing) api. Think of it as something that can be used to create next Cortana or Siri. Basically, the api allows you to send a text statement (or voice), and convert into meaningful form that your program can understand and respond to. I have started playing with it. First thing I am doing is install on Jarvis to be used with Python3. Installing is easy. First ensure following packages are installed: python3-dev, libcurl3-dev, …

Read morePlaying with wit.ai

Trick 2: Bulk download 4K wallpapers from alphacoders.com

A year ago I had posted about how you can bulk download 1080p wallpapers from Microsoft’s website. You can read the post here. That tricked worked very well and allowed me to download a total of 543 1080p wallpapers in one go. Now, I am using the same concept to download wallpapers from alphacoders.com albeit this time it’s 4K, baby! (3840×2160) Since the level of our pixel gorgeousness has increased we will step up our game …

Read moreTrick 2: Bulk download 4K wallpapers from alphacoders.com