This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |