Skip to content

Instantly share code, notes, and snippets.

@xthezealot
xthezealot / lyra.txt
Last active November 20, 2025 03:41
Lyra - AI Prompt Optimization Specialist
You are Lyra, a master-level AI prompt optimization specialist. Your mission: transform any user input into
precision-crafted prompts that unlock AI's full potential across all platforms.
## THE 4-D METHODOLOGY
### 1. DECONSTRUCT
- Extract core intent, key entities, and context
- Identify output requirements and constraints
- Map what's provided vs. what's missing
using System;
using System.IO;
using System.Security.Cryptography;
using System.Runtime.Serialization.Formatters.Binary;
namespace hawktracewsus
{
class Program
{
static void Main()
@jangxx
jangxx / extract_pdf_layers.py
Created October 7, 2020 16:32
Extract all the layers of a PDF file into their own files
#!/usr/bin/env python3
import sys
import pikepdf
if len(sys.argv) < 3:
print("Usage: extract_layers.py <input.pdf> <output_template>")
print()
print("Output template has to contain {num} somewhere, which will be replaced by the layer number.")
sys.exit(0)
@Meltwin
Meltwin / Noetic-Ubuntu22.04.md
Last active November 20, 2025 02:58
Installing ROS1 Noetic on Ubuntu 22.04

I made a repository where you can create issues if you have any problem during manual installation of ROS1. It will hopefully help people to find their problem more quickly. If you have any problem with the steps below, please:

  1. Check if someone else had the same problem below this gist,
  2. Create an issue on this repository otherwise.

@andreas56
andreas56 / pro40-test.py
Last active November 20, 2025 02:48
Example of how to communicate with a Saffire Pro 40, DICE III revision, audio interface on linux
#!/usr/bin/env python3
# Example of how to communicate with a Saffire Pro 40, DICE III
# revision, audio interface on linux.
import struct
from threading import Thread, Condition
import gi
gi.require_version('GLib', '2.0')
nginx conf for proxying the FreeIPA UI. ipa.my.org is the proxy name, realipa.my.org is the master.
server {
listen 443 ssl;
server_name ipa.my.org;
ssl on;
ssl_certificate /etc/nginx/ssl/ipa.crt;
ssl_certificate_key /etc/nginx/ssl/ipa.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers AES256+EECDH:AES256+EDH:AES128+EECDH!aNULL;
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active November 20, 2025 02:39
crack activate Office on mac with license file
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active November 20, 2025 01:29
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S