Skip to content

Instantly share code, notes, and snippets.

@evaera
evaera / Clean Code.md
Last active June 8, 2026 19:17
Best Practices for Clean Code
  1. Use descriptive and obvious names.
    • Don't use abbreviations, use full English words. player is better than plr.
    • Name things as directly as possible. wasCalled is better than hasBeenCalled. notify is better than doNotification.
    • Name booleans as if they are yes or no questions. isFirstRun is better than firstRun.
    • Name functions using verb forms: increment is better than plusOne. unzip is better than filesFromZip.
    • Name event handlers to express when they run. onClick is better than click.
    • Put statements and expressions in positive form.
      • isFlying instead of isNotFlying. late intead of notOnTime.
      • Lead with positive conditionals. Avoid if not something then ... else ... end.
  • If we only care about the inverse of a variable, turn it into a positive name. missingValue instead of not hasValue.

Z-Image AI: Free Fast S3-DiT Image Generator

Z‑Image Turbo is a bit different from “classic” Stable Diffusion, so a lot of old prompting habits don’t quite apply. I’ll walk through how to prompt it deeply and safely, with special focus on controlling content (nudity, stereotypes, unwanted artifacts) even though the model does not support traditional negative prompts at all. ([Hugging Face][1])


1. How Z‑Image Turbo thinks (and why “negative” prompts don’t work)

Key facts that matter for prompting:

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active June 8, 2026 19:13
Complete Recent Discord Quest

Caution

As of April 7th 2026, Discord has expressed their intent to crack down on automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you most likely WILL get flagged by doing so.

Complete Recent Discord Quest

@jeffnash
jeffnash / hp-g1a-bios-issues.md
Created May 7, 2026 22:47
HP ZBook Ultra G1a / EliteBook X G1a BIOS issues

HP ZBook Ultra G1a / EliteBook X G1a — Complete BIOS & Hardware Issues

(Compiled from HP forums, Reddit, Level1Techs — May 7, 2026)


🔴 ISSUE 1: Boot Freeze (Critical)

The bug: Starting with BIOS 01.03.11 (EliteBook) / 01.04.03–01.04.05 (ZBook), the laptop freezes at the HP logo/spinning circle during boot. Circle stops spinning, nothing happens. Some units boot on second attempt, others are completely bricked.

@mietzen
mietzen / macos-bitwarden-cli-with-touch-id.md
Last active June 8, 2026 18:48
How to use use Bitwarden CLI with macOS Touch ID

How to use Bitwarden CLI with macOS Touch ID

If you want to use Bitwarden CLI for ssh have a look at: How to use use Bitwarden CLI for SSH-Keys in macOS

Wirtten and tested on macOS Ventura

Configure Touch ID for the sudo command

To allow Touch ID on your Mac to authenticate you for sudo access instead of a password you need to do the following.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@francislavoie
francislavoie / customkeys.txt
Created March 28, 2025 12:56
Warcraft 3 Custom Grid Hotkeys
/////////////////////////////////////////////////////
// Customized for Lefthanded Keyboard Alignment (QWEASZ)
// Simply place this Customkeys.txt file into your WC3
// folder usually under Documents or Program Files then
// in the game options Enable Custom Keyboard Shortcuts
///////////////////////////////////////////////////////
/////////////////////////////////////////////////////////
// This Custom Keys setup aligns all races units, heroes,
@zjzy820
zjzy820 / freegotv.md
Created March 5, 2026 11:07
FreeGoTV Review 2026: 50,000+ Live Channels, 4K Streaming, Free Trial Included

FreeGoTV Review 2026: 50,000+ Live Channels, 4K Streaming, Free Trial Included

My cable bill hit $180 last month. For what — 400 channels I never watch and a DVR that fills up with cooking shows I recorded by accident?

So I did what a lot of people are doing right now: I went looking for something else. I ended up testing FreeGoTV for a few weeks, and here's the honest rundown of what I found.


What Even Is FreeGoTV?

@lizrice
lizrice / main.go
Created August 25, 2016 10:02
Container from scratch
package main
// @lizrice, mostly copied from @doctor_julz: https://gist.github.com/julz/c0017fa7a40de0543001
import (
"fmt"
"os"
"os/exec"
"syscall"
)
@flaksp
flaksp / README.md
Last active June 8, 2026 18:37
Convert BitWarden JSON export file to Apple iCloud Keychain CSV import file saving TOTP and notes

BitWarden to Apple iCloud Keychain passwords converter

This Python scripts allows you to move your passwords from BitWarden to Apple iCloud.

You need to know:

  • It ignores secure notes, credit cards and other types that are not passwords.
  • It ignores BitWarden entries without usernames, passwords and URLs.
  • It also ignores URLs that do not start with http:// or https://.
  • It normalizes all TOTP tokens, e.g. wskg vtqa h5kl bhb4 v4v2 ybyo woc6 qme2 will be converted to otpauth://totp/example.com:dude@foo.bar?secret=WSKGVTQAH5KLBHB4V4V2YBYOWOC6QME2&issuer=example.com&algorithm=SHA1&digits=6&period=30.