This file contains hidden or 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
| # use ImageMagick convert | |
| # the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf | |
| convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf |
This file contains hidden or 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
| @-moz-document url(chrome://browser/content/browser.xul), | |
| url(chrome://browser/content/browser.xhtml) { | |
| /* hide horizontal tabs at the top of the window */ | |
| #TabsToolbar > * { | |
| visibility: collapse; | |
| } | |
| /* hide navigation bar when it is not focused; use Ctrl+L to get focus */ | |
| #main-window:not([customizing]) #navigator-toolbox:not(:focus-within):not(:hover) { |
This file contains hidden or 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 | |
| set -eu -o pipefail | |
| count=$(find . -depth 1 -name "*.HEIC" | wc -l | sed 's/[[:space:]]*//') | |
| echo "converting $count files .HEIC files to .jpg" | |
| magick mogrify -monitor -format jpg *.HEIC | |
| echo "Remove .HEIC files? [y/n]" |
This file contains hidden or 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
| # create a directory for you Python Virtual Environments | |
| mkdir -p ~/pyenvs | |
| # create one for the AWS cli then install the CLI | |
| virtualenv ~/pyenvs/aws | |
| ~/pyenvs/aws/bin/pip install awscli | |
| ~/pyenvs/aws/bin/pip install boto |