Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
High-maintenance maintainer

Claudia Pellegrino claui

:octocat:
High-maintenance maintainer
View GitHub Profile
@claui
claui / opensearch-pep.xml
Created May 21, 2022
OpenSearch descriptor for Python Enhancement Proposals (PEPs)
View opensearch-pep.xml
<?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 Oct 2, 2021
OpenSearch descriptor for searching zolltarifnummern.de
View opensearch-zolltarifnummern-de.xml
<?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 Oct 2, 2021
OpenSearch descriptor for searching Twitter
View opensearch-twitter.xml
<?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-smile-amazon-de.xml
Created Oct 2, 2021
OpenSearch descriptor for smile.amazon.de
View opensearch-smile-amazon-de.xml
<?xml version="1.0" encoding="utf-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>smile.amazon.de</ShortName>
<Description/>
<InputEncoding>UTF-8</InputEncoding>
<Image height="24" width="24" type="image/x-icon">https://smile.amazon.de/favicon.ico</Image>
<Url type="text/html" template="https://smile.amazon.de/s">
<Param name="k" value="{searchTerms}"/>
</Url>
<Url rel="suggestions" type="application/x-suggestions+json"
@claui
claui / opensearch-aur.xml
Created Oct 2, 2021
OpenSearch descriptor for the Arch User Repository (AUR)
View opensearch-aur.xml
<?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 Nov 22, 2020
Using Homebrew on macOS in a multi-user environment
View Homebrew in a multi-user environment.md

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 Oct 28, 2020
Code signature workaround for dylibs on macOS 11.0 (Apple Silicon)
View gettext_workaround.log
$ 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"
@claui
claui / Please help me get Homebrew working again on the DTK.md
Last active Feb 24, 2022
[SOLVED] Please help me get Homebrew working again on the DTK
View Please help me get Homebrew working again on the DTK.md

Update: SOLVED

Thanks to @indirect’s help, I’m back up and running. Turns out there’s that directory /Library/Ruby/Gems/2.6.0/specifications/default. It contains a couple of gemspecs you really can’t (and shouldn’t ever) delete.

With the default gemspecs back in place, I was able to apply the fiddle hack mentioned below, and got Homebrew working again.


Original issue

@claui
claui / # openjdk - 2020-07-07_12-28-36.txt
Created Jul 7, 2020
openjdk on macOS 11.0 - Homebrew build logs
View # openjdk - 2020-07-07_12-28-36.txt
Homebrew build logs for openjdk on macOS 11.0
Build date: 2020-07-07 12:28:36
@claui
claui / # x264 - 2020-07-01_07-39-34.txt
Created Jul 1, 2020
x264 on macOS 11.0 - Homebrew build logs
View # x264 - 2020-07-01_07-39-34.txt
Homebrew build logs for x264 on macOS 11.0
Build date: 2020-07-01 07:39:34