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 / 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 / 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 / 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'
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:e2ce818940b0ccd3c194b985b05434f1
Created September 24, 2021 03:18
Script Backup Config Mikrotik
/system backup save name=Router-ANDA;
/tool e-mail send to="you@youremail.com" subject="Router-ANDA-Backup" body="Backup Router ANDA" file="Router-ANDA.backup" start-tls=yes;
@adinata-id
adinata-id / gist:fd98a9367dc0ceceb98b7b36ffbacfd6
Created September 24, 2021 03:24
Create Multiple Ping DI Windows
//untuk satu window gunakan script dibawah :
@echo off
ping 8.8.8.8
Echo ...................................
ping www.detik.com
Echo ...................................
ping www.yahoo.com
@adinata-id
adinata-id / gist:26162c656ef72cb7cf8b6927e18a06af
Created December 4, 2021 08:20
Return Sitemap XML File Using Laravel
Route::get('/sitemap.xml', function () {
$content = Storage::disk('digitalocean')->url('sitemap.xml');
return response(file_get_contents($content), 200, [
'Content-Type' => 'application/xml'
]);
});