Skip to content

Instantly share code, notes, and snippets.

View adinata-id's full-sized avatar

Adinata adinata-id

View GitHub Profile
@adinata-id
adinata-id / hosts
Last active August 26, 2020 10:47
Host untuk Unblock Vimeo,Reddit,Imgur,Netflix edit file C:\Windows\System32\drivers\etc\hosts buka pakai text editor
# ---------------------------------------------------
# Vimeo
# ---------------------------------------------------
151.101.64.217 player.vimeo.com
151.101.129.194 vimeo-hp-videos.global.ssl.fastly.net
151.101.66.109 f.vimeocdn.com
151.101.64.217 vimeo.com
151.101.130.109 i.vimeocdn.com
@adinata-id
adinata-id / settings.json
Created July 25, 2020 09:47
Settings.Json VSCODE
{
"workbench.iconTheme": "material-icon-theme",
"explorer.confirmDragAndDrop": false,
"workbench.sideBar.location": "right",
"workbench.activityBar.visible" : false,
"workbench.editor.showTabs": false,
"workbench.statusBar.visible": false,
"editor.minimap.enabled": false,
"window.menuBarVisibility": "toggle",
}
@adinata-id
adinata-id / keybindings.json.txt
Last active August 26, 2020 10:49
keybindings.json DI VSCODE
// Place your key bindings in this file to override the defaults
[
/**
* Activity Bar
**/
{
"key": "ctrl+k ctrl+e",
"command": "workbench.view.explorer"
},
{
@adinata-id
adinata-id / gist:3da4d0925a21f601f1fff5af840acbc8
Created October 18, 2020 16:05
Atasi Error WSL2 Linux Ubuntu Error Failed to save file, EACCESS permision denied
solusinya dengan memberikan akses ke user yang sedang login di ubuntu
untuk melihat nama user kita bisa keti di terminal
echo $USER
maka akan tampil misal nama user yang tampil ADINATA
lalu kita beralih ke user root dengan perintah sudo su

MySQL Download URL

https://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.56-linux-glibc2.5-x86_64.tar.gz

Open the terminal and follow along:

  • Uninstall any existing version of MySQL
sudo rm /var/lib/mysql/ -R
id: 17636
name: novalio-id
environments:
production:
memory: 1024
cli-memory: 512
runtime: php-7.4
build:
- 'COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-dev'
- 'php artisan event:cache'
@adinata-id
adinata-id / gist:a0dcee4dc354f66f27fca43f386ccb66
Created March 9, 2021 03:16
Static DNS Mikrotik Untuk Sosmed FB, IG WA
/ip dns static
add address=157.240.208.35 name=fb.com ttl=5m
add address=157.240.208.35 name=facebook.com ttl=5m
add address=157.240.208.35 name=m.facebook.com ttl=5m
add address=157.240.208.16 name=api.facebook.com ttl=5m
add address=157.240.208.35 name=www.facebook.com ttl=5m
add address=157.240.208.36 name=z-m.facebook.com ttl=5m
add address=157.240.208.60 name=web.whatsapp.com ttl=5m
add address=157.240.208.60 name=www.whatsapp.com ttl=5m
add address=157.240.208.174 name=www.instagram.com ttl=5m
Open File -> App\Providers\AppServiceProvider
And change method boot
public function boot()
{
config(['app.locale' => 'id']);
Carbon::setLocale('id');
}
Open File and changes -> config/app.php
@adinata-id
adinata-id / gist:56d267e7ab224c996eb973d33b82b9c8
Last active August 5, 2023 09:34
Load Balancing Mikrotik PCC
#loadbalance 2 interface
/ ip address
add address=192.168.10.1/24 network=192.168.10.0 broadcast=192.168.10.255 interface=ether3
add address=192.168.9.9/24 network=192.168.9.0 broadcast=192.168.9.255 interface=ether1
add address=192.168.8.2/24 network=192.168.8.0 broadcast=192.168.8.255 interface=ether2
/ip firewall address-list
@adinata-id
adinata-id / gist:30c38b010df6c0ee3aa05b2d15e823d3
Created July 2, 2021 02:38
Auto Complete Text By Google And Facebook
Google
<input class="gLFyf gsfi" jsaction="paste:puy29d;" maxlength="2048" name="q" type="text" aria-autocomplete="both" aria-haspopup="false" autocapitalize="off" autocomplete="off" autocorrect="off" autofocus="" role="combobox" spellcheck="false" title="Pesquisar" value="" aria-label="Pesquisar" data-ved="0ahUKEwjw0svW6brxAhWdqJUCHXoYDRsQ39UDCAQ">
Facebook
<input type="search" dir="ltr" aria-autocomplete="list" aria-expanded="true" aria-label="Pesquisar no Facebook" role="combobox" placeholder="Pesquisar no Facebook" autocomplete="off" name="global_typeahead" spellcheck="false" aria-invalid="false" value="" class="oajrlxb2 rq0escxv f1sip0of hidtqoto e70eycc3 lzcic4wl hzawbc8m ijkhr0an aaoq3grb sgqwj88q b3i9ofy5 oo9gr5id b1f16np4 hdh3q7d8 dwo3fsh8 qu0x051f esr5mh6w e9989ue4 r7d6kgcz br7hx15l h2jyy9rg n3ddgdk9 owxd89k7 ihxqhq3m jq4qci2q k4urcfbm iu8raji3 qypqp5cg l60d2q6s hv4rvrfc hwnh5xvq ez2duhqw aj8hi1zk r4fl40cc kd8v7px7 m07ooulj mzan44vs" aria-controls="jsc_c_3n">