Skip to content

Instantly share code, notes, and snippets.

@folke
folke / apropos.fish
Created October 1, 2020 12:34
Using `apropos` on macos rebuilds the whatis database every time. Fish shell uses apropos for command completion.
# Fixes extremely slow apropos command on macos
# Using `apropos` on macos rebuilds the whatis database every time.
# Fish shell uses apropos for command completion.
# Simply add the file below to `~/.config/fish/conf.d` to fix the issue
set db ~/.whatis.db
function apropos_update
echo "Updating apropos / whatis database at $db"
man --path | tr ":" " " | xargs /usr/libexec/makewhatis -o $db
@ericardomuten
ericardomuten / cern-summerstudent-badge.md
Last active August 23, 2021 06:42
CERN Summer Student GitHub & GitLab Badge

CERN Summer Student GitHub & GitLab Badge

This code is for CERN Summer Students or CERN openlab Summer Students that might want to use (please consult with your supervisor first) the badge provided here for their project repo's README. The code should work for both GitHub and GitLab (thanks to Julia Jansson for testing the code on GitLab!).

Wish you a memorable and productive summer! 🔬🌞🥳

Some information regarding the badge:

  • These badges are created with shields.io.
  • The blue color on the badge follows the CERN Design Guidelines.
  • The logo also follows the CERN Design Guidelines but with some edits (making the lines thicker) as CERN's logo is very complex. The logo is unrecognizable with the default line thickness (I tried and it didn't look good).