Skip to content

Instantly share code, notes, and snippets.

@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active January 6, 2025 21:19
"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
@yidas
yidas / csr.conf.md
Last active January 6, 2025 21:18
Certificate(CSR) configuration file

Openssl commands:

openssl genrsa -out self-ssl.key
openssl req -new -key self-ssl.key -out self-ssl.csr -config csr.conf
openssl x509 -req -days 365 -in self-ssl.csr -signkey self-ssl.key -out self-ssl.crt -extensions req_ext -extfile csr.conf

Sign from Root CA: openssl x509 -req -days 365 -extensions req_ext -extfile csr.conf -CA RootCA.crt -CAkey RootCA.key -in self-ssl.csr -out self-ssl.crt

@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"),