Skip to content

Instantly share code, notes, and snippets.

@tuomassalo
tuomassalo / add-vscode-css-tweaks.sh
Last active February 8, 2023 07:49
add numbers to vscode tabs
#!/bin/bash
# This script adds tab numbering and some other CSS tweaks to VSCode.
# NB:
# - The script needs to be re-run after each VSCode upgrade.
# - The script will cause VSCode to say "Installation appears to be corrupt". Just "Don't show again" it.
# - Since macos 13.2 (?) the terminal app needs the `App Management` permission under `Privacy & Security`.
# Allowing a blanket permission is far from optimal, but I haven't found workarounds.
# This gist lives at: https://gist.github.com/tuomassalo/7e703001f28bcdeb9cc09a28604ea587
@tuomassalo
tuomassalo / gist:ee556ed6d2d610decdc8
Created May 12, 2015 17:27
Command-line scanning for linux and osx:
# command-line scanning for linux and osx:
# (on osx) do this first:
# brew install imagemagick sane-backends poppler
scanimage --resolution 100 --contrast 11 --mode Gray | convert pnm:- -format A4 output.pdf