sudo apt-get install python-pip python-dev -y
sudo apt-get install python3
pip install virtualenv
virtualenv -p python3 py3env
source py3env/bin/activate
pip install --upgrade virtualenv
sudo yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm -y
sudo yum install postgresql96 -y
sudo yum install postgresql96-server -y
sudo /usr/pgsql-9.6/bin/postgresql96-setup initdb
sudo systemctl enable postgresql-9.6
sudo systemctl start postgresql-9.6
# Open /boot/grub/grub.cfg
sudo vim /boot/grub/grub.cfg
# Add below lines in /boot/grub/grub.cfg file after "### END /etc/grub.d/40_custom ###" line
menuentry "Ubuntu 18.04.1 LTS ISO" {
set isofile="/ubuntu-18.04.1-desktop-amd64.iso"
loopback loop (hd0,2)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.lz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
print str(filter(str.isdigit, str(datetime.datetime.now()))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" for HTML | |
autocmd FileType html setlocal shiftwidth=2 tabstop=2 | |
" enable syntax highlighting | |
syntax enable | |
filetype on | |
filetype plugin on | |
filetype indent on | |
" set color scheme | |
" colorscheme elflord |