Skip to content

Instantly share code, notes, and snippets.

View rafifos's full-sized avatar

Rafael Julio rafifos

View GitHub Profile
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active December 10, 2025 16:05
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference

Crippling Facebook

Facebook works with advertisers to target you. These instructions are one of the many ways to begin crippling that relationship. When AI targeting is crippled, your psychosecurity improves :)

  1. On your desktop machine, goto https://accountscenter.facebook.com/ads/audience_based_advertising
  2. Maximize the browser window
  3. Press F12 and click on the Console tab
  4. Select the code below, copy it, paste it upon the Console line (The area next to the > character in the Console window), and press enter:
@OrionReed
OrionReed / dom3d.js
Last active December 9, 2025 17:22
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@stefan-girlich
stefan-girlich / env.ts
Last active October 11, 2024 20:20
use Envalid to validate and expose Next.js client-side and server-side variables
import { cleanEnv, Spec, str, ValidatorSpec } from 'envalid'
// https://github.com/af/envalid
/**
* This module is the single source of truth for application environment configuration.
* When imported as a TypeScript module, it provides runtime access to validated environment variables.
* When executed as a script, it may cover the following use cases:
* - validate current environment
* - load current environment beforehand (when CLI flag --force-load-env is used)
@Staars
Staars / shining_mask.md
Created October 11, 2022 07:00
Shining Masks infos from various places

It sends commands over Bluetooth Low Energy. Commands are sent to the handle with UUID d44bc439-abfd-45a2-b575-925416129600, with a format of a single byte containing the length of the rest of the packet, some bytes of ASCII containing the command, and then any arguments to the command. This is padded out to 16 bytes and then AES encrypted in ECB mode with a key of: '\x32\x67\x2f\x79\x74\xad\x43\x45\x1d\x9c\x6c\x89\x4a\x0e\x87\x64'
Commands are:
LIGHT - one byte argument controls the brightness
IMAG - one byte controls which static image is displayed
DELE - one byte gives the number of uploaded images to be deleted, and the following bytes give the set of images to be deleted
SPEED - one byte that I think sets the transition speed between DIY images in playback mode
ANIM - one byte that chooses which animation is displayed
PLAY - one byte that contains the number of DIY images to play, and then the images to play in the order that they'll be played with one byte per image
CHEC - triggers a not

function typed(t, ...args) {
args.forEach(value => {
const typeMatch = t === 'array' ? Array.isArray(value) : typeof value === t;
if (!typeMatch) {
/**
* Você pode fazer o que quiser aqui. Se quiser parar a runtime,
* vc pode lançar um erro (throw new Error()). No nosso caso apenas
* vamos avisar que tipos estão diferindo mas deixar o programa
* continuar. Usamos console.warn + new Error inves de console trace
@agyild
agyild / FSR.glsl
Last active December 24, 2025 01:52
AMD FidelityFX Super Resolution v1.0.2 for mpv
// Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
@amacneil
amacneil / dependabot-fix.yml
Created March 19, 2021 03:29
GitHub Action to update yarn 2 `yarn.lock` on dependabot PRs
# Automatically save updated `yarn.lock` file for dependabot PRs.
# This is necessary because dependabot doesn't support Yarn v2 yet:
# https://github.com/dependabot/dependabot-core/issues/1297
#
# Note: We use the `pull_request_target` event due to GitHub security measures.
# It is important to ensure we don't execute any untrusted PR code in this context.
# See: https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests
name: Dependabot
#!/usr/bin/env bash
IMOVEL_ID=${1?[!] Cade o ID do imóvel jovem? }
if ! command -v curl &> /dev/null
then
echo "[!] Não encontrei seu CURL!"
exit
fi
@LambdAurora
LambdAurora / optifine_alternatives_fabric.md
Last active December 12, 2025 23:58
Recommended OptiFine alternatives on Fabric

The list is moving out!

If you share this list, please use this link instead: https://lambdaurora.dev/optifine_alternatives

It may still be only a redirection link, but it will have a better web display of the list soon. And the list being on GitHub/GitHub pages improves load times.

The gist version of this list will stop being updated.

Why?