Skip to content

Instantly share code, notes, and snippets.

View picsel2's full-sized avatar

Sebastian Grabowski picsel2

View GitHub Profile
@picsel2
picsel2 / enterprise_token.rb
Created March 22, 2025 16:10 — forked from markasoftware/enterprise_token.rb
OpenProject Enterprise mode for free
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ it doesn't show that enterprise mode is enabled in the settings, but all ################
############ enterprise mode features, such as KanBan boards, are enabled. ################
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2023 the OpenProject GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
@picsel2
picsel2 / ostree-config-diff.sh
Last active November 5, 2024 08:25
Diff overview of /etc in ostree systems
#!/usr/bin/bash
# See why I use readarray: https://www.baeldung.com/linux/reading-output-into-array#using-the-readarray-command
readarray -t modified_files < <(ostree admin config-diff | grep "^M" | sed -e 's@^M @@g')
for f in "${modified_files[@]}"
do
echo "=== modified: \"$f\" ==="
# /usr/etc contains the distributed config files before applying the 3-way merge with /etc
diff -y "/usr/etc/$f" "/etc/$f"
done
#include "has_dwarf.hpp"
#include <array>
#include <fstream>
#include <iostream>
#include <memory>
#include <string_view>
#include <vector>
#include <algorithm>
#include <elf.h>