Skip to content

Instantly share code, notes, and snippets.

View mattiasb's full-sized avatar

Mattias Bengtsson mattiasb

View GitHub Profile
@mattiasb
mattiasb / build.el
Created September 3, 2024 12:15
Building my packages
#!/usr/bin/emacs -x
;; -*- flymake-diagnostic-functions: nil; -*-
(setq user-emacs-directory (locate-dominating-file load-file-name ".git"))
(load (file-name-concat user-emacs-directory "early-init.el"))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(require 'package)
(require 'package-vc)
@mattiasb
mattiasb / custom.el
Last active November 8, 2024 12:47
Emacs config binding forge-create-issue
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-file (file-name-concat user-emacs-directory "custom.el"))
'(delete-selection-mode t)
'(fill-column 80)
'(inhibit-startup-buffer-menu t)
'(inhibit-startup-screen t)
@mattiasb
mattiasb / simple-server.md
Last active May 25, 2025 21:41
Simple Quadlet server

A simple Quadlet example

Suppose we want to set up two apps ([freshrss][1] and [Jellyfin][2]) behind a reverse proxy ([nginx][3]).

Then we'd do something like this with Podman and the quadlet generator:

Base container template

@mattiasb
mattiasb / gist:aa8a448d5d08faf2cdc4b425593b586a
Created July 12, 2025 17:44
MSE2 genevensis fork build error
========================================================================
Building module magicseteditor2 in /home/mattiasb/Code/github.com/mattiasb/MagicSetEditor2/.flatpak-builder/build/magicseteditor2-3
========================================================================
Switched to branch 'feature/genevensis-cmake-install'
-- The C compiler identification is GNU 14.3.0
-- The CXX compiler identification is GNU 14.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /run/ccache/bin/cc - skipped
-- Detecting C compile features
[146/175] Building CXX object CMakeFiles/magicseteditor.dir/src/script/parser.cpp.o
FAILED: CMakeFiles/magicseteditor.dir/src/script/parser.cpp.o
/run/ccache/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_REGEX_DYN_LINK -DUNOFFICIAL_BUILD -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -I/run/build/magicseteditor2/src -I/usr/include/hunspell -isystem /app/lib/wx/include/gtk3-unicode-3.3 -isystem /app/include/wx-3.3 -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -pthread -Wall -Wsuggest-override -Wstrict-null-sentinel -Wno-comment -Wno-unused-parameter -O3 -DNDEBUG -std=gnu++17 -Winvalid-pch -include /run/build/magicseteditor2/CMakeFiles/magicseteditor.dir/cmake_pch.hxx -MD -MT CMakeFiles/magicseteditor.dir/src/script/parser.cpp.o -MF CMakeFiles/magicseteditor.dir/src/script/parser.cpp.o.d -o CMakeFiles/magicseteditor.dir