Skip to content

Instantly share code, notes, and snippets.

View virbo's full-sized 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 April 2, 2022 14:33
Bash Script Auto install PATCH Neo Feeder
#!/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 January 22, 2024 07:01
Install Linux Ubuntu 21.04, Nginx, MariaDB, Postgres, PHP 8.0

Update and Upgrade Package

apt -y update && apt -y upgrade
reboot

Install NGINX

Install dependency

@virbo
virbo / lempp.md
Last active August 16, 2023 19:55
Install Linux Centos 7, Nginx, MySQL, Postgres, PHP 8.0

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 September 8, 2020 12:11
Fix Error "WARNING! Your environment specifies an invalid locale. on Ubuntu 16.04"

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
Last active May 1, 2023 04:33
Bash Script Backup DB and File Website to Kilat Storage
#!/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 February 1, 2023 16:46
Create public.pem and private.pem for using with JWT

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 August 2, 2022 19:27
Install Virtualmin di Centos 7
@virbo
virbo / installasi.md
Last active February 19, 2020 03:45
All about Django - Python2 - Python3

SETUP VIRTUAL ENV

pip install virtualenvwrapper

SETUP ENV PATH

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