pip install virtualenvwrapper
nano .bash_profile
#!/bin/bash | |
# Backup database postgres (SIAKAD AKPER Luwuk) | |
# Author Yusuf Ayuba ([email protected]) | |
# inisial variabel | |
tgl=$(date +'%H:%M:%S_%d-%m-%Y') | |
username=<username database> | |
dbname=<db name> | |
folderBackup=<folder temporary backup> | |
fileBackup="backup_"$tgl".sql.gz" |
# Service worker Yii Queue | |
# Artikel: https://dutainformasi.net/2019/05/22/implementasi-yii2-queue | |
# Guide: https://github.com/yiisoft/yii-queue/blob/master/docs/guide/worker.md | |
# Author Yusuf Ayuba | |
[Unit] | |
Description=Yii Queue Worker | |
After=network.target | |
# Enable the following two lines only apply if your queue backend is mysql | |
# replace this with the service that powers your backend |
# More info here: http://wiki.nginx.org/HttpProxyModule | |
# Source from Centos Web Panel | |
proxy_buffering off; | |
proxy_connect_timeout 59s; | |
proxy_send_timeout 600; | |
proxy_read_timeout 600; | |
proxy_buffer_size 64k; | |
proxy_buffers 16 32k; | |
proxy_busy_buffers_size 64k; |
#!/bin/bash | |
#Description: File library berisikan variabel-variabel dan function-function | |
#Author: Yusuf Ayuba | |
#user yang bisa menjalankan script ini | |
USER_ALLOW="root" | |
#inisial variabel-variabel (Silahkan sesuaikan isian email pengirim dan email tujuan) | |
FROM="email pengirim" | |
EMAIL="email tujuan" |
//optional, setting LC_CTYPE https://gist.github.com/virbo/bcdfc0e41794b18ba4c538071828dd8d
#!/bin/bash | |
# Backup Mysql DB, Wordpress (https://dutainformasi) | |
# Author Yusuf Ayuba ([email protected]) | |
#override endpoint aws amazone s3 with endpoint s3 kilatstorage | |
alias aws='aws --endpoint-url https://s3-id-jkt-1.kilatstorage.id' | |
# inisial variabel | |
tgl=$(date +'%H:%M:%S_%d-%m-%Y') | |
USER_DB="user_db" |
Edit file /etc/default/locale
nano /etc/default/locale
paste this
LC_CTYPE=en_US.UTF-8
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8