Skip to content

Instantly share code, notes, and snippets.

View hammerill's full-sized avatar
🚘
learns to drive

Kirill hammerill

🚘
learns to drive
View GitHub Profile

FFmpeg Convert 1.jpg to .jpg

for file in *1.jpg; do ffmpeg -i "$file" "${file%1.jpg}".jpg && rm "$file"; done

Tmux Config

echo -e 'set -g status-bg black\nset -g status-fg white\n\nset -g base-index 1\nsetw -g pane-base-index 1' > ~/.tmux.conf
@hammerill
hammerill / chrome-open-in-mpv.md
Last active June 15, 2025 17:15
Chrome "Open in mpv"

Chrome "Open in mpv"

This is a detailed guide of adding a "Open in mpv" option to your right-click menu in Google Chrome (and potentially all Chromium-based browsers).

Prerequisites

  • The mpv player itself.
  • python3.
  • yt-dlp.
@hammerill
hammerill / pandoc-docker.md
Last active July 15, 2025 14:33
Pandoc Docker

Pandoc Docker

Instead of installing Pandoc directly on your machine (and possibly signing a contract to clean the ass of all its haskell dependencies) you can just use it with a Docker run script (accessible as pandoc from all the scripts).

~/.local/bin/pandoc:

#!/bin/bash

docker run --rm -v "$(pwd):/data:z" -u "$(id -u)":"$(id -g)" pandoc/extra "$@"
@hammerill
hammerill / mpv-config.md
Last active July 15, 2025 15:09
mpv Config

mpv Config

~/.config/mpv/mpv.conf:

# Avoid creating a window larger than the screen
autofit-larger=80%x80%

~/.config/mpv/input.conf: