url(r'^$', views.IndexView.as_view(), name='index'),
mkdir temp
cd temp
git clone https://github.com/python/cpython.git
./configure --prefix=$HOME/bin/python
make
make install
# удалить симлинк python3 на python3.6
rm /home/$USERNAME/bin/python/bin/python3
export PATH=$PATH:/home/$USERNAME/bin/python/bin
python3.6 -V
> Python 3.6.0a3+
# справка по созданию виртуального окружения
python3.6 -m venv -h
sql = 'UPDATE base SET money=? WHERE nickname LIKE ?', (money, username)
cursor.execute(*sql)
# OR
sql = 'UPDATE base SET money=? WHERE nickname LIKE ?'
data = (money, username)
cursor.execute(sql, data)
Two-Pass
This method is generally used if you are targeting a specific output file size and output quality from frame to frame is of less importance. This is best explained with an example. Your video is 10 minutes (600 seconds) long and an output of 50 MB is desired. Since bitrate = file size / duration
#!/bin/bash
# отправить в бекграунд
source /path/to/sub_script.sh &
# отправить в бекграунд и отвязаться от текущей консоли
source /path/to/sub_script.sh &!
# man exec
exec /path/to/sub_script.sh
# man nohup
nohup /path/to/sub_script.sh
# cat << EOF | nohup sh
# cat << EOF | exec sh
# cat << EOF | sh &!
cat << EOF | sh &
# content of my sub_script.sh
echo `date` > /tmp/123
EOF
# замечание
# sh != bash
# если у тебя скрипт оттестирован на баше, то делай cat << EOF | nohup bash