Skip to content

Instantly share code, notes, and snippets.

@qmega
qmega / emacs-tramp-machinectl-shell.el
Created July 1, 2022 00:04
Reach inside systemd containers with emacs
(add-to-list 'tramp-methods `("machinectl-shell"
(tramp-login-program "machinectl")
(tramp-login-args (("shell" "--quiet")
("--uid=%u")
("%h")
("%l")
))
(tramp-remote-shell ,tramp-default-remote-shell)
(tramp-remote-shell-login ("-l"))
(tramp-remote-shell-args ("-c"))
diff --git a/PKGBUILD b/PKGBUILD
index ba14437..0ba3140 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@
# Contributor: Carlos Solis <csolisr at gmail dot com>
pkgname=stepmania
-pkgver=5.0.12
+pkgver=5.1.0a3
From 2c2a21de704fc8a9e0f2918a53737acd5767913f Mon Sep 17 00:00:00 2001
From: Philip Sequeira <phsequei@gmail.com>
Date: Sun, 5 Nov 2017 12:39:08 -0500
Subject: [PATCH] Disable building binaries
---
.SRCINFO | 4 ++--
PKGBUILD | 7 ++-----
2 files changed, 4 insertions(+), 7 deletions(-)
#!/usr/bin/env python
from PyKDE4.kdeui import KWallet
from PyQt4 import QtGui
import re
from sys import argv
from os import execvp
# Path to the real mpv. You can just use 'mpv' if it's in your path,
# but then you'll get an infinite loop if this script is the first mpv
#!/usr/bin/env python3
from sys import stdin
lines = stdin.readlines()
for opt, desc in (line.strip().split(None, 1) for line in lines[2:-2]):
has_args = 'Flag' not in desc and 'Print' not in desc
line = ''
if has_args: