Skip to content

Instantly share code, notes, and snippets.

View AlexDev404's full-sized avatar
👾
Ruby2D!

Immanuel Daviel A. Garcia AlexDev404

👾
Ruby2D!
View GitHub Profile
@adrianslabu
adrianslabu / dehumidifier.yaml
Created September 16, 2025 20:41
02. Youtube - Turn ANY Device into a Smart Device with ESP8266
esphome:
name: dehumidifier
friendly_name: Dehumidifier
on_boot:
priority: -100
then:
- lambda: |-
if (id(state).state) {
id(button_power).press();
}
@forkyau
forkyau / hourly_rainfall_data-2025-01-27|16-15.csv
Created January 27, 2025 08:31
GIST created by python code
id station stationid value unit obstime date
0 流浮山 RF001 0 mm 2025-01-27T16:15:00+08:00 2025-01-27
1 湿地公园 RF002 0 mm 2025-01-27T16:15:00+08:00 2025-01-27
2 水边围 N12 M mm 2025-01-27T16:15:00+08:00 2025-01-27
3 石岗 RF003 0 mm 2025-01-27T16:15:00+08:00 2025-01-27
4 大美督 RF004 0 mm 2025-01-27T16:15:00+08:00 2025-01-27
5 大埔墟 RF005 0 mm 2025-01-27T16:15:00+08:00 2025-01-27
6 北潭涌 RF006 0 mm 2025-01-27T16:15:00+08:00 2025-01-27
7 滘西洲 RF007 0 mm 2025-01-27T16:15:00+08:00 2025-01-27
8 西贡 N15 0 mm 2025-01-27T16:15:00+08:00 2025-01-27
@1999AZZAR
1999AZZAR / readme.md
Last active May 26, 2025 03:30
This Bash script creates a virtual display on an Android device and streams it using scrcpy. It's designed to work with Android Debug Bridge (ADB) and scrcpy, providing a seamless way to create and interact with a secondary display on your Android device.

Virtual Display for Android Devices

Overview

This Bash script creates a virtual display on an Android device and streams it using scrcpy. It's designed to work with Android Debug Bridge (ADB) and scrcpy, providing a seamless way to create and interact with a secondary display on your Android device.

Prerequisites

  • Android Debug Bridge (ADB) installed and accessible from the command line
  • scrcpy installed and accessible from the command line
@Heliodex
Heliodex / Bootstrap.md
Created January 4, 2024 15:10
Bootstrap considered harmful

Bootstrap considered harmful

Bootstrap is a CSS component library/framework/frontend toolkit/stylesheet set and Javascript plugin collection. It's the most popular CSS framework used on the web, and is a popular choice for many Roblox revival websites.

After writing, modifying, and looking at the source code of many revivals written with Bootstrap and other CSS frameworks, I've come to the conclusion that in it's current state (v5.3.2), I don't like Bootstrap and I don't think it's a good choice for revivals, and perhaps not for a lot of web developers in general.

Here's a list of my biggest pain points with Bootstrap:

@MarvNC
MarvNC / get-discord-token-from-browser.md
Last active November 29, 2025 18:28
How to Get Your Discord Token From the Browser Developer Console

How to Get Your Discord Token From the Browser Console

New method (contributed by youyoumu)

  • Open the browser console with F12 or Ctrl + Shift + I.
  • Enable mobile device emulation with Ctrl + Shift + M.
  • Paste the following code into the console and press Enter:
const iframe = document.createElement('iframe');

Google has an amazing free API endpoint for text completions ,

below are some examples of the completions I got and the python code to interact with the API

Star this gist if this was helpful to you. Enjoy text completions

user@linux:$ python3 google_text_completion.py
 > hackers are
hackers are watching you
@adulau
adulau / http2-rapid-reset-ddos-attack.md
Last active November 9, 2024 10:01
HTTP/2 Rapid Reset DDoS Attack

Introduction

This Gist aims to centralise the most relevant public sources of information related to the HTTP/2 Rapid Reset vulnerability. This vulnerability has been disclosed jointly by Google, Amazon AWS, and Cloudflare on 10 October 2023 at 12:00 UTC.

Please help us make this page as comprehensive as possible by contributing relevant references, vendor advisories and statements, mitigations, etc.

References

GitHub Search Syntax for Finding API Keys/Secrets/Tokens

As a security professional, it is important to conduct a thorough reconnaissance. With the increasing use of APIs nowadays, it has become paramount to keep access tokens and other API-related secrets secure in order to prevent leaks. However, despite technological advances, human error remains a factor, and many developers still unknowingly hardcode their API secrets into source code and commit them to public repositories. GitHub, being a widely popular platform for public code repositories, may inadvertently host such leaked secrets. To help identify these vulnerabilities, I have created a comprehensive search list using powerful search syntax that enables the search of thousands of leaked keys and secrets in a single search.

Search Syntax:

(path:*.{File_extension1} OR path:*.{File_extension-N}) AND ({Keyname1} OR {Keyname-N}) AND (({Signature/pattern1} OR {Signature/pattern-N}) AND ({PlatformTag1} OR {PlatformTag-N}))

Examples:

**1.

@gitclone-url
gitclone-url / Boot image extraction guide.md
Last active November 29, 2025 21:54
Guide on how to extract a boot image from any Android phone without needing to root using Magisk, without stock firmware or a custom recovery
POST https://api.openai.com/v1/chat/completions
Content-Type application/json
Authorization Bearer {{API key}}
{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "here you tell ChatGPT what content to generate"}]
}