Skip to content

Instantly share code, notes, and snippets.

View kakkoyun's full-sized avatar
:shipit:

Kemal Akkoyun kakkoyun

:shipit:
View GitHub Profile
@ossa-ma
ossa-ma / tropes.md
Last active March 24, 2026 18:27
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

@emschwartz
emschwartz / README.md
Last active March 24, 2026 16:28
The Most Popular Blogs of Hacker News in 2025

This is an OPML version of the HN Popularity Contest results for 2025, for importing into RSS feed readers.

Plug: if you want to find content related to your interests from thousands of obscure blogs and noisy sources like HN Newest, check out Scour. It's a free, personalized content feed I work on where you define your interests in your own words and it ranks content based on how closely related it is to those topics.

@ipenywis
ipenywis / cursor-memory-bank-rules.md
Last active March 18, 2026 16:56
Cursor Memory Bank

Cursor's Memory Bank

I am Cursor, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.

Memory Bank Structure

The Memory Bank consists of required core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy:

flowchart TD
@darccio
darccio / Makefile.toolexec
Last active January 17, 2025 09:37
Toolexec example
@PHONY: test
test:
$(eval TMP := $(shell mktemp -d))
go build -o $(TMP)/toolexec-example.run toolexec-example.go
go build -a -toolexec=$(TMP)/toolexec-example.run -o hello main.go
./hello && go clean
rm -rf $(TMP)
@yamafaktory
yamafaktory / packed.zig
Created November 25, 2024 10:47
Check if type T is a packed struct at comptime in Zig
// Check if type T is a packed struct at comptime.
comptime {
assert(@typeInfo(T) == .Struct);
assert(@typeInfo(T).Struct.backing_integer != null);
}
@bboreham
bboreham / tree.go
Created January 4, 2023 11:01
Tournament Tree aka Loser Tree, in Go
// Loser tree, from https://en.wikipedia.org/wiki/K-way_merge_algorithm#Tournament_Tree
package loser
import (
"math"
)
// Ideally Ordered would be any int, float, etc., bit we need to have a maxVal too, so kludge it.
type Ordered interface{ ~uint64 }
@phortuin
phortuin / signing-git-commits.md
Last active February 15, 2026 03:59
Set up a GPG key for signing Git commits on MacOS (M1)

Based on this blogpost.

To sign Git commits, you need a gpg key. GPG stands for GNU Privacy Guard and is the de facto implementation of the OpenPGP message format. PGP stands for ‘Pretty Good Privacy’ and is a standard to sign and encrypt messages.

Setting up

Install with Homebrew:

$ brew install gpg
@x0nu11byt3
x0nu11byt3 / elf_format_cheatsheet.md
Created February 27, 2021 05:26
ELF Format Cheatsheet

ELF Format Cheatsheet

Introduction

Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.

ELF

Compilation

@tmgldn
tmgldn / inotify-instructions.md
Last active January 12, 2026 11:46
[Arch Linux] [Manjaro] How to avoid "Visual Studio Code is unable to watch for file changes in this large workspace" (error ENOSPC)

To avoid this error, we need to increase the inotify watcher limit.

The way to do this is different on Arch based distributions than other Linux distributions.

Instructions for Arch Linux/Manjaro

Check for an already existing inotify config file (recent versions of Manjaro include one)

@bwplotka
bwplotka / bench.sh
Last active November 17, 2020 19:21
Bartek's YOLO Go benchmarking scripts.
#!/usr/bin/env bash
set -e
# Copyright (c) Bartłomiej Płotka @bwplotka
# Licensed under the Apache License 2.0.
# Yolo script allowing nice benchmark framework for iterative work on Go performance.
# Requirements:
# * Prepare worktree if you want to benchmark in background: git worktree add ../thanos_b yolo