Skip to content

Instantly share code, notes, and snippets.

View pothi's full-sized avatar
🦋
Working on #web #perf.

Pothi Kalimuthu pothi

🦋
Working on #web #perf.
View GitHub Profile
@pothi
pothi / MAC-OS-SLEEP-BATTERY-DRAINING-TEMP-FIX.md
Created January 10, 2026 15:52 — forked from msimperi/MAC-OS-SLEEP-BATTERY-DRAINING-TEMP-FIX.md
macOS Sleep Battery Draining Temporary Fix (Turn Wifi + Bluetooth off when sleeping)

macOS Sleep Battery Draining Temporary Fix

This guide provides a workaround for macOS battery drain issues during sleep by automatically disabling Bluetooth and WiFi when the system sleeps and re-enabling them on wake.

Problem

macOS currently has issues with battery draining during sleep when Bluetooth and WiFi remain active.

Solution Overview

Use sleepwatcher to run scripts that:

  • Disable Bluetooth and WiFi when the system goes to sleep
@pothi
pothi / CVE-2023-39777
Created September 23, 2023 11:41 — forked from GiongfNef/CVE-2023-39777
[POC] [CVE-2023-39777]
[Summary]
I have discovered a Cross-Site Scripting (XSS) vulnerability in vBulletin latest version 6.0.0, which also impacts lower versions. The vulnerability allows an attacker to inject malicious scripts into the Admin Control Panel, potentially leading to unauthorized access, data theft, or further exploitation.
[Description]
The XSS vulnerability can be triggered when an authenticated user accesses to path `/admincp` and try to login to the Admin Control Panel. The vulnerability is due to inadequate input sanitization, allowing an attacker to inject malicious scripts that will execute in the context of the targeted administrator's session so as to hijack admin's credential.
[Steps to Reproduce]
1. Log in /admincp in vBulletin Admin Control Panel.
2. Through the 'url' parameter, it is possible to inject JS code to escape, bypass white space then trigger XSS.
@pothi
pothi / do-debian8-locale-issues.md
Created May 6, 2021 17:04 — forked from 5car1z/do-debian8-locale-issues.md
Debian Locale Issues Fix

Debian 8 DO Locale Issues Fix

Problem

"Locale problems" in both the 32-bit & 64-bit versions of Debian 8 droplets

Create a new Debian 8 droplet and login as root: