Skip to content

Instantly share code, notes, and snippets.

@micksmix
micksmix / userChrome.css
Created June 23, 2023 18:05 — forked from hallettj/userChrome.css
Customize Firefox Quantum to hide tab bar, and to hide navigation bar when it is not focused. Press Ctrl+L to reveal navigation bar. To make this work you must open about:config and set toolkit.legacyUserProfileCustomizations.stylesheets to true with. This version is tested with Firefox v78.
@-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) {
@micksmix
micksmix / heic_to_jpeg.sh
Created September 7, 2022 04:02 — forked from ccnokes/heic_to_jpeg.sh
Bash script that converts .HEIC to .jpg files
#!/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]"
@micksmix
micksmix / aws_cli_pyenv
Created August 19, 2020 19:42 — forked from sjjohansen/aws_cli_pyenv
Adding AWS CLI in Python Virtualenv on MacOS X
# 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
#
# This is a little script to populate Firefox Sync with
# fake password records. Use it like so:
#
# $> pip install PyFxA syncclient cryptography
# $> python ./upload_fake_passwords.py 20
#
# It will prompt for your Firefox Account email address and
# password, generate and upload 20 fake password records, then
# sync down and print all password records stored in sync.