Skip to content

Instantly share code, notes, and snippets.

Gotta catch 'em all!

Miftah Afina miftahafina

Gotta catch 'em all!
View GitHub Profile
miftahafina / after installing ubuntu.txt
Last active Jan 8, 2019
What you have to do after installing ubuntu
View after installing ubuntu.txt
# Install ubuntu
# Update repository
sudo apt-get update
Update apps
# sudo apt-get dist-upgrade
# Install Google Chrome
- Install
View LEMP Laravel 5.5 on

AWS EC2, Ubuntu 16.04, PHP 7.1, NGINX, Laravel 5.5, MariaDB 10.2, Composer

DISCLAIMER: I will avoid using generic keywords so that you're forced to name things yourself:

test, example, default, key,

latvija, pupper, elvisoctp, ilunimati-top-security,
miftahafina / konfigurasi-droplet.txt
Last active Nov 10, 2019
Install Droplet Ubuntu 16.04
View konfigurasi-droplet.txt
Setup droplet
# create droplet ubuntu 16.04
# setup private network
Edit via DO Dashboard
# initial setup (including firewall)
miftahafina / EasternArabic.php
Last active Nov 14, 2019
#Helper - Convert from western to eastern arabic numeral
View EasternArabic.php
namespace app\Helpers;
class EasternArabic
public static function convert($number, $process = false)
if ($process) {
$western = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '.'];
miftahafina / console.php
Last active May 14, 2020
Remove laravel controller with artisan command
View console.php
* Copy and paste the code below into your routes/console.php file.
* You can add more command such as 'remove:model', 'remove:middleware', etc if you want,
* just modify the $file_location variable.
Artisan::command('remove:controller {name : Name of the controller}', function ($name) {
miftahafina / things.txt
Last active Jul 18, 2020
Things you should do after installing Ubuntu 20.04
View things.txt
Install zsh
Install chrome
Install gnome shell integration for chrome
sudo apt install gnome-tweaks
Install dash to panel gnome extension
View React Native with Expo
- Disable ufw
sudo ufw allow 19000/tcp
sudo ufw allow 19001/tcp
sudo ufw reload
You can’t perform that action at this time.