Skip to content

Instantly share code, notes, and snippets.

commit 982454a9a021041025fc0820c5474608261222d6
Author: Maximilian Güntner <[email protected]>
Date: Mon Oct 14 15:31:28 2024 +0200
Revert "Merge pull request #26355 from poettering/journal-no-rtc"
This reverts commit 16a9ad557de7173c182e9587a9cc0ca146293ec8, reversing
changes made to 11875a98e4f1c31e247d99e00c7774ea3653bafd.
diff --git a/TODO b/TODO
@mguentner
mguentner / delete-users.sh
Created March 27, 2022 13:22
(mass) delete users on a synapse instance
#!/usr/bin/env bash
USERS=("@some_user:your-server.tld", "@some_other_user:your-server.tld")
set -x
ADMIN_USER="your-admin-user"
PASSWORD="your-admin-password"
SERVER="your-server.tld"
TOKEN=$(curl -XPOST -d "{\"type\":\"m.login.password\", \"user\":\"$ADMIN_USER\", \"password\":\"$PASSWORD\"}" "https://$SERVER/_matrix/client/r0/login" | jq .access_token | sed s/\"//g )

Keybase proof

I hereby claim:

  • I am mguentner on github.
  • I am mguentner (https://keybase.io/mguentner) on keybase.
  • I have a public key ASCHMOQ49R0p8qJ11RdZ8RgtYNtNtO3t1t5uPdpARvx19Ao

To claim this, I am signing this object:

(lambda (_ newval operation where) (backtrace) (message "SET BG Value %s OP %s WHERE %s" newval operation where))(treemacs--not-selected-icon-background "#292b2e" set nil)
(defvar treemacs--not-selected-icon-background (byte-code "ÀÁÂÃÄ$‰Å·‚(\0ÆÇÈ!„,\0ÉÊ!ˆ‚,\0ÆÇÈ!„,\0ÉË!ˆ‚,\0‰‰²\001‡" [face-attribute default :background nil t #s(hash-table size 2 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (unspecified 12 unspecified-bg 26)) "#2d2d31" boundp treemacs-no-load-time-warnings message "[Treemacs] Warning: coudn't find default background color for icons, falling back on #2d2d31." "[Treemacs] Warning: background color is unspecified, icons will likely look wrong. Falling back on #2d2d31."] 5) ("/home/max/.emacs.d/elpa/develop/treemacs-20190309.1812/treemacs-visuals.elc" . 797))
require(treemacs-visuals)
byte-code("ÀÁ!ˆÀÂ!ˆÀÃ!ˆÀÄ!ˆÀÅ!ˆÀÆ!ˆÀÇ!‡" [require image dash s treemacs-visuals treemacs-workspaces inline treemacs-macros] 2)
require(treemacs-icons)
byte-code("ÀÁ!ˆÀÂ!ˆÀÃ!ˆÀÄ!ˆÀÅ!ˆÀÆ!ˆ
{ stdenv, fetchurl, makeWrapper, sbcl, sqlite, freetds, libzip, curl, git, cacert, openssl }:
stdenv.mkDerivation rec {
pname = "pgloader";
version = "3.5.2";
name = "${pname}-${version}";
src = fetchurl {
# not possible due to sandbox
# url = "https://github.com/dimitri/pgloader/archive/v${version}.tar.gz";
# sha256 = "1bk5avknz6sj544zbi1ir9qhv4lxshly9lzy8dndkq5mnqfsj1qs";
url = "https://github.com/dimitri/pgloader/releases/download/v3.5.2/pgloader-bundle-3.5.2.tgz";
@mguentner
mguentner / example_i3.config
Created October 25, 2018 12:33
a script that kills either tmux or the respective focused window. For use with i3 or other window managers
bindsym --release $mod+q exec --no-startup-id /home/anon/bin/kill.sh
#!/usr/bin/env ruby
require 'byebug'
require 'dry-validation'
module MyPredicates
include Dry::Logic::Predicates
predicate(:nested_one?) do |value|
(value.is_a? Hash) && value.key?(:alpha)
@mguentner
mguentner / gist:c975c0d1aa12b1c6a846d615fb292484
Created January 30, 2018 16:05
absolute div under <html>
<html>
<title>Absolute answers are hard.</title>
<style>
#main {
background-color: #00ff00;
height: 200px;
}
#absolute {
position: absolute;
top: 220px;
@mguentner
mguentner / config.nix
Created September 5, 2017 15:38
Alacritty with scrollback support -> https://github.com/jwilm/alacritty/pull/657
{
alacritty_sb = callPackage ./alacritty {
inherit (pkgs.xorg) libXcursor libXxf86vm libXi libX11;
};
}
@mguentner
mguentner / unicorn.nix
Last active September 3, 2017 01:23
Unicorn config for rails
{ workingDirectory, socketLocation, pidLocation, workerProcesses }:
let
cfg = ''
# The following was taken from github.com/crohr/syslogger and is BSD
# licensed.
require 'syslog'
require 'logger'
require 'thread'
class Syslogger