Skip to content

Instantly share code, notes, and snippets.

View botnick's full-sized avatar
🏠
Working from home

botnick

🏠
Working from home
View GitHub Profile
@botnick
botnick / ThailandPostTracker.ts
Created March 11, 2026 09:31
Thailand Post Tracker (Unofficial API) — TypeScript parcel tracking implementation for the official Thailand Post website
export interface ThailandPostTrackerOptions {
endpoint?: string;
referer?: string;
timeoutMs?: number;
}
export interface ThailandPostRequestData {
trackingNo: string;
flagOS: "1";
flagBill: string;
@botnick
botnick / cluster.ini
Created November 4, 2024 08:41
sample cluster.ini Don't Starve Together
[GAMEPLAY]
; โหมดการเล่น endless, survival, หรือ wilderness
game_mode = endless
; จำนวนผู้เล่นสูงสุด
max_players = 12
; ปิดโหมด PvP (ผู้เล่นโจมตีกันไม่ได้)
pvp = false
; หยุดเกมชั่วคราวเมื่อไม่มีผู้เล่น
pause_when_empty = true
; เปิดการทำภารกิจอัตโนมัติในบางภารกิจ
@botnick
botnick / install-nodejs-pm2.sh
Last active September 25, 2024 23:33
Shell script to install the latest version of Node.js and PM2 on any Linux distribution
#!/bin/bash
# Function to check the OS and package manager
check_os() {
if [ -f /etc/os-release ]; then
. /etc/os-release
OS=$ID
else
echo "Cannot detect the OS."
exit 1
@botnick
botnick / wings-installer.sh
Last active December 4, 2024 23:34
Pterodactyl Wings Installer
#!/bin/bash
# ตรวจสอบว่าเป็นผู้ใช้ root หรือไม่
if [[ $EUID -ne 0 ]]; then
echo "🚨 This script must be run as root."
exit 1
fi
# ฟังก์ชั่นสำหรับพิมพ์ข้อความแบบมีสีและสไตล์
print_styled() {