Skip to content

Instantly share code, notes, and snippets.

View hsitter's full-sized avatar
🦖

Harald Sitter hsitter

🦖
  • KDE
  • Austria
View GitHub Profile
@hsitter
hsitter / 0001-shortread-example.patch
Created January 23, 2025 13:42
systemd shortread
From d2c645f9a15813cf73d20a614df758cb901cb009 Mon Sep 17 00:00:00 2001
From: Harald Sitter <sitter@kde.org>
Date: Thu, 23 Jan 2025 14:31:41 +0100
Subject: [PATCH] shortread example
---
meson.build | 1 +
src/shortread/meson.build | 10 ++++++++++
src/shortread/shortread.c | 40 +++++++++++++++++++++++++++++++++++++++
3 files changed, 51 insertions(+)
# on amd64 as user phablet
cd
wget https://metadata.neon.kde.org/.mycroft/mycroft-core.tar.xz
tar -xf mycroft-core
sudo mkdir /var/log/mycroft
sudo chown phablet /var/log/mycroft
sudo apt install libportaudio2 python3-arrow flac jq libfann2 libjack0 libjq1 libonig4 libout123-0 libportaudiocpp0 mpg123
#!/usr/bin/env ruby
#
# Copyright (C) 2018 Harald Sitter <sitter@kde.org>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License or (at your option) version 3 or any later version
# accepted by the membership of KDE e.V. (or its successor approved
# by the membership of KDE e.V.), which shall act as a proxy
@hsitter
hsitter / FalkonQSP.md
Last active September 11, 2017 13:06

Changes

  • AppData always uses AppDataLocation (assumption: data is machine independent and can be roamed?). This transparently includes the previous paths on all platforms.
  • Config always uses AppConfigLocation (This results in OSX changing the config path)
  • Temp directory gets created by QTemporaryDir
  • Cache always uses CacheLocation which results in path changes on OSX and Windows
  • NB: $APPNAME is 'falkon' so some paths change capitalization
  • !defined(NO_SYSTEM_DATAPATH) gets changed to inject $APPDIR as first choice in AppData to keep portable builds (appimage) from looking at system paths as first choice

OS X

{
"trunk": {
"root": "trunk/l10n-kde4",
"path": "kdelibs"
},
"stable": {
"root": "branches/stable/l10n-kde4",
"path": "kdelibs"
},
"stable_kf5": {
$ bundle exec ruby ci-tooling/test/test_nci_repo_cleanup.rb
Loaded suite ci-tooling/test/test_nci_repo_cleanup
Started
E
================================================================================================================================================================================
Error: test_clean(NCIRepoCleanupTest): ArgumentError: wrong number of arguments (given 0, expected 1..2)
/home/me/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/aptly-api-0.6.0/lib/aptly/representation.rb:14:in `initialize'
/home/me/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/aptly-api-0.6.0/lib/aptly/publish.rb:10:in `initialize'
/home/me/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/mocha-1.2.1/lib/mocha/mock.rb:250:in `new'
/home/me/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/mocha-1.2.1/lib/mocha/mock.rb:250:in `responds_like_instance_of'
$ snapcraft     
DEPRECATED: Custom plugins should now be placed in 'snap/plugins'.
See http://snapcraft.io/docs/deprecation-notices/dn2 for more information.
Loaded local plugin for stage-debs
$ mkdir snap           
mv parts/plugins snap/ -v

edit .gnupg/gpg-agent.conf

# Create an extra socket to use for remotes, so we don't have communication clashes
extra-socket /home/me/.gnupg/S.gpg-agent-extra

Reload your agent with gpg-connect-agent reloadagent /bye

REMOTE=drax.kde.org
@hsitter
hsitter / gpg.md
Created September 12, 2016 10:21

Fresh .gnupg. No nothing available.

me@me-VirtualBox:~$ gpg2  --clearsign --detach-sign -u 0x72F23991 abc
gpg: keybox '/home/me/.gnupg/pubring.kbx' created
gpg: skipped "0x72F23991": No secret key
gpg: abc: clearsign failed: No secret key

importing a public key