Skip to content

Instantly share code, notes, and snippets.

View linuxkathirvel's full-sized avatar

Kathirvel Rajendran linuxkathirvel

View GitHub Profile
postgres=# CREATE DATABASE confluencedb WITH ENCODING 'UNICODE' LC_COLLATE 'en_US.utf8' LC_CTYPE 'en_US.utf8' TEMPLATE template0;

Enable swap in Linux

  1. Uncomment swap entry in /etc/fstab file, if comment.
  2. Run sudo mount -a; sudo swapon --all --verbose
  3. Check with free -h command.
# Python virtual environment
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
" 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
@linuxkathirvel
linuxkathirvel / edit-option-in-shutter.md
Last active July 18, 2021 11:38
To enable 'Edit' option Shutter on Ubuntu and Kubuntu 18.04 LTS

To enable 'Edit' option Shutter on Ubuntu and Kubuntu 18.04 LTS

  1. Download libgoocanvas-common, libgoocanvas3 and libgoo-canvas-perl packages from https://packages.ubuntu.com/artful/allpackages
wget -q http://mirrors.kernel.org/ubuntu/pool/universe/g/goocanvas/libgoocanvas-common_1.0.0-1_all.deb
wget -q http://mirrors.kernel.org/ubuntu/pool/universe/g/goocanvas/libgoocanvas3_1.0.0-1_amd64.deb
wget -q http://mirrors.kernel.org/ubuntu/pool/universe/libg/libgoo-canvas-perl/libgoo-canvas-perl_0.06-2ubuntu3_amd64.deb
sudo dpkg -i libgoocanvas-common_1.0.0-1_all.deb ; sudo apt-get -f install ; sudo dpkg -i libgoocanvas3_1.0.0-1_amd64.deb ; sudo apt-get -f install; sudo dpkg -i libgoo-canvas-perl_0.06-2ubuntu3_amd64.deb ; sudo apt-get -f install

Reference

@linuxkathirvel
linuxkathirvel / apache-lb.md
Last active January 12, 2021 22:52
Apache Load Balancer configuration for Atlassian JIRA and Confluence Data Center

Apache version and OS version

# Server version: Apache/2.4.6 (CentOS)
# Server built:   Oct 19 2017 20:39:16
# CentOS 7

Edit default.conf file

sudo vim /etc/httpd/conf.d/default.conf
sh-keygen -t rsa
#Press Enter Key to all questions
@linuxkathirvel
linuxkathirvel / python-ldap.md
Last active May 31, 2018 05:49
How do I install python-ldap in a virtualenv on Ubuntu?
sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
ffmpeg -i untitled.mp4 -s 176x144 -vcodec h263 -acodec aac -ac 1 -ar 8000 -r 25 -ab 32k -y OUTPUT.3gp