Skip to content

Instantly share code, notes, and snippets.

View claui's full-sized avatar
:octocat:
High-maintenance maintainer

Claudia Pellegrino claui

:octocat:
High-maintenance maintainer
View GitHub Profile
@claui
claui / opensearch-archlinux-package-source-files.xml
Created March 5, 2024 14:30
OpenSearch descriptor to search package source files in Arch Linux’s GitLab
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Arch Linux package source files</ShortName>
<Description>Search package source files in Arch Linux’s GitLab</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">https://gitlab.archlinux.org/favicon.ico</Image>
<Url type="text/html" method="get"
template="https://gitlab.archlinux.org/search">
<Param name="group_id" value="11323" /><!-- Packages -->
<Param name="scope" value="blobs" />
@claui
claui / Debian.md
Last active February 24, 2024 12:29
Random notes on Debian packaging

Notes on Debian packaging

Donnerstag, 07.09.2023

sudo mkdir -pv /var/lib/debbuild/aarch64/root
sudo debootstrap --arch arm64 byzantium /var/lib/debbuild/aarch64/root
@claui
claui / 1password.asc
Created September 27, 2023 12:39
Prepare 1Password installation on Debian
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFkeAh4BEACy6fUHiFi/YvXZ2E5Gs7qFL8TSKQGLt0g8w/NtBotMNveW2Nzg
aXcmJ2E0aXY7nBRtpIgRRrb7XuskDZwGmVx4PQshaZuIozS0T1kdMitobi4k3g2M
551yf1bPWl1neVJ5MmbpknnaIG6VjMHxcRKE0xXDYhpBtt7QQQw1HT8vOjUOXBUf
VIj2o7I/+cRGNgDdkbuGRccC8hSGyiWXy4FY8xPvxMSCXoL5w531ewaGl/M+mAOC
3c6T7S05CcNN50Z6wulCiDZGvuJ2547E5iU9KClAEchJH9yQ2PkLHy3OQi0lBt+4
PmGeBOIxvFVXGbtGGtx6oFZxVaYDzF+BHHHRRdUs75pWzRm5y/3j0j+O4UKLWvMx
3SN7gRRu6gP5nvOw6wdyYerci2NHx1JJKlM6d6zxEj+cJ4GoBeJQhJi3UVpDy0Hh
TX3iid9Zz1ansQrSujXU2t82695WTGau5sarheDya4niKfVOh4IDMBbA17fnqJbS
@claui
claui / opensearch-amazon-de.xml
Created March 8, 2023 16:22
OpenSearch descriptor for amazon.de
<?xml version="1.0" encoding="utf-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>amazon.de</ShortName>
<Description/>
<InputEncoding>UTF-8</InputEncoding>
<Image height="24" width="24" type="image/x-icon">https://amazon.de/favicon.ico</Image>
<Url type="text/html" template="https://amazon.de/s">
<Param name="k" value="{searchTerms}"/>
</Url>
<Url rel="suggestions" type="application/x-suggestions+json"
@claui
claui / opensearch-pep.xml
Created May 21, 2022 12:12
OpenSearch descriptor for Python Enhancement Proposals (PEPs)
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>PEP</ShortName>
<Description>Python Enhancement Proposal</Description>
<Url type="text/html" method="get" template="https://peps.python.org/pep-{searchTerms}/"></Url>
<Image width="200" height="200" type="image/png">https://upload.wikimedia.org/wikipedia/commons/thumb/c/c3/Python-logo-notext.svg/200px-Python-logo-notext.svg.png</Image>
<InputEncoding>UTF-8</InputEncoding>
<moz:SearchForm>https://peps.python.org/pep-0000/</moz:SearchForm>
</OpenSearchDescription>
@claui
claui / opensearch-zolltarifnummern-de.xml
Created October 2, 2021 21:22
OpenSearch descriptor for searching zolltarifnummern.de
<?xml version="1.0" encoding="utf-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>zolltarifnummern.de</ShortName>
<Description/>
<InputEncoding>UTF-8</InputEncoding>
<Image height="32" width="32" type="image/x-icon">https://www.tariffnumber.com/favicon.ico</Image>
<Url type="text/html" template="https://www.tariffnumber.com/2019/{searchTerms}">
<Param name="lang" value="de"/>
</Url>
</OpenSearchDescription>
@claui
claui / opensearch-twitter.xml
Created October 2, 2021 21:18
OpenSearch descriptor for searching Twitter
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Twitter (latest)</ShortName>
<Description>Twitter Search</Description>
<Url type="text/html" method="get" template="https://twitter.com/search">
<Param name="q" value="{searchTerms}"/>
<Param name="f" value="live"/>
</Url>
<Image width="16" height="16">https://abs.twimg.com/favicons/favicon.ico</Image>
<InputEncoding>UTF-8</InputEncoding>
@claui
claui / opensearch-aur.xml
Created October 2, 2021 21:04
OpenSearch descriptor for the Arch User Repository (AUR)
<?xml version="1.0" encoding="utf-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>AUR</ShortName>
<LongName>Arch User Repository</LongName>
<Description/>
<InputEncoding>UTF-8</InputEncoding>
<Image height="16" width="16" type="image/x-icon">https://www.archlinux.org/static/favicon.29302f683ff8.ico</Image>
<Image height="64" width="64" type="image/png">https://www.archlinux.org/static/logos/icon-transparent-64x64.9ed71ce9197d.png</Image>
<Url type="text/html" template="https://aur.archlinux.org/packages/">
<Param name="O" value="0"/>
@claui
claui / Homebrew in a multi-user environment.md
Created November 22, 2020 11:13
Using Homebrew on macOS in a multi-user environment

I’ve had success using Homebrew in a multi-user environment the following way:

Create a shared Homebrew user

Create a new (non-GUI) user, group and home directory:

sudo /usr/sbin/sysadminctl -addUser brew \
  -fullName 'Homebrew' -admin -home /var/brew \
  -password - -UID 430 \
@claui
claui / gettext_workaround.log
Created October 28, 2020 08:22
Code signature workaround for dylibs on macOS 11.0 (Apple Silicon)
$ brew reinstall gettext
[…]
$ gettext --version
Killed: 9
$ replace_inode() {
local filename
for filename; do
chmod o+w "${filename}"
rm -f "${filename}.bak"
mv -f "${filename}" "${filename}.bak"