Skip to content

Instantly share code, notes, and snippets.

@rithviknishad
rithviknishad / Ayu_Dark_Custom.icls
Created February 4, 2025 16:32
Ayu Dark theme (with fix for coverage gutter colors)
<scheme name="Ayu Dark" version="142" parent_scheme="Darcula">
<metaInfo>
<property name="ide">Python</property>
<property name="ideVersion">2024.3.1.1.0.0</property>
</metaInfo>
<colors>
<option name="ADDED_LINES_COLOR" value="7fd962" />
<option name="ANNOTATIONS_COLOR" value="cccac2" />
<option name="CARET_COLOR" value="e6b450" />
<option name="CARET_ROW_COLOR" value="131721" />
@MartinEesmaa
MartinEesmaa / youtube_formats.md
Last active January 22, 2026 20:23 — forked from AgentOak/youtube_formats.md
Youtube Format IDs

Note: This is all almost full YouTube ID informations. Original owner goes to AgentOak, modified version by Martin Eesmaa.

See the credits and also special thanks in below.

Before this gist has been forked, AgentOak made original gist on November 13 2019 and it was last updated on May 5 2021.

From now on, this forked gist is maintained by Martin Eesmaa since 17 September 2022.

Last updated: 08 January 2026

[Desktop Entry]
Name=vscode-right-click-hotfix
Type=Application
Exec=/usr/bin/env vscode-right-click-hotfix
@campolloram
campolloram / git-pre-commit-hook-django
Last active July 14, 2022 13:05 — forked from mlorant/git-pre-commit-hook-django
Django - Avoid duplicate in migration names before committing changes in Git
#!/usr/bin/python
"""
Pre-commit hook for git written in Python.
Check if there is any migration number used more than one in each
migrations folder of South or Django >= 1.7.
You can install this pre-hook by executing the command:
ln -s ./git-pre-commit-hook .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
Or by calling the current script or check_migrations_files() in your
own file.
@lrvick
lrvick / github-troll.md
Last active May 24, 2025 01:11
Trolling Github's DMCA repo with their own security flaws.
@Kahtaf
Kahtaf / index.js
Created September 15, 2020 14:37
Create a simple CORS proxy with Cloudflare Workers to bypass CORS restrictions in the browser. Perfect for local development.
/**
* Create a simple CORS proxy with Cloudflare Workers
* to bypass cors restrictions in the browser.
* Example Usage: https://<worker_subdomain>.workers.dev/https://postman-echo.com/get?foo1=bar1&foo2=bar2
*/
addEventListener('fetch', event =>
event.respondWith(handleRequest(event.request))
)
@petedoyle
petedoyle / EdgeToEdge.kt
Last active March 10, 2022 09:59
Kotlin extension functions to simplify edge-to-edge on Android Q
/**
* Applies window transformation flags (WTFs) to aid in supporting
* edge-to-edge layouts on Android Q and higher.
*/
fun Activity?.applyEdgeToEdge(
lightStatusBar: Boolean = false,
lightNavigationBar: Boolean = false,
transparentStatusBar: Boolean = true,
immersive: Boolean = false
) {
@fnky
fnky / ANSI.md
Last active January 26, 2026 20:38
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@h0tw1r3
h0tw1r3 / aria2.daemon
Last active February 27, 2025 10:16
Aria2c systemd service
continue
dir=/var/www/downloads
file-allocation=falloc
max-connection-per-server=4
max-concurrent-downloads=2
max-overall-download-limit=0
min-split-size=25M
rpc-allow-origin-all=true
rpc-secret=YouShouldChangeThis
input-file=/var/tmp/aria2c.session