Skip to content

Instantly share code, notes, and snippets.

@guimondmm
guimondmm / !README.md
Created November 21, 2024 02:13
How to fix LuaTeX/LuaLaTeX font cache not updating and documents compiling extremely slowly after installing large fonts

Fix for LuaLaTeX hanging after installing large fonts

TL;DR:

In a terminal, do:

luaotfload-tool -ufvvv
@guimondmm
guimondmm / Conversation Inuit.cue
Created November 14, 2024 21:09
Conversation Inuit / Inuktitut Uqariursautiit: Métadonnées pour le contenu audio supplémentaire
CATALOG 9782763773179
REM GENRE Audiobook
REM DATE 1993
REM COMMENT "https://www.pulaval.com/contenus-supplementaires/Conversation_Inuit.zip"
PERFORMER "Lizzie Puttaajuk, Amalie Sivuaq, Luisa Kanarjuaq, Paulusi Naujaq, Santi Qarqaajuk, Maaki Qarqaajuk, Iva Sakiagaq, Aita Saviarjuk"
TITLE "Conversation Inuit / Inuktitut Uqariursautiit"
FILE "01 Piste 01.mp3" MP3
TRACK 01 AUDIO
TITLE "Leçon 1: Retour à la maison"
PERFORMER "Miaji, son mari Aatami, leurs deux enfants et Paasa, une amie"
{
"name": "Cobalt2",
"cursorColor": "#F4D300",
"selectionBackground": "#1F4562",
"background": "#173448",
"foreground": "#FFFFFF",
"black": "#000000",
"red": "#FF2600",
"green": "#3DDF2B",
"yellow": "#F4D300",
@guimondmm
guimondmm / bartender4_heard.sh
Created September 25, 2023 22:19
Bartender 4 "show for update" trigger script for Background Sounds (macOS 13 Ventura or newer)
lsof -NPp $(pgrep -xo heard) 2>/dev/null | grep -cm1 com_apple_MobileAsset_ComfortSoundsAssets
@guimondmm
guimondmm / Anaconda PowerShell Prompt in Windows Terminal settings.json
Last active April 6, 2025 05:35
Add an "Anaconda PowerShell Prompt" profile to Windows Terminal. Just paste it in your settings.json file.
{
"colorScheme": "Campbell",
"commandline": "pwsh.exe -ExecutionPolicy ByPass -NoExit -Command \"& '%USERPROFILE%\\anaconda3\\shell\\condabin\\conda-hook.ps1' ; conda activate '%USERPROFILE%\\anaconda3' \"",
"guid": "{e7d34d61-5a57-4f38-8eab-91cb777b0c26}",
"hidden": false,
"icon": "%USERPROFILE%\\anaconda3\\Menu\\anaconda-navigator.ico",
"name": "Anaconda PowerShell Prompt",
"startingDirectory": "%USERPROFILE%"
}
@guimondmm
guimondmm / jupyter-notebook.code-workspace
Created June 10, 2022 16:27
VS Code workspace template for Jupyter notebooks: a mix of "sane" defaults and personal preferences (edit as needed)
{
"folders": [
{
"path": "."
}
],
"settings": {
"editor.bracketPairColorization.enabled": false,
"editor.fontFamily": "Iosevka, Consolas, 'Courier New', monospace",
"editor.fontLigatures": true,
@guimondmm
guimondmm / bartender4istatmenus6battery.sh
Last active May 31, 2022 22:02
Bartender 4 "show for update" trigger script for iStat Menus 6 battery icon (macOS 11 Big Sur)
pmset -g batt | grep -c "Now drawing from 'Battery Power'"
@guimondmm
guimondmm / ignoreCatalina.sh
Created February 2, 2020 21:59
Ignore upgrade to macOS 10.15 Catalina + dismiss notification badge and delete already downloaded files
# Ignore the upgrade and dismiss the notification badge
killall "System Preferences"
sudo softwareupdate --ignore "macOS Catalina"
defaults delete com.apple.preferences.softwareupdate LatestMajorOSSeenByUserBundleIdentifier
softwareupdate -l
# Check the size of the Updates folder
du -sh /Library/Updates/
# To reclaim some of that space, reboot into macOS Recovery (hold ⌘-R at boot)
@guimondmm
guimondmm / build-scummvm.bash
Last active October 25, 2019 06:59
Build ScummVM for Nintendo 3DS on macOS
#!/usr/bin/env bash
# Build ScummVM for Nintendo 3DS on macOS
set -e # exit on errors
sudo -K # reset sudo credentials
SCUMMVM_VERSION='v2.1.0' # tagged version of ScummVM (tested with v2.1.0)
FORMAT='cia' # 3dsx or cia
# (Un)comment the lines below to (de)select engines as needed
@guimondmm
guimondmm / noheadingrefsegment.tex
Last active November 25, 2018 15:05
Segmented bibliography with BibLaTeX and untitled sections (no heading)
% Untitled section (no heading, e.g., Introduction):
\makeatletter\def\@currentlabelname{Introduction}\makeatother\newrefsection%
% Result: the label "Introduction" is not printed in the text but appears in the segmented bibliography
% Regular section with a heading:
\section*{Heading}\newrefsection%
% Result: the label "Heading" is printed above the paragraph as usual and also appears in the bibliography.
% Towards the end of the document, to print the segmented bibliography:
\defbibheading{subbibliography}{%