Skip to content

Instantly share code, notes, and snippets.

View yogithesymbian's full-sized avatar
✔️
scodeid - open source code id

Yogi Arif Widodo yogithesymbian

✔️
scodeid - open source code id
View GitHub Profile
ffmpeg -i docs/gallery/frontend-1.png -compression_level 6 -qscale:v 25 docs/gallery/frontend-1.webp
@yogithesymbian
yogithesymbian / pgbouncer.ini
Created October 20, 2025 03:07
Menghindari bottleneck dari ribuan koneksi langsung ke Postgres.
[databases]
explorer = host=localhost port=5432 dbname=explorer
[pgbouncer]
listen_port = 6432
listen_addr = 0.0.0.0
auth_type = md5
pool_mode = transaction
max_client_conn = 1000
default_pool_size = 100
@yogithesymbian
yogithesymbian / mask_phone_number.ts
Created May 7, 2025 00:35
marsk phone number | yo security yo data ai
function maskPhoneNumber(phone) {
return phone.replace(/^(\d{4})\d{4}(\d{3})$/, '$1*****$2');
}
@yogithesymbian
yogithesymbian / script-setup-github-auto-v2.md
Created May 1, 2025 23:09
script-setup-github-auto-v2.md
#!/bin/bash
# 🎨 Colors
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
NC='\033[0m'
IDENTITIES_FILE="$HOME/.gh-identities.json"
@yogithesymbian
yogithesymbian / script-setup-github-auto-v1.md
Last active May 1, 2025 23:06
script-setup-github-auto V1 | multi account
#!/bin/bash
# 🎨 Warna
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
echo -e "${BLUE}=== Setup Akun GitHub dengan SSH dan Git Identity ===${NC}"
@yogithesymbian
yogithesymbian / cheat sheet multi account git.md
Created May 1, 2025 23:03
cheat sheet multi account git

🔄 Cara Ubah Remote Origin URL (kalau sudah terlanjur clone): Kalau kamu sudah clone dan ingin ganti ke alias yang benar, kamu tinggal jalankan ini di dalam folder project:

bash Copy Edit

git remote set-url origin [email protected]:yogithesymbian/api-yoai-nodejs.git

Setelah itu kamu bisa git pull, git push, dll tanpa error dan pakai akun yang benar.

@yogithesymbian
yogithesymbian / steam.md
Created March 18, 2025 06:24
steam crossover

Hi, I solved it (temporarly)

Run your steam with:

-forcesteamupdate -forcepackagedownload -overridepackageurl http://web.archive.org/web/20240520if_/media.steampowered.com/client -exitsteam

It wil downgrade.

And after, run it with:

"scripts": {
"build": "source $HOME/.nvm/nvm.sh; nvm use 12; vue-cli-service build",
"build:development": "source $HOME/.nvm/nvm.sh; nvm use 12; vue-cli-service build --mode development",
"start": "source $HOME/.nvm/nvm.sh; nvm use 18; vue-cli-service serve",
"start:production": "source $HOME/.nvm/nvm.sh; nvm use 18; vue-cli-service serve --mode production",
"lint": "source $HOME/.nvm/nvm.sh; nvm use 18; vue-cli-service lint",
"clean": "rm -rf package-lock.json && rm -rf node_modules && npm install --legacy-per-deps && npm run start",
"build:deploy": "source $HOME/.nvm/nvm.sh; nvm use 12 && npm run build && find ../visitor-dist -mindepth 1 ! -name '.git' ! -name '.gitignore' -exec rm -rf {} + && cp -R dist/* ../visitor-dist/"
},
@yogithesymbian
yogithesymbian / rp2040.md
Created February 16, 2025 02:46
raspberry pi 2040

Ya, untuk menambahkan JSON file board Raspberry Pi Pico di Arduino IDE, ikuti langkah-langkah berikut:

1. Buka Arduino IDE

Pastikan Anda sudah menginstal Arduino IDE versi 1.8.13 atau lebih baru.

2. Buka Preferences

  • Di Windows: Klik FilePreferences.
  • Di macOS: Klik Arduino IDEPreferences.

3. Tambahkan URL JSON

@yogithesymbian
yogithesymbian / .zshr
Created February 10, 2025 05:34
~/.zshr php config
laravel_pub() {
local IP=${1:-$(ipconfig getifaddr en0)} # Use argument if provided, otherwise get local IP
if [[ -z "$IP" ]]; then
echo "❌ Failed to determine IP address. Falling back to 127.0.0.1"
IP="127.0.0.1"
fi
echo "🚀 Starting Laravel on http://$IP:8000"
php artisan serve --host="$IP" --port=8000