Skip to content

Instantly share code, notes, and snippets.

Avatar
💩
Gotta catch 'em all!

Miftah Afina miftahafina

💩
Gotta catch 'em all!
View GitHub Profile
@miftahafina
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 EC2.md

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, 10.174.75.99

latvija, pupper, elvisoctp, ilunimati-top-security, 10.10.10.1000000000
@miftahafina
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
https://www.digitalocean.com/docs/networking/private-networking/how-to/enable/#ubuntu-16-04
# initial setup (including firewall)
https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04
@miftahafina
miftahafina / EasternArabic.php
Last active Nov 14, 2019
#Helper - Convert from western to eastern arabic numeral
View EasternArabic.php
<?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
miftahafina / console.php
Last active May 14, 2020
Remove laravel controller with artisan command
View console.php
<?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
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
https://chrome.google.com/webstore/detail/gnome-shell-integration/gphhapmejobijbbhgpjhcjognlahblep/related
sudo apt install gnome-tweaks
Install dash to panel gnome extension
View React Native with Expo
Notes:
- Disable ufw
or
sudo ufw allow 19000/tcp
sudo ufw allow 19001/tcp
sudo ufw reload
ref
You can’t perform that action at this time.