Skip to content

Instantly share code, notes, and snippets.

View mattiasb's full-sized avatar

Mattias Bengtsson mattiasb

View GitHub Profile
[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
@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
@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 / 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 / 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 / automatic.sh
Last active August 7, 2024 11:42
Setting GNOME keybindings with gsettings
#!/bin/bash
set -e
set -o pipefail
################################################################################
function gnome-keybinding {
echo gsettings set org.gnome.desktop.wm.keybindings "${@}"
}
@mattiasb
mattiasb / Makefile
Last active December 28, 2021 06:44
OpenWRT Image Builder Raspberry Pi 4 Makefile
VERSION=21.02.1
TARGET=bcm27xx-bcm2711
PROFILE=rpi-4
PACKAGES=kmod-usb-net-rtl8152 luci luci-ssl
FILESYSTEM=ext4
###################
BUILDER_BASEURL=https://downloads.openwrt.org/releases/$(VERSION)/targets/$(subst -,/,$(TARGET))
BUILDER_TARBALL=openwrt-imagebuilder-$(VERSION)-$(TARGET).Linux-x86_64.tar.xz
@mattiasb
mattiasb / Output
Created December 11, 2020 17:09
Ansible some tasks don't prepend role name
TASK [check : Type Checking mount field in storage_lvm_volumes] **********
ok: [machine-test.local] => (item={'path': '/'}) => changed=false
ansible_loop_var: item
item:
path: /
msg: All assertions passed
TASK [storage : check : Type Checking bools] *****************************
ok: [machine-test.local] => changed=false
msg: All assertions passed
@mattiasb
mattiasb / Vagrantfile
Created December 10, 2020 13:40
Vagrantfile: Theoretical change to shell provisioner to allow changing guest ssh port
config.vm.define "git.local" do |server|
server.vm.hostname = "git.local"
server.ssh.port = 2222
# The ssh_port field doesn't exist in Vagrant, but would make it possible to
# change guest ssh port during provisioning.
server.vm.provision "shell", ssh_port: 22, inline: <<-SHELL
set -ex
sed -i -Ee 's/^[[:blank:]]*#[[:blank:]]*Port[[:blank:]]+22$/Port 2222/' \
/etc/ssh/sshd_config
systemctl restart sshd.service
@mattiasb
mattiasb / Jenkins log
Created March 2, 2020 14:20
Jenkins dind
Started by user Mattias Bengtsson
Running in Durability level: PERFORMANCE_OPTIMIZED
[Pipeline] Start of Pipeline
[Pipeline] node
Running on builder22_Linux in /home/company/jenkins/workspace/Experiments/mattiasb/DockerTest
[Pipeline] {
[Pipeline] isUnix
[Pipeline] sh
+ docker inspect -f . node:7-alpine
.