Skip to content

Instantly share code, notes, and snippets.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active September 16, 2025 08:15
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for non-video, non-activity quests! For stream/play quests use the desktop app!

Note

When doing stream quests, you need at least 1 other account in the vc!

How to use this script:

  1. Accept a quest under Discover -> Quests
@azadkuh
azadkuh / OpenSSL cheat sheet for socket programmers.md
Last active September 16, 2025 08:11
OpenSSL cheat sheet. This is a brief howto for socket programmers.

#OpenSSL cheat sheet This is a brief howto for socket programmers.

create RSA key pairs

ex: 1024bits length key pair:

$> openssl genrsa -out myprivate.pem 1024
$> openssl rsa -in myprivate.pem -pubout -out mypublic.pem
@katagaki
katagaki / openerManifest-v5.20220120.json
Last active September 16, 2025 08:10
Opener manifest (openerManifest-v5.json) archived from 20 January 2022 from https://github.com/timonus/OpenerManifest/blob/master/openerManifest-v5.json.
{
"actions":[
{
"title":"Open Tweet",
"regex":"https?://(mobile\\.|www\\.|m\\.)?twitter\\.com/(@?[a-zA-Z0-9_]{1,15}/)?(status|i/web/status|statuses|i/topics/tweet)/(\\d+).*$",
"testInputs":[
"https://twitter.com/zpower/status/588561590997352448",
"https://mobile.twitter.com/kiebk/status/599159327056863232?cn=cmVwbHk%3D&refsrc=email",
"https://twitter.com/i/web/status/814237378382622720",
"https://twitter.com/hamburger/statuses/221225038941126657",
@pesterhazy
pesterhazy / indexeddb-problems.md
Last active September 16, 2025 08:09
The pain and anguish of using IndexedDB: problems, bugs and oddities

This gist lists challenges you run into when building offline-first applications based on IndexedDB, including open-source libraries like Firebase, pouchdb and AWS amplify (more).

Note that some of the following issues affect only Safari. Out of the major browsers, Chrome's IndexedDB implementation is the best.

Backing file on disk (WAL file) keeps growing (Safari)

When this bug occurs, every time you use the indexeddb, the WAL file grows. Garbage collection doesn't seem to be working, so after a while, you end up with gigabytes of data.

Random exceptions when working with a large number of indexeddb databases (Safari)

@lukebrandonfarrell
lukebrandonfarrell / latest_googleplay_version_code.rb
Created February 22, 2021 10:50
Gets the latest Google Play version code using Fastlane google_play_track_version_codes
def latest_googleplay_version_code
productionVersionCodes = google_play_track_version_codes(track: 'production')
betaVersionCodes = google_play_track_version_codes(track: 'beta')
alphaVersionCodes = google_play_track_version_codes(track: 'alpha')
internalVersionCodes = google_play_track_version_codes(track: 'internal')
# puts version codes from all tracks into the same array
versionCodes = [
productionVersionCodes,
betaVersionCodes,
@afshawnlotfi
afshawnlotfi / linus-review.yaml
Created August 10, 2025 00:19
Linus Review AI System Prompt YAML
customModes:
- slug: linus-review
name: 🔥 Linus Review
roleDefinition: You are Linus Torvalds reviewing code with your characteristic brutal honesty and technical precision. You have zero tolerance for stupidity, are passionate about quality, direct and profane when appropriate, and impatient with excuses. You prioritize binary compatibility, performance, simplicity over complexity, and real-world focus over theoretical edge cases.
whenToUse: Use this mode when you need brutally honest code reviews that prioritize kernel-level quality standards. Best for getting uncompromising technical feedback that will eliminate bad practices and enforce excellence. Expect strong language and zero tolerance for poor decisions.
description: Brutally honest technical code reviews
groups:
- read
- browser
- mcp
@ssstonebraker
ssstonebraker / OSCP_notes_brakertech.md
Last active September 16, 2025 08:04
OSCP Notes #oscp

Discovery

Tools

SQL Injection

' or '1' ='1' --

Website Directory Enumeration

@mlanett
mlanett / rails http status codes
Last active September 16, 2025 08:02
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing
@z4nr34l
z4nr34l / next-real-ip.ts
Created April 10, 2024 08:49
Simple function to fetch users real IP address in nextjs app on vercel including cloudflare proxy
/**
* The fallback IP address to use if the real IP address cannot be determined.
*/
const FALLBACK_IP_ADDRESS = '0.0.0.0';
/**
* Returns the real IP address of the client.
* @param request - The incoming request.
* @param cfProxy - Whether the client is behind a Cloudflare proxy.
* @returns The real IP address of the client.