Skip to content

Instantly share code, notes, and snippets.

@jelly
jelly / events.txt
Created November 13, 2023 19:26
dbusctl monitor lid events
[jelle@t14s][~]%sudo busctl monitor org.freedesktop.login1
[sudo] password for jelle:
Monitoring bus message stream.
‣ Type=method_call Endian=l Flags=0 Version=1 Cookie=990 Timestamp="Mon 2023-11-13 19:25:57.856486 UTC"
Sender=:1.60 Destination=:1.5 Path=/org/freedesktop/login1/session/_34 Interface=org.freedesktop.login1.Session Member=TakeDevice
UniqueName=:1.60
MESSAGE "uu" {
UINT32 13;
UINT32 88;
};
@jelly
jelly / adding-systemd-service-zabbix
Last active January 19, 2021 14:00
Zabbix adding a systemd service trigger
# Adding a new systemd service trigger in Zabbix
## Create a template
1. Go to the "configuration" tab at the top
2. Select "templates in the second navigation
3. Click "create template"
4. As template name enter "Template App $application"
5. Add the "Templates" to the "In groups"
6. Add a description describing the template
(defcommand slap ("(.*)" nick)
"Syntax: 'slap <nick>' - Slaps nick with something."
(when (if (= 0 (length nick))
(build-string "slaps " nick (random-elt '(" a man page"
" your mom"))))))
@jelly
jelly / rebuilds.txt
Created October 18, 2020 19:10
Arch Rebuilds
Get a good, proper rebuild order tool to figure out the rebuild order.
With this tool, create a todolist, archweb detects if packages already exists in another todolist.
# Rebuild with devtools locally
* create a custom devtools profile in /usr/share/devtools "pacman-boost.conf" with a local repository where a build "boost" is repo-added.
* wrapper for building and repo-adding?
# TODO
@jelly
jelly / filesystem.diff
Last active October 14, 2020 13:57
Reproducible [core] issues
+++ build/filesystem-2020.09.03-1-x86_64.pkg.tar.zst
├── filesystem-2020.09.03-1-x86_64.pkg.tar
│ ├── file list
│ │ @@ -33,15 +33,15 @@
│ │ drwxr-xr-x 0 root (0) root (0) 0 2020-09-02 22:30:21.000000 mnt/
│ │ drwxr-xr-x 0 root (0) root (0) 0 2020-09-02 22:30:21.000000 opt/
│ │ dr-xr-xr-x 0 root (0) root (0) 0 2020-09-02 22:30:21.000000 proc/
│ │ drwxr-x--- 0 root (0) root (0) 0 2020-09-02 22:30:21.000000 root/
│ │ drwxr-xr-x 0 root (0) root (0) 0 2020-09-02 22:30:21.000000 run/
│ │ lrwxrwxrwx 0 root (0) root (0) 0 2020-09-02 22:30:21.000000 sbin -> usr/bin
@jelly
jelly / export-github-issues.py
Last active October 13, 2020 13:24
Export Github issues as CSV for import into Gitlab
#!/usr/bin/python
"""
Export Github issues to CSV for import into Gitlab.
"""
import argparse
import csv
import requests
@jelly
jelly / prometheus-rebuilderd-textcollecter-status.py
Created September 21, 2020 20:53
rebuilderd prometheus statistics
#!/usr/bin/python
import sys
from collections import defaultdict
import requests
# The rebuilderd instance
API_URL = 'https://reproducible.archlinux.org'
--class Marker(object): # XXX kill?
def __init__(self, occurrence):
self.occurrence = occurrence
pkg=python2-cherrypy, status=Bad
pkg=java-inetlib, status=Bad
pkg=java-jdepend, status=Bad
pkg=java-jline, status=Bad
pkg=libkate, status=Bad
pkg=mercurial, status=Bad
pkg=mysql-python, status=Bad
pkg=ode, status=Bad
pkg=openmotif, status=Bad
pkg=haxe, status=Bad
python2-pycontracts
python2-pyenchant
python2-pylibacl
python2-pylint
python2-unittest-mixins
python2-pylibacl