Skip to content

Instantly share code, notes, and snippets.

View malikbenkirane's full-sized avatar

Malik Benkirane malikbenkirane

View GitHub Profile
@malikbenkirane
malikbenkirane / Makefile.diff
Last active May 2, 2026 08:35
talos v0.13.0 Apple Silicon
diff --git a/Makefile b/Makefile
index 99ecb0b..b414af3 100644
--- a/Makefile
+++ b/Makefile
@@ -97,7 +97,7 @@ GO_VERSION ?= 1.26
# renovate: datasource=npm depName=markdownlint-cli
MARKDOWNLINTCLI_VERSION ?= 0.48.0
OPERATING_SYSTEM := $(shell uname -s | tr "[:upper:]" "[:lower:]")
-ARCH := $(shell uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')
+ARCH := amd64
@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 April 28, 2026 18:17
Helix Editor config
theme = "aura-dark"
# theme = "kanagawa"
# theme = "base16_transparent"
# theme = "tokyonight"
[editor]
cursorline = true
line-number = "relative"
[editor.lsp]
@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