sudo -u postgres psql
-> postgres=#
CREATE DATABASE test_database;
CREATE USER test_user WITH password 'qwerty';
GRANT ALL privileges ON DATABASE test_database TO test_user;
import time | |
timestamp = time.strftime("%Y-%m-%d %H:%M:%S") | |
print timestamp |
PORT_NUMBER=1234 | |
lsof -i tcp:${PORT_NUMBER} | awk 'NR!=1 {print $2}' | xargs kill |
server { | |
listen 80; | |
server_name 202.90.159.201; | |
#charset koi8-r; | |
#access_log logs/host.access.log main; | |
# Load configuration files for the default server block. |
bit.ly/uppythondjango
lastname_day1_exer1.py
ps -e -o pid,vsz,comm= | sort -n -k 2 |
Movies Recommendation:
Music Recommendation: