Skip to content

Instantly share code, notes, and snippets.

View vozaldi's full-sized avatar
🐧

Aldilaputra vozaldi

🐧
View GitHub Profile
@vozaldi
vozaldi / utilities.d.ts
Last active October 28, 2025 06:51
Wild Card String TypeScript
/**
* Allow wild card values in a string type
*
* @example
* type MyString = 'active' | 'inactive' | WildCardString;
* const myString: MyString = 'active';
* const anotherString: MyString = 'anything-else'; // wild card value
*/
export type WildCardString = string & {};
@vozaldi
vozaldi / console.php
Created August 7, 2025 03:22
Artisan command to serve on LAN `php artisan local`
<?php
/**
* This artisan command detects current LAN IP Address
* and runs `php artisan serve --host <YOUR_LOCAL_IP>`
*
* It will run on your local IP e.g. "192.168.0.69:8000"
* instead of using traditional host of "127.0.0.1:8000"
* so you can access it from your mobile device
*
* Run `php artisan local`
@vozaldi
vozaldi / start.bat
Last active March 19, 2025 04:36
Terminal: Run an Emulator without opening Android Studio
@echo off
set "arg1=Main"
IF NOT [%1] == [] set "arg1=%1"
@echo on
%ANDROID_HOME%/emulator/emulator -avd %arg1% -no-snapshot
@vozaldi
vozaldi / mariyadi.md
Created January 4, 2024 03:41
Mariyadi

Hey yo, WhatsApp, Facebook, Instagram..

Netes banyune kendi

Mariyadi tak fotokopi, ihik ihik

Modele koyo asli

Bedone emprite mini