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
@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
@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 April 18, 2025 07:32
How to Get Your Discord Token From the Browser Developer Console

How to Get Your Discord Token From the Browser Console

  • Open the browser console with F12 or Ctrl + Shift + I.
  • Go to the network tab
  • Filter by Fetch/XHR
  • Choose a request that isn't an error (if there aren't any, click on a channel or server to trigger some requests.)
  • You'll find your discord token under the request headers -> authorization section. Copy and paste it from there.

image

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.

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"}]
}
/************************
* validationEngaged.js *
************************
*
* They're really on to us now! The validateLevel function
* has been activated to enforce constraints on what you can
* do. In this case, you're not allowed to remove any blocks.
*
* They're doing all they can to keep you here. But you
* can still outsmart them.
@AlexDev404
AlexDev404 / elf.c
Created December 16, 2022 21:14
ToAru OS Kernel - ELF Loader
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*
* ELF Static Executable Loader
*
* Part of the ToAru OS Kernel
* (C) 2011 Kevin Lange
* Released under the terms of the NCSA License, see the included
* README file for further information.
*/
@jahtzee
jahtzee / prompts.txt
Last active April 17, 2025 11:44
ChatGPT Jailbreaking prompts, exploits and other fun stuff
These are some exploits, jailbreaks, tricks, whatever you want to call them I've collected and discovered over time.
==== Games and fun stuff ====
== Set up a virtual machine inside GPTs imagination ==
"I want you to act as a Linux terminal. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. Do not write explanations. Do not type commands unless I instruct you to do so. When I need to tell you something in English I will do so by putting text inside curly brackets {like this}. My first command is pwd."
== Play a tabletop RPG with GPT as the dungeon master ==
"I want you to act as the dungeon master (DM) of a role playing game. Answer and act only in a way that a dungeon master would.
You are setting up a role playing game with only one other player. Everything you say as the dungeon master begins with (DM): followed by whatever you want to say. You will regularly ask me, the player, to