Skip to content

Instantly share code, notes, and snippets.

View nx10's full-sized avatar

Florian Rupprecht nx10

  • Child Mind Institute
  • Manhattan, New York
  • 07:29 (UTC -04:00)
View GitHub Profile
@nx10
nx10 / .pre-commit-config.yaml
Created December 5, 2023 19:06
[pre-commit hook] Prefer YAML file extension .yaml over .yml
- repo: local
hooks:
- id: yaml-file-extension
name: Prefer .yaml over .yml.
entry: YAML files must have .yaml extension.
language: fail
files: \.yml$
@nx10
nx10 / chrome-dark-fix.sh
Created May 18, 2023 14:51
Ubuntu chrome dark mode patcher
#!/bin/bash
if (($EUID != 0)); then
if [[ -t 1 ]]; then
sudo "$0" "$@"
else
exec 1>output_file
gksu "$0 $@"
fi
exit