Skip to content

Instantly share code, notes, and snippets.

View malikbenkirane's full-sized avatar

Malik Benkirane malikbenkirane

View GitHub Profile
@malikbenkirane
malikbenkirane / config.toml
Last active June 3, 2026 07:55
~/.config/jj
[ui]
paginate = "never"
default-command = ['log', '-n', '4']
[git]
subprocess = true
[aliases]
pt = ["git", "push", "--tracked"]
ft = ["git", "fetch", "--tracked"]
{
"$schema": "https://opencode.ai/theme.json",
"defs": {
"fg": "#000000",
"bg": "#F8F8F8",
"string": "#3D8C20",
"string-bg": "#F2FBE0",
"string-bg-dark": "#D9EFB3",
"constant": "#76389A",
"comment": "#A8322C",
@malikbenkirane
malikbenkirane / core-commands_SKILL.md
Created May 15, 2026 13:11
Writing Plans Variant
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

@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 June 2, 2026 11:37
Helix Editor config
# theme = "aura-dark"
# theme = "catppuccin_frappe"
theme = "wolf-alabaster-light-bg"
# theme = "night_owl"
# theme = "kanagawa"
# theme = "base16_transparent"
# theme = "tokyonight"
# theme = "adwaita-light"
# theme = "adwaita-dark"
# theme = "boo_berry"