Skip to content

Instantly share code, notes, and snippets.

@hood
hood / gist:2edf6244dd314b527c8ec3b20d9d6a19
Last active November 20, 2026 20:46
portable_blocklist.txt
||googleads.g.doubleclick.net^
||securepubads.g.doubleclick.net^
||ad.doubleclick.net^
||ad-delivery.net^
||c.amazon-adsystem.com^
||fastlane.rubiconproject.com^
||rubiconproject.com^
||g2.gumgum.com^
||gumgum.com^
||pagead2.googlesyndication.com^
@mogzol
mogzol / Create a bootable USB for Lenovo Yoga Slim 7X.md
Last active November 20, 2026 20:45
Create a bootable USB for Lenovo Yoga Slim 7X

Create a bootable USB for Lenovo Yoga Slim 7X

I originally wrote this as a Reddit comment, but it was deleted (I guess because it has links? idk), so I'm creating this Gist instead to document how I was able to boot the Windows installer on this laptop.

Note that the easiest solution is to just download the recovery media creator from Lenovo's support site, but I wanted to run the stock Windows installer, so this outlines how to do that.


Here are the steps I took to boot the Windows installer on my Lenovo Yoga Slim 7X (with an ARM64 Snapdragon Elite X CPU). I initially tried using Rufus, and while that drive did show up in the boot menu, selecting it would just hang on the YOGA logo forever.

@superopticasmkd
superopticasmkd / InertialBounce.jsx
Created November 20, 2026 20:45 — forked from animoplex/InertialBounce.jsx
Inertial Bounce - After Effects Expression by Animoplex
// Inertial Bounce - Created by Animoplex: www.animoplex.com
// Original Version: http://www.graymachine.com/top-5-effects-expressions/
// Modified expression for a smoother bounce effect and easier editing. Use this on any property with two keyframes to get a nice bounce effect that is based on velocity of the value change. Perfect for a scale from 0 to 100 or a speedy rotation that needs some extra life. Adjust amp, freq and decay values to tweak the effect. Amp is intensity, freq is bounces per second, and decay is the speed of decay, slow to fast.
// Full Tutorial: https://www.youtube.com/watch?v=653lxeVIyoo
amp = 5.0; freq = 2.0; decay = 4.0;
n = 0;
if (numKeys > 0) {
n = nearestKey(time).index;
@animoplex
animoplex / InertialBounce.jsx
Last active November 20, 2026 20:45
Inertial Bounce - After Effects Expression by Animoplex
// Inertial Bounce - Created by Animoplex: www.animoplex.com
// Original Version: http://www.graymachine.com/top-5-effects-expressions/
// Modified expression for a smoother bounce effect and easier editing. Use this on any property with two keyframes to get a nice bounce effect that is based on velocity of the value change. Perfect for a scale from 0 to 100 or a speedy rotation that needs some extra life. Adjust amp, freq and decay values to tweak the effect. Amp is intensity, freq is bounces per second, and decay is the speed of decay, slow to fast.
// Full Tutorial: https://www.youtube.com/watch?v=653lxeVIyoo
amp = 5.0; freq = 2.0; decay = 4.0;
n = 0;
if (numKeys > 0) {
n = nearestKey(time).index;
@whitingx
whitingx / meta-tags.md
Created October 5, 2012 16:41 — forked from kevinSuttle/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

About Awk

Awk is a text processing language that comes standard with most distributions of Linux/Unix. In my personal experience, awk is faster at parsing, filtering, and writing text files than either python or R with few exceptions. This cheat sheet goes over the basic awk commands that I use the most.

How does awk work

Awk processes a text file line by line and is used to apply some condition to each based on its contents. I have found the most use for it on text files of large matrices (that is text files with distinct, consistent columns) or on text that has clear consistent delimeters. Awk interpretes each column in your line and stores it as a variable from 1 to n where n is the number of columns you have. Say you have a file that looks as such:

ID  gene_name type  start stop Chr
ENSG0 C1orf22 protein_coding 178965 183312 chr2
// ==UserScript==
// @name Meshy Model Downloader
// @namespace https://kirakira.cloud
// @version 1.2.0
// @description Meshy model downloader – captura GLB desencriptado + export GLB/STL/OBJ
// @author kirakira (updated)
// @match https://www.meshy.ai/*
// @run-at document-start
// @grant none
// ==/UserScript==
@Ghyt777
Ghyt777 / youtube-ne-gruzitsya-proverka.md
Last active November 20, 2026 19:54
Почему не грузится YouTube в России: проверка за 2 минуты — DNS, замедление DPI, блокировка по IP или белые списки (2026)

Почему не грузится YouTube: проверка за 2 минуты

Сайт YouTube открывается, превью видны, а видео крутит кружок, зависает или пишет «Нет подключения к интернету»? У этого несколько разных причин, и лечатся они по-разному. Сначала определите свою — так вы не будете неделями перебирать стратегии zapret, которые в вашем случае не могут помочь.

Актуально на октябрь 2026, Россия.

Шаг 1. Откройте инструменты разработчика

  1. Откройте YouTube и включите видео, которое не грузится.
  2. Нажмите F12 (на Mac — Cmd + Option + I) → вкладка Network (Сеть).