Skip to content

Instantly share code, notes, and snippets.

  • Shall i implement it?
  • No ...
@pieroproietti
pieroproietti / encrypted-dvd.md
Created July 6, 2021 04:19 — forked from ansemjo/encrypted-dvd.md
create an encrypted dvd with squashfs and luks

1. Create compressed squashfs image

Use mksquashfs to create a compressed image from a directory. Depending on how compressible the files are you could put on much more than 4.7 GB on a single disc.

mksquashfs /path/to/my/directory image.sqfs

You can use a different compression algorithm with e.g. -comp zstd or append multiple times to one archive to fill it up to almost the allowable size.

2. Reencrypt the image to wrap it in a LUKS container

@ossa-ma
ossa-ma / tropes.md
Last active March 12, 2026 23:21
AI Writing Tropes to Avoid — tropes.fyi by ossama.is

AI Writing Tropes to Avoid

Add this file to your AI assistant's system prompt or context to help it avoid common AI writing patterns. Source: tropes.fyi by ossama.is


Word Choice

"Quietly" and Other Magic Adverbs

@raykibul
raykibul / reop.md
Last active March 12, 2026 23:20
move a repo to a mono repo maintaining git commit history

Seamlessly Migrate Your GitHub Repository with Full Commit History to a Monorepo

Migrating a standalone GitHub repository into a larger monorepo while preserving the invaluable commit history is a common challenge for development teams. This process allows for better code sharing, simplified dependency management, and streamlined builds.

The most effective and recommended method involves using the powerful git filter-repo tool, followed by a strategic merge into the destination monorepo.


Step-by-Step Migration Guide

@majidmanzarpour
majidmanzarpour / SKILL.md
Created January 19, 2026 03:56
elite-frontend-ux skill for Claude Code
name description
elite-frontend-ux
Create distinctive, production-grade frontend interfaces with expert-level UX design. Use when building SaaS dashboards, landing pages, marketing sites, React/Vue components, HTML/CSS layouts, or any web UI. Combines bold aesthetic direction with systematic design tokens, WCAG accessibility, conversion optimization, and Tailwind/React best practices. Produces polished, memorable interfaces that avoid generic AI aesthetics while meeting professional standards.

Elite Frontend UX Design Skill

Create distinctive, production-grade interfaces that combine bold aesthetics with systematic UX excellence. Every output must be visually striking AND functionally flawless.

1. Design Philosophy

@alavkx
alavkx / migration-guide.md
Last active March 12, 2026 23:17
@tanstack/query --> @tanstack/db React Migration Guide

Migration Guide: React Query → TanStack DB

Migration Pattern

Replace React Query's server state management with TanStack DB's client-side database.

BEFORE: React Query

// api/posts.ts
export const postsApi = {
  getAll: async (): Promise<Post[]> => fetch('/api/posts').then(r => r.json()),
@storopoli
storopoli / xpriv.rs
Last active March 12, 2026 23:15
Easy way to generate testing xprivs
use bip39::{Language, Mnemonic};
use bitcoin::{bip32::Xpriv, Network};
const MNEMONIC: &str = "bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon";
fn main() {
let mnemonic = Mnemonic::parse_in(Language::English, MNEMONIC).unwrap();
println!("{}", mnemonic.to_string());
let seed = mnemonic.to_seed("");
let xpriv = Xpriv::new_master(Network::Regtest, &seed).unwrap();
println!("{}", xpriv.to_string());