This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
New Bandwith test Publik (Datacenter JKT) | |
IP Address : 103.161.184.37 | |
username : mid | |
password : midtest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/system backup save name=Router-ANDA; | |
/tool e-mail send to="[email protected]" subject="Router-ANDA-Backup" body="Backup Router ANDA" file="Router-ANDA.backup" start-tls=yes; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//untuk satu window gunakan script dibawah : | |
@echo off | |
ping 8.8.8.8 | |
Echo ................................... | |
ping www.detik.com | |
Echo ................................... | |
ping www.yahoo.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Route::get('/sitemap.xml', function () { | |
$content = Storage::disk('digitalocean')->url('sitemap.xml'); | |
return response(file_get_contents($content), 200, [ | |
'Content-Type' => 'application/xml' | |
]); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:local ip "192.168.208.1" | |
:local interface "MID VPN INTERFACE NAME" | |
:if ([/ping $ip count=5] = 0) do { | |
:log warning "MID TEKNOLOGI VPN is restarting" | |
/interface disable $interface | |
:delay 1 | |
/interface enable $interface | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static function form(Form $form): Form | |
{ | |
return $form | |
->schema([ | |
Forms\Components\Grid::make() | |
->schema([ | |
Forms\Components\Card::make() | |
->schema([ | |
Forms\Components\TextInput::make('name') | |
->required() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//tambahkan pada AppService Provider | |
Str::macro('readDuration', function (...$text) { | |
$totalWords = str_word_count(implode(" ", $text)); | |
$minutesToRead = round($totalWords / 200); | |
return (int)max(1, $minutesToRead); | |
}); | |
//implementasi pada laravel blade |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Cache::has('article:slug:' . $slug)) { | |
$blog = Cache::get('article:slug:' . $slug); | |
} else { | |
$blog = Article::where('slug', $slug)->first(); | |
Cache::put('article:slug:' . $slug, $blog, $seconds = 600); | |
} | |
return $this->article = $blog; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cek versi microsoft edge anda dengan cara : | |
klik browser setting | |
pilih Help & feedback->dan klik About Microsoft Edge. | |
catat versi microsoft edge misalnya : 97.0.1072.76 | |
setelah itu buka command promopt ( CMD ) run as administrator | |
ingat disini kita run cmd sebagai administrator | |
lalu ketik : cd %PROGRAMFILES(X86)%\Microsoft\Edge\Application\VersiMicrosoftEdge\Installer | |
contohnya sbb : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# jan/31/2022 12:20:23 by RouterOS 6.49.2 | |
# software id = AD68-8HRQ | |
# | |
# model = RB4011iGS+ | |
# serial number = F0260E809EDC | |
/ip firewall raw | |
add action=add-dst-to-address-list address-list=MARKETPLACE \ | |
address-list-timeout=1d chain=prerouting comment=MARKETPLACE content=\ | |
tokopedia.com dst-address-list=!lokal src-address-list=lokal | |
add action=add-dst-to-address-list address-list=MARKETPLACE \ |