Skip to content

Instantly share code, notes, and snippets.

@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active January 6, 2025 21:17
"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
@leminlimez
leminlimez / Domains.md
Last active January 6, 2025 21:16
A deep dive into the iOS backup/restore system

Domains.plist

Documentation of /System/Library/Backup/Domains.plist. File taken from iOS 16.4 iPhone SE 3. The file was removed in iOS 17.0

Values

Values in the plist. Other than SystemDomains, these are not really important and are just here for preservation sake.

A domain in domains.plist contains keys that determine what gets backed up for what types of devices and where (i.e. iCloud vs iTunes). Not all domains have each key. The only 2 keys that must be in every domain are RootPath and RelativePathsToBackupAndRestore. Some domains have the value ShouldDigest. I am not sure exactly what it means but I have included it for documentation purposes.

  • Version: "24.0"
  • SystemDomains: (Dictionary), see below
@glowinthedark
glowinthedark / dict2mdx.sh
Last active January 6, 2025 21:16
Convert Lingvo DSL, Babylon BGL, Stardict, ZIM, etc dictionaries to MDict MDX (see formats supported by https://github.com/ilius/pyglossary)
#!/bin/bash
# Convert Lingvo DSL, Babylon BGL, Stardict, ZIM, etc dictionaries to MDict MDX (see input formats supported by https://github.com/ilius/pyglossary)
#
# Dependencies:
# python3, sqlite3, pyglossary, mdict-utils
# optional dependency: dictzip (for unpacking .dz files)
#
# Install all dependencies with:
# pip3 install pyglossary mdict-utils lxml polib PyYAML beautifulsoup4 html5lib PyICU libzim>=1.0 python-lzo prompt_toolkit
@TolgaBagci
TolgaBagci / Download vIOS-L2.md
Last active January 6, 2025 21:13
Download vIOS-L2

Using the GNS3 program, you can use the vIOS-L2 IOS image for Cisco CCNA and Cisco CCNP exams. To download vIOS-L2, visit the relevant post by clicking the link below.

Download IOS: vIOS-L2

@ECHO OFF
ECHO Deleting User temp files
DEL /S /Q /F "%TEMP%\*.*"
DEL /S /Q /F "%TMP%\*.*"
ECHO Deleting Local temp files
DEL /S /Q /F "%USERPROFILE%\Local Settings\Temp\*.*"
DEL /S /Q /F "%LOCALAPPDATA%\Temp\*.*"
ECHO Deleting Windows temp files
@ECHO OFF
ECHO Deleting User temp files
DEL /S /Q /F "%TEMP%\*.*"
DEL /S /Q /F "%TMP%\*.*"
ECHO Deleting Local temp files
DEL /S /Q /F "%USERPROFILE%\Local Settings\Temp\*.*"
DEL /S /Q /F "%LOCALAPPDATA%\Temp\*.*"
ECHO Deleting Windows temp files
@jdeluyck
jdeluyck / gist:cafb5fff57a823639b3bdb0a8a6b667d
Created July 9, 2020 18:44
Script to decrypt Home Assistant encrypted SecureTar snapshots.
#!/usr/bin/env python3
import sys
import getopt
import hashlib
import tarfile
import glob
import os
import shutil
@stephenturner
stephenturner / summarize-bluesky-atrrr-ellmer.R
Last active January 6, 2025 21:10
Code for summarizing #Rstats posts on bluesky with atrrr+ellmer
# Get top Bluesky posts for #Rstats ---------------------------------------
library(dplyr)
library(glue)
library(atrrr)
library(ellmer)
# authenticate to bluesky using vars in ~/.Rprofile
# or do this interactively with just `auth()`
auth(user = Sys.getenv("BSKY_USER"),
@andreasvc
andreasvc / metainfo.py
Last active January 6, 2025 21:08
Extract metadata from Project Gutenberg RDF catalog into a Python dict.
"""Extract metadata from Project Gutenberg RDF catalog into a Python dict.
Based on https://bitbucket.org/c-w/gutenberg/
>>> md = readmetadata()
>>> md[123]
{'LCC': {'PS'},
'author': u'Burroughs, Edgar Rice',
'authoryearofbirth': 1875,
'authoryearofdeath': 1950,
@ChristopherA
ChristopherA / ssh-keys-best-practices.md
Last active January 6, 2025 21:07
SSH Keys - Best Practices

SSH Keys Best Practices

(VERY rought draft, still a work-in-progress)

SSH Key Seperation

Authentication and signing keys serve different purposes, especially on platforms like GitHub where code integrity and access control are crucial. Here's a comparison based on their functions and best practices:

Authentication Keys:

  1. Purpose: