Skip to content

Instantly share code, notes, and snippets.

@syrm
syrm / starship-jj.toml
Created September 3, 2025 07:15
JJ prompt for Starship
# .config/starship-jj/starship-jj.toml
# cargo install starship-jj --locked
module_separator = " "
reset_color = true
[bookmarks]
search_depth = 100
exclude = []
@syrm
syrm / .gitconfig
Created September 1, 2025 09:31
1Password Git with PAT
[credential]
helper = !~/src/git-1password-credential.sh "login" "Item Name"
@syrm
syrm / stream-ffmpeg.sh
Created April 29, 2025 14:56
stream-ffmpeg.sh
# Résolution et FPS
RESOLUTION="2560x1440"
FPS="30"
# Entrée vidéo (par exemple, votre webcam)
WEBCAM_SOURCE="/dev/video0"
WEBCAM_VIDEO_WIDTH=1920
WEBCAM_VIDEO_HEIGHT=1080
WEBCAM_WIDTH="548"
WEBCAM_HEIGHT="308"
name: raft
services:
debug:
image: debian:latest
command: ["sleep", "36000000"]
networks:
- raft-network
node1:
name: deploy
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- 'main'
@syrm
syrm / 1.zig-http-ok-readme.txt
Last active August 29, 2024 14:00
zig http ok
zig build-exe main.zig -O ReleaseSmall
ls -lh
total 56K
-rw-r--r-- 1 srm srm 221 Aug 29 13:21 Dockerfile
-rwxr-xr-x 1 srm srm 17K Aug 29 15:58 main
-rw-r--r-- 1 srm srm 28K Aug 29 15:58 main.o
-rw-r--r-- 1 srm srm 665 Aug 29 15:39 main.zig
ldd main
@syrm
syrm / basic.lua
Created June 14, 2024 08:41
sound linux setup
-- .config/m2i/basic.lua
-- https://gitlab.com/enetheru/midi2input
--[[ global settings ]]--
-- autoconnect: can be true, false, or a named jack port. default = true
autoconnect = true
Knob_1 = 11.0
Knob_2 = 12.0
Knob_3 = 13.0
@syrm
syrm / gtk.css
Created June 10, 2024 06:55
thinner gnome console titlebar
/* config/gtk-4.0/gtk.css */
window.terminal-window headerbar,
window.terminal-window headerbar * {
border: 0;
margin: 0px;
min-height: 0;
padding-bottom: 1px;
padding-top: 1px;
}
@syrm
syrm / ssj-pet.xml
Created August 17, 2023 13:11
ssj-pet.json
<?xml version="1.0"?>
<animations xmlns="https://esheep.petrucci.ch/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://esheep.petrucci.ch/ https://raw.githubusercontent.com/Adrianotiger/desktopPet/master/Resources/animations.xsd">
<header>
<author>RedSparr0w</author>
<title>SSJ Goku size x2</title>
<petname>Goku</petname>
<version>1.2.3</version>
<info>SSJ Goku will fly and walk around your screen occasionally shooting blast.</info>
<application>1</application>
<icon><![CDATA[
@syrm
syrm / config.toml
Created August 1, 2023 16:56
Helix (bépo)
theme = "bouh"
[editor]
line-number = "relative"
auto-save = true
auto-format = true
color-modes = true
#auto-pairs = true
rulers = [120]
idle-timeout = 5