Skip to content

Instantly share code, notes, and snippets.

View destroylord's full-sized avatar
:octocat:
Remote

Dafrin Maulana destroylord

:octocat:
Remote
View GitHub Profile
### Keybase proof
I hereby claim:
* I am destroylord on github.
* I am f1nal1 (https://keybase.io/f1nal1) on keybase.
* I have a public key ASBZ8ud1zQOSplYHEKsC9aH2I2BQN8qE4Ypl-D3ksXXoUQo
To claim this, I am signing this object:
@destroylord
destroylord / index.php
Last active December 29, 2021 10:41
PHP_Language
<?php
echo "Hello World";
?>
@destroylord
destroylord / mail.md
Created August 3, 2022 09:10
Configuration & setting mail Laravel

Konfigurasi & Step

  1. Kalian login dengan akun google yang akan digunakan untuk kirim email

  2. Kemudian menuju Halaman ini Setting Account Google

  3. Anda ke sidebar sebelah kiri dan pilih Security

  4. Kemudian anda harus melakukan 2-Step Verifikasi ,

@destroylord
destroylord / readme.md
Created January 10, 2023 22:23
Smart Lamp human Detection

Langkah Konfigurasi Server Side

  1. Koneksi laptop harus terhubung dengan 1 koneksi
  2. Buka arduino uno Kemudian buka firmate (file -> examples -> firmata -> firmataPlus)
  3. Masukkan port usb
  4. Kemudian ketikkan perintah pada terminal sudo chmod 666 <nama_port>
  5. Verify dan upload program pada firmata
  6. Selesai

langkah menjalankan program

  1. Client side -> jika tidak ada folder node_modules maka di install dulu kemudian dijalankan dengan perintah npm run start
@destroylord
destroylord / PostController.php
Created January 26, 2023 01:42
Update Old Upload Image in Laravel
<?php
use Illuminate\Support\Facades\Storage;
public function update(Post $post)
{
if ( request()->file('thumbnail')) {
Storage::delete($post->thumbnail);
$thumbnail = request()->file('thumbnail')->store('images/posts' );
}else{