Skip to content

Instantly share code, notes, and snippets.

View michaeldebetaz's full-sized avatar

Michael Debétaz michaeldebetaz

View GitHub Profile
# Display more rows and columns of the DataFrame
def display_all(df, n_rows=1000, n_cols=1000):
with pd.option_context("display.max_rows", n_rows, "display.max_columns", n_cols):
display(df)
# Requires ffmpeg
#!/bin/bash
for file in *mkv; do
filename="${file%.*}"
echo "$filename"
ffmpeg -i "$file" -vn -an -codec:s srt "$filename.srt"
done
@michaeldebetaz
michaeldebetaz / catppuccin
Last active July 18, 2025 15:55
Windows Git Bash Terminal Catppuccin Theme
# Based on the Catppuccin theme for kitty
# source https://github.com/catppuccin/kitty/blob/main/themes/mocha.conf
# Add this file to your Git Bash Terminal theme directory
# (e.g. C:\Program Files\Git\usr\share\mintty\themes).
# Open Git Bash, right click on the terminal top bar and go to
# Options../Looks/Theme to select the theme
ForegroundColour=205,214,244
BackgroundColour=30,30,46
Black=69, 71, 90