This program is simple post and get request implementation. Since Python works almost anywhere this is a handy code to have. ''' This is a comment, If you see this, CGI is not working ''' import sys import urllib2 import urllib '''Pickling is the process converting object into a byte stream, and unpickling is the inverse operation.''' try: import cPickle as … [Read more...] about Post and Get requests in Python
Take this file to any web server to have the consistent VIM interface. " Set 'nocompatible' to ward off unexpected things that your distro might " have made, as well as sanely reset options when re-sourcing .vimrc set nocompatible " Attempt to determine the type of a file based on its name and possibly its " contents. Use this to allow intelligent auto-indenting for each … [Read more...] about The VIM configuration file .vimrc
There are many ways to install Sublime text editor, but the official way from the official webiste https://www.sublimetext.com/docs/3/linux_repositories.html is what I wanted to set also in here, since I am using that. Step 1: Install the GPG key wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg |sudo apt-key add - Step 2: Ensure apt can work with https. sudo … [Read more...] about Official way to install Sublime text editor on Ubuntu
You may use these Easy Engine commands: ee site update example.co --letsencrypt=off ee site update example.co --letsencrypt=on ee site update example.co --letsencrypt=renew but only the last one is actually needed to renew the certificate. If you do not have letsencrypt from some reason you can intall it with apt-get install letsencrypt but always good to use the US … [Read more...] about Renew letsencrypt with easy engine, the proper way.
You can check the default locale this way cat /etc/default/locale But still the definite answer you can get this way locale Either add the locale to /root/.bashrc via export export LC_ALL="en_US.UTF-8" But make sure you have them first. locale-gen en_US.UTF-8 … [Read more...] about Setting the default locale in Ubuntu