Hotkeys

Firefox

Standard shortcuts are in Firefox shortcuts

Action keybinding
Copy the URL of the current page to clipboard βŒ₯ + C now using yy with Vimium



Obsidian

Action Shortcut
Open in external editor ⌘ + E
Export to PDF ⌘ + ⇧ + E
Pin tab ⌘ + .
Close all other panes ⌘ + ⇧ + W
Delete current file ⌘ + Backspace
Copy file path ⌘ + βŽ‡ + C
Open another vault ⌘ + ⇧ + O
Find unlinked files ⌘ + U
Focus on pane above ⌘ + ↑
Focus on pane below ⌘ + ↓
Focus on pane to the left ⌘ + βŽ‡ + ←
Focus on pane to the right ⌘ + βŽ‡ + β†’
Use dark mode βŽ‡ + D
Use light mode βŽ‡ + L
Toggle left sidebar βŽ‡ + ←
Toggle right sidebar βŽ‡ + β†’
Navigate back ⌘ + ←
Navigate forward ⌘ + β†’
Move file to another folder ⌘ + M
Toggle app ribbon ⌘ + ⇧ + ,
Toggle status bar βŒƒ + ⌘ + βŽ‡ + ,
Meld encrypt: Encrypt/Decrypt βŽ‡ + ⇧ + 4

Terminal

Useful terminal commands

change screenshot format

defaults write com.apple.screencapture type jpg
killall SystemUIServer

build a Jekyll website and deploy it

#!/bin/bash

JEKYLL_ENV=production bundle exec jekyll build
rsync -avr --rsh='ssh' --delete-after --delete-excluded _site/ username@IP.Add.re.ss:~/notes/_site

note: -avr could be -avz instead

Compress a file or a folder

zip -r -X archive-name.zip folder-to-compress

prevent sleep

caffeinate -i -t 3600

Change update interval

defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1

A quick for loop

for f in *.txt; do pandoc '$f' -s -o '${f%.txt}.rtf'; done

watch Star Wars - A New Hope in ASCII (not a joke)

nc towel.blinkenlights.nl 23

Erase disk

sudo diskutil eraseDisk /dev/disk2 

Disk space usage

du # dust

recursively count files in a directory

find . -type f | wc -l

Take a screenshot:

man screencapture


Resources



GPG

GnuPG Cheat Sheets:



sd

sd is a wonderful command-line tool to find and replace sub-strings in files. Its original version is sed, which comes by default in shell.

Replace foo with bar in all files inside pwd:

sd 'foo' 'bar' ./*



HTML proofer

HTML proofer is a Ruby script to check HTML quality of a local folder. It can both be used as a library and as a command line tool.

basic check of a Jekyll website

bundle exec htmlproofer --assume-extension --allow_hash_href --check_favicon --check_opengraph --check_html --check_img_http --http_status_ignore 429 --url_ignore '#!' --checks_to_ignore '#!' --report_eof_tags --report_invalid_tags --report_mismatched_tags --report_missing_names --report_script_embeds /Users/tommi/tommi.space/\_site # --report_missing_doctype

See HTML Proofer > Configuration for the complete parameters list.



Linux

linuxplosion > cheat sheet



Vim

vim > cheat sheet



Pandoc

pandoc > cheat sheet



Exiftool

exiftool > cheat sheet



FFMPEG

ffmpeg > cheat sheet

git

git > cheat sheet



![[Server Setup#Nextcloud Cheat Sheet]]

πŸ— WIP section πŸ› 

This section should contain a beautifull graph displaying the relations among this note and all of the others on tommi.space. Unfortunately, showing it requires great coding skills and I am still working on it.

Share

Commenti

Webmentions

No webmentions were found.