Skip to content

Instantly share code, notes, and snippets.

View malikbenkirane's full-sized avatar

Malik Benkirane malikbenkirane

View GitHub Profile
@malikbenkirane
malikbenkirane / SKILL.md
Created April 16, 2026 08:44
jj-atomic-workflow
name jj-atomic-workflow
description Guide for atomic change workflow with jj and single-phrase test

jj Atomic Workflow

See core-commands skill for prohibited commands and temp file pattern.

Prerequisites

@malikbenkirane
malikbenkirane / SKILL.md
Created April 16, 2026 08:41
core-commands
name core-commands
description Core command guidelines - prohibited commands and temp file patterns. ALWAYS load this skill at session start.

Core Commands

This skill defines prohibited commands and the temp file pattern for multi-line content.

Before Running Any Command

{
"$schema": "https://opencode.ai/config.json",
"model": "google-vertex/zai-org/glm-5-maas",
"provider": {
"google-vertex": {
"models": {
"zai-org/glm-5-maas": {
"name": "GLM-5",
"provider": {
"npm": "@ai-sdk/openai-compatible",
@malikbenkirane
malikbenkirane / pfctl.conf
Created March 9, 2026 15:46
OpenBSD: Simple Gateway
block return # block stateless traffic
pass # establish keep-state
pass in quick on $int_if
match out on $ext_if inet from $int_if:network to any nat-to $ext_if
pass out on $ext_if from $int_if:network to any
package main
import (
"fmt"
"strconv"
)
// An interface lets you avoid dealing directly with concrete types.
type i0 interface {
plus1() int
@malikbenkirane
malikbenkirane / config.toml
Last active March 12, 2026 14:27
Helix Editor config
# theme = "modus_vivendi_tritanopia"
theme = "modus_operandi_tinted"
[editor]
cursorline = true
line-number = "relative"
[editor.lsp]
display-inlay-hints = true
@malikbenkirane
malikbenkirane / v3_commit.txt
Created February 16, 2026 12:46
An attempt of a "good commit" message prompt.
You will be analyzing a git diff and generating a well-structured commit message following conventional commit guidelines.
Here is the git diff to analyze:
<git_diff>
</git_diff>
Here is additional context about the change:
<context>
@malikbenkirane
malikbenkirane / hints.txt
Created February 14, 2026 07:50
idevicerestore homebrew hints
TLDR;
git clone https://github.com/libimobiledevice/idevicerestore
mkdir -p limd-build
cd limd-build
curl -o ./limd-build-macos.sh -L https://is.gd/limdmacos
bash ./limd-build-macos.sh
Manual build
@malikbenkirane
malikbenkirane / client.conf
Last active February 10, 2026 11:36
Wireguard Wg-quick
[Interface]
Address = # e.g. 10.20.10.2/24
ListenPort = 33333
DNS = 8.8.8.8
PrivateKey = # ...
[Peer]
PublicKey = # server.conf public key
Endpoint = # server IP:PORT
AllowedIPs = # e.g. 10.20.10.0/24 or 0.0.0.0/0
@malikbenkirane
malikbenkirane / Powershell env
Created February 7, 2026 08:59
Windows Powershell ssh-keygen / Tailscale
$env:USERPROFILE\.ssh\SSH_PRIVATE_KEY
# instead of C:\Users\USERNAME.ssh\SSH_PRIVATE_KEY