This is a note from learning Python’s
Most of emails nowadays consists of 3 parts: plain text content, HTML content and attachments. Python’s
smtplib library indeed saved us a lot of work.
Continue reading “Sending email with Python”
Recently when I did a
dnf update I saw broken package for sqlite on my Fedora 23. Then I attempt to re-install that by removing it.
rpm -e --nodeps sqlite
Then shit hit the fan.
Continue reading “Fix SQLite3 dependency issue for dnf”
When I was following this tutorial to setup GnuPG for mutt account profiles on my personal laptop, I hit
gpg-agent is not available in this session error when I was trying to decrypt my profile. Also, I have to type my password for every time when I try decryption.
This is annoying.
Continue reading “Enabling gpg-agent”
This is the follow-up article for “Merging Chef JSONs into 1 template“. We are now able to merge environments and role files into 1 master template to manage, how are we gonna extract an environment or a role out of that template.
Continue reading “Extract specific Chef environment from a master template”
Recently I am playing with Chef and I am having fun on some software with a little difference across different VMs. For example, on VM1:
On VM2 it is set to
ERROR, VM3 is set to
Continue reading “Merging Chef JSONs into 1 template”
Zsh under Ubuntu has a strange behaviour. When you have typed some commands and use up arrow key to look back, the cursor is always at the beginning of the line. This can be solved very easily.
Continue reading “Solve zsh cursor positioned at the beginning in zsh history lookup using arrow key for Ubuntu”
The php stack I am using for blogs and other hosted php websites is from Remi. I am on PHP version 5.6. The memcached plugin was enabled and I never checked its status. I only found out that the memcached is not enabled at all on my websites.
OK I figured this will be a simple task. It is. There are a few things that you need to be cautious about if you are using Remi as php base. The modules will not be loaded magically.
Continue reading “Enable Memcached on Remi based PHP install for WordPress”
When I was compiling my report, some files are missing:
! Package fontenc Error: Encoding file `eu1enc.def' not found.
An interesting installation of relatex packages is, you can install the missing files by providing this command:
Continue reading “Install missing LaTeX styles and definitions”
I created an EFI Live USB stick for the minimal ISO of Fedora 22. When I boot from it, grub said
error: file '/images/pxeboot/vmlinuz' not found
error: you need to load the kernel first
Continue reading “File Not Found error in USB Minimal Fedora setup”
I want to share with you my personal deployment scripts for some software I use frequently on servers. Currently there are only a few but eventually I will add them and perfect them with more content.
Continue reading “Personal Deployment Scripts”