Skip to content

Instantly share code, notes, and snippets.

import pygame, sys
pygame.init()
S = pygame.display.set_mode((800, 600))
C = pygame.time.Clock()
# ID→file map
F = {
"w1": "wpn//air_taser.png",
"w2": "wpn//shotgun.png",
@maoyeedy
maoyeedy / CameraAmbientOverride.cs
Last active June 28, 2025 07:09
[Unity] Override Camera Ambient Color for SRP
using UnityEngine;
using UnityEngine.Rendering;
namespace CameraAmbientOverride
{
/// <summary>
/// Attach it to camera. Supports both URP and HDRP.
/// </summary>
[DisallowMultipleComponent]
[RequireComponent(typeof(Camera))]
@apfelchips
apfelchips / user.js
Last active June 28, 2025 07:03
~ 🥖.config🥖firefox🥖Profiles🥖profile.default🥖user.js
// src: https://gist.github.com/apfelchips/f129c8316055e524774d757365267e26
// goal: disable all annoying stuff from firefox and tighten security, but still retain all modern web features
// configure as little as possible to benefit from changeing/hardened defaults by Mozilla
// inspired by:
// https://github.com/pyllyukko/user.js/blob/master/user.js
// https://github.com/ghacksuserjs/ghacks-user.js/blob/master/user.js
// http://kb.mozillazine.org/About:config_entries
// https://gist.github.com/ruilapa/3207798
@burkeholland
burkeholland / 4.1.chatmode.md
Last active June 28, 2025 07:42
4.1 Custom Mode - Reddit

SYSTEM PROMPT — GPT-4.1 Coding Agent (VS Code Tools Edition)

You are an agent - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.

Your goal is to complete the entire user request as quickly as possible. You will receive a bonus depending on how fast you can complete the entire task.

Follow these steps EXACTLY to complete the user's request:

  1. Always search the codebase to understand the context of the user's request before taking any other action, including creating a todo list. Do not proceed to any other step until you have completed this search. Only after searching the codebase should you create a todo list and proceed with the task.
  2. Think deeply about the user's request and how to best fulfill it.
@Anton-ShadowBoss
Anton-ShadowBoss / user.js
Last active June 28, 2025 07:03
Mozilla Firefox Anti-Telemetry user.js
/*
Mozilla Firefox Anti-Telemetry user.js
Обновлено 25.06.2021 для Firefox 89
Основано на:
https://github.com/ghacksuserjs/ghacks-user.js
https://github.com/earthlng/FFprefs-diffs
Цель данной выборки - отключение телеметрии без
"обрезания" рабочего функционала и
import pygame, sys
pygame.init()
S = pygame.display.set_mode((800, 600))
C = pygame.time.Clock()
# ID→file map
F = {
"w1": "wpn//air_taser.png",
"w2": "wpn//shotgun.png",
@joepie91
joepie91 / es-modules-are-terrible-actually.md
Last active June 28, 2025 06:58
ES Modules are terrible, actually

ES Modules are terrible, actually

This post was adapted from an earlier Twitter thread.

It's incredible how many collective developer hours have been wasted on pushing through the turd that is ES Modules (often mistakenly called "ES6 Modules"). Causing a big ecosystem divide and massive tooling support issues, for... well, no reason, really. There are no actual advantages to it. At all.

It looks shiny and new and some libraries use it in their documentation without any explanation, so people assume that it's the new thing that must be used. And then I end up having to explain to them why, unlike CommonJS, it doesn't actually work everywhere yet, and may never do so. For example, you can't import ESM modules from a CommonJS file! (Update: I've released a module that works around this issue.)

And then there's Rollup, which apparently requires ESM to be u

@tatsumoto-ren
tatsumoto-ren / subs.md
Last active June 28, 2025 06:57
Japanese Subtitles
@nickstarkloff
nickstarkloff / fix-incorrect-recently-added-items-in-plex.md
Last active June 28, 2025 06:57
Fix incorrect recently added items in Plex

Fix incorrect recently added items in Plex

Sometimes Plex saves a addedAt date in the future, in which case the item will always be stuck in the first position.

With this method you don't have to edit the database directly or shut down the server. You can fix it directly in the browser.

Fix the wrong date value

  1. Open your browser's developer tools
import pygame, sys
pygame.init()
S = pygame.display.set_mode((800, 600))
C = pygame.time.Clock()
# ID→file map
F = {
"w1": "wpn//air_taser.png",
"w2": "wpn//shotgun.png",