Navigation Menu

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

Keybase proof

I hereby claim:

  • I am claui on github.
  • I am claudi (https://keybase.io/claudi) on keybase.
  • I have a public key ASDIMlkjQa0MVxXN1uF2VuocWhTp3IAo-bnwjVRtuU6SPwo

To claim this, I am signing this object:

@claui
claui / airmail_beta_migrate
Created May 9, 2019 10:23
Migrate Airmail Beta data to Airmail 3
#!/bin/bash
set -eu;
echo >&2 'Quitting Airmail 3'
osascript -e 'tell app "Airmail 3" to quit'
echo >&2 'Quitting Airmail Beta'
osascript -e 'tell app "Airmail Beta" to quit'
echo >&2 'Asserting that Airmail Beta data is available'
@claui
claui / # x264 - 2020-07-01_07-39-34.txt
Created July 1, 2020 05:39
x264 on macOS 11.0 - Homebrew build logs
Homebrew build logs for x264 on macOS 11.0
Build date: 2020-07-01 07:39:34
@claui
claui / fix-bundle-install-on-macOS-cannot-load-such-file-rubygems-format-load-error.md
Last active October 6, 2020 17:54
Fixing `bundle install` on macOS if it fails with `cannot load such file -- rubygems/format (LoadError)`

Fixing bundle install on macOS if it fails with cannot load such file -- rubygems/format (LoadError)

On macOS, chances are that bundle install … fails with the following error:

/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- rubygems/format (LoadError)
       /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
       /Library/Ruby/Gems/2.0.0/gems/bundler-1.2.3/lib/bundler/source.rb:5:in `<top (required)>'
       /Library/Ruby/Gems/2.0.0/gems/bundler-1.2.3/lib/bundler/dsl.rb:21:in `initialize'
 /Library/Ruby/Gems/2.0.0/gems/bundler-1.2.3/lib/bundler/dsl.rb:6:in `new'
@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"
@claui
claui / # openjdk - 2020-07-07_12-28-36.txt
Created July 7, 2020 10:30
openjdk on macOS 11.0 - Homebrew build logs
Homebrew build logs for openjdk on macOS 11.0
Build date: 2020-07-07 12:28:36
@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 / Please help me get Homebrew working again on the DTK.md
Last active February 24, 2022 22:19
[SOLVED] Please help me get Homebrew working again on the DTK

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 / 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-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"