Skip to content

Instantly share code, notes, and snippets.

View nx10's full-sized avatar

Florian Rupprecht nx10

  • Child Mind Institute
  • Manhattan, New York
  • 02:10 (UTC -04:00)
View GitHub Profile
// ==UserScript==
// @name Overleaf Code Editor: Dark Scrollbar
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Adds a dark scrollbar to the Overleaf Code Editor
// @author nx10
// @license MIT
// @match https://www.overleaf.com/project/*
// @run-at document-start
// ==/UserScript==
@nx10
nx10 / overleaf-fira-code.user.js
Created November 7, 2024 20:17
Overleaf Code Editor: Fira Code with Ligatures
// ==UserScript==
// @name Overleaf Code Editor: Fira Code with Ligatures
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Apply Fira Code with ligatures to Overleaf's code editor
// @author nx10
// @license MIT
// @match https://www.overleaf.com/project/*
// @grant GM_addStyle
// ==/UserScript==
@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