Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Yusuf Ayuba virbo

💭
I may be slow to respond.
View GitHub Profile
@virbo
virbo / install-patch-neofeeder.sh
Last active Apr 2, 2022
Bash Script Auto install PATCH Neo Feeder
View install-patch-neofeeder.sh
#!/bin/bash
# bash script auto install patch NeoFeeder (Apps)
# Author: Yusuf Ayuba
#-----------------------------------------------------------#
# Inisial variable
# IMAGE_ID = ID Image neofeeder
# EXT_PATCH = (7z, zip)
# FILE_PATCH = nama file patch (without ext)
# FOLDER_NEOFEEDER = folder tempat neofeeder berada
@virbo
virbo / lempp-ubuntu.md
Last active May 9, 2022
Install Linux Ubuntu 21.04, Nginx, MariaDB, Postgres, PHP 8.0
View lempp-ubuntu.md

Update and Upgrade Package

apt -y update && apt -y upgrade
reboot

Install NGINX

Install dependency

@virbo
virbo / lempp.md
Last active Jun 25, 2022
Install Linux Centos 7, Nginx, MySQL, Postgres, PHP 8.0
View lempp.md

Update LANG

Edit environtment vi /etc/environment add these lines...

LANG=en_US.utf-8
LC_ALL=en_US.utf-8
@virbo
virbo / locale.md
Created Sep 8, 2020
Fix Error "WARNING! Your environment specifies an invalid locale. on Ubuntu 16.04"
View locale.md

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
@virbo
virbo / backup.sh
Created Apr 28, 2020
Bash Script Backup DB and File Website to Kilat Storage
View backup.sh
#!/bin/bash
# Backup Mysql DB, Wordpress (https://dutainformasi)
# Author Yusuf Ayuba (hello@yusufayuba.net)
#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"
@virbo
virbo / public-private-pem.md
Last active Apr 14, 2021
Create public.pem and private.pem for using with JWT
View public-private-pem.md

Create Private Key

openssl genrsa -out private_key.pem 2048

Create Public key

openssl rsa -in private_key.pem -pubout -out public_key.pem
@virbo
virbo / centos-virtualmin.md
Last active Jan 11, 2021
Install Virtualmin di Centos 7
View centos-virtualmin.md
@virbo
virbo / installasi.md
Last active Feb 19, 2020
All about Django - Python2 - Python3
View installasi.md

SETUP VIRTUAL ENV

pip install virtualenvwrapper

SETUP ENV PATH

nano .bash_profile
@virbo
virbo / lib.inc
Last active Jul 23, 2019
Script buat check service-service yang non aktif, kirim notif via email dan telegram
View lib.inc
#!/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"