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 / 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
magnet:?xt=urn:btih:707ff7a8be55d9e3ab8e1eb8560061f7e679de6d&dn=archlinux-2020.07.01-x86_64.iso&ws=http://mirror-hk.koddos.net/archlinux//iso&ws=http://linorg.usp.br/archlinux//iso&ws=http://mirror.puzzle.ch/archlinux//iso&ws=http://mirror.cs.pitt.edu/archlinux//iso&ws=https://mirrors.niyawe.de/archlinux//iso&ws=http://mirrors.tuna.tsinghua.edu.cn/archlinux//iso&ws=http://ftp.linux.cz/pub/linux/arch//iso&ws=http://ftp.otenet.gr/linux/archlinux//iso&ws=http://mirror.rol.ru/archlinux//iso&ws=http://ca.us.mirror.archlinux-br.org//iso&ws=https://mirrors.kurnode.com/archlinux//iso&ws=https://ftp.icm.edu.pl/pub/Linux/dist/archlinux//iso&ws=https://mirror.fra10.de.leaseweb.net/archlinux//iso&ws=http://mir.archlinux.fr//iso&ws=http://mirrors.sonic.net/archlinux//iso
│ ├── .PKGINFO
│ │ @@ -3,12 +3,12 @@
│ │ pkgname = haskell-data-default-class
│ │ pkgbase = haskell-data-default-class
│ │ pkgver = 0.1.2.0-17
│ │ pkgdesc = A class for types with a default value
│ │ url = https://hackage.haskell.org/package/data-default-class
│ │ builddate = 1587638660
│ │ packager = Felix Yan <felixonmars@archlinux.org>
│ │ -size = 54858