youtube-dl -i --datebefore=20170901 --dateafter=20170101 https://www.youtube.com/user/periyartv/videos
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
# 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 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
# 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 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 | |
# 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 DB user for JIRA
-bash-4.2$ createuser --interactive -P jirauser
Enter password for new role:
Enter it again:
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) y
Shall the new role be allowed to create more new roles? (y/n) n
-bash-4.2$
- Create new partition using fdisk
- Change partition type using
t
option and put8e
to LVM type infdisk
- Write the changes in disk using
w
option infdisk
- Reboot system to commit changes
- Create Physical Volume using
pvcreate /dev/sdaX
- Create Volume Group using
vgcreate vgname /dev/sdaX
- Create Logical Volume in Volume Group using
lvcreate -n datalv0 -L 30G centos-data
- 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
OlderNewer