Skip to content

Instantly share code, notes, and snippets.

@tempoguyx
tempoguyx / dmm-dupe-delete.js
Created February 16, 2024 15:33
Delete duplicates in Debrid Media Manager
// this should run only on this page.
// https://debridmediamanager.com/library?status=sametitleorhash&page=1
// open browser console (ctrl+ shift + I), paste this script.
const deleteDupe = async (el = document) => {
let items = el.querySelectorAll('table.w-full tr.align-middle');
let sleep = async (ms) => await new Promise(resolve => setTimeout(resolve, ms));
for (let i = 0; i < items.length; i++) {
let deleteButton = el.querySelector("#__next > div > div:nth-child(7) > table > tbody > tr:nth-child(1) > td.px-1.py-1.flex.place-content-center > button.cursor-pointer.mr-2.mb-2.text-red-500");
@ruanbekker
ruanbekker / promtail_docker_logs.md
Last active January 9, 2025 01:45
Docker Container Logging using Promtail
@megumin616
megumin616 / instagram-follower-following.js
Created January 9, 2025 01:25 — forked from abir-taheer/instagram-follower-following.js
"This is our community, this is our family, these are our friends." https://www.youtube.com/watch?v=gk7iWgCk14U&t=425s
if (window.location.origin !== "https://www.instagram.com") {
window.alert(
"Hey! You need to be on the instagram site before you run the code. I'm taking you there now but you're going to have to run the code into the console again.",
);
window.location.href = "https://www.instagram.com";
console.clear();
}
const fetchOptions = {
credentials: "include",
@roib20
roib20 / apt-repo-playbook.yaml
Last active January 9, 2025 01:25
Example usages of the new `deb822_repository` Ansible module
---
- hosts: localhost
connection: local
gather_facts: true
tasks:
- name: Add APT repositories
when: ansible_os_family == 'Debian'
become: true
block:
@cshenton
cshenton / block_allocator.odin
Last active January 9, 2025 01:24
Allocator based on Sebastian Aaltonen's Offset Allocator, for suballocating GPU heaps
package block_allocator
// Allocator based on Sebastian Aaltonen's Offset Allocator:
// https://github.com/sebbbi/OffsetAllocator/blob/main/offsetAllocator.cpp
import "core:fmt"
import "core:math/bits"
import "core:math/rand"
assert_allocator_layout_good :: proc(allocator: ^Block_Allocator) {
@eligrey
eligrey / persist-text-input.user.js
Last active January 9, 2025 01:23
Persist text input userscript
// ==UserScript==
// @name Persist text input
// @description Persists input in text fields between navigations
// @author Eli Grey, The Chromium Authors
// @namespace https://eligrey.com
// @version 1.0.0
// @match *://*/*
// @grant none
// @run-at document-end
// @charset UTF-8
@trusktr
trusktr / DefaultKeyBinding.dict
Last active January 9, 2025 01:23
My DefaultKeyBinding.dict for Mac OS X
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict
This file remaps the key bindings of a single user on Mac OS X 10.5 to more
closely match default behavior on Windows systems. This makes the Command key
behave like Windows Control key. To use Control instead of Command, either swap
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys...
or replace @ with ^ in this file.
Here is a rough cheatsheet for syntax.
Key Modifiers
@MyBlueLotus
MyBlueLotus / best-solana-snap-sources.md
Last active January 9, 2025 01:20
Best Solana Snapshot Download Sources

Best sources to download solana mainnet snapshots

Download the snapshots using wget.

  cd snapshots
  wget --trust-server-names <URL>

US East / NYC

@phith0n
phith0n / fpm.py
Last active January 9, 2025 01:19
Fastcgi PHP-FPM Client && Code Execution
import socket
import random
import argparse
import sys
from io import BytesIO
# Referrer: https://github.com/wuyunfeng/Python-FastCGI-Client
PY2 = True if sys.version_info.major == 2 else False
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active January 9, 2025 01:10
"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