youtube-dl -i --datebefore=20170901 --dateafter=20170101 https://www.youtube.com/user/periyartv/videos
This file contains 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
# Step 1 | |
# Install Redis server | |
sudo apt-get install redis-server | |
# Please confirm with 'redis-cli ping' command. If that display 'PONG', it is working fine. | |
# Step 2 | |
pip install celery redis | |
This file contains 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
# Enable auto completion in Debian bash | |
sudo apt-get install bash-completion | |
# Enable sudo group to existing user | |
sudo apt-get install sudo | |
adduser username sudo | |
Reference: https://wiki.debian.org/sudo |
This file contains 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 | |
# strptime() is used for converting a string to a datetime object. | |
# strftime() is used for converting datetime object to formatted string | |
date_string = "2017-08-10 17:32:25" | |
# To convert as Python DateTime object | |
python_date_time_object = datetime.datetime.strptime(date_string, "%Y-%m-%d %H:%M:%S") |
yum install https://download.postgresql.org/pub/repos/yum/9.3/redhat/rhel-7-x86_64/pgdg-redhat93-9.3-3.noarch.rpm
yum install postgresql93
yum install postgresql93-server
/usr/pgsql-9.3/bin/postgresql93-setup initdb
systemctl enable postgresql-9.3
systemctl start postgresql-9.3
- Create new partition using
fdisk /dev/sda
with neededswap
size - Change change partition type as LVM by partition code
8e
usingt
option infdisk
- Save changes using
w
option - Reboot CentOS7
- Create PV using
pvcreate /dev/sdaX
. 'X' will be newly created partition number. - Get VG name using
vgdisplay
- Extend VG size using
vgextend centos /dev/sdaX
- After extending VG size create Logical Volume using
lvcreate centos -n swap -L 4G
. Here, 'centos' in VG name and 'swap' is LV name
postgres=# CREATE DATABASE confluencedb WITH ENCODING 'UNICODE' LC_COLLATE 'en_US.utf8' LC_CTYPE 'en_US.utf8' TEMPLATE template0;
sudo apt-get -y install libsasl2-dev python-dev libldap2-dev libssl-dev
https://stackoverflow.com/questions/4768446/i-cant-install-python-ldap
OlderNewer