This assumes you have installed [fzf][1].
$ git branch --no-color | fzf -m | xargs -I {} git branch -D '{}'
Press tab
to mark a branch, shift-tab
to unmark. Press enter
and all marked branches will be deleted.
This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.
Description | Syntax |
---|---|
Get the length of a string | ${#VARNAME} |
Get a single character | ${VARNAME[index]} |
It is the year 2020 and replicating APFS containers still sucks. One would expect it would be a simple copy and paste in the Disk Utility app but this is still far from reality.
Last year I wrote how I managed to clone my macOS system under Catalina.
The main trick was to create a DMG file with multiple volumes, mount it on target machine and drop to command-line to do asr restore
from synthetised disk while avoiding possible pitfalls.
The good news is that Apple devs definitely worked on improving this under Big Sur and added some documentation (see man asr
).
But I didn't understand it fully on first read. Maybe someone could explain how is this supposed to work?
btrfs fi show -d | |
(/dev/mapper/vg1000-lv) | |
syno_poweroff_task -d | |
(or: umount /volume1) | |
(or2: umount /volume1 -f -k) | |
Check to see if all us unmounted: | |
df -h |
version: "3" | |
services: | |
prometheus: | |
image: prom/prometheus | |
volumes: | |
- /opt/docker-persist/prometheus/data:/prometheus-data | |
ports: | |
- 9090:9090 | |
restart: always | |
command: --config.file=/prometheus-data/prometheus.yml |
A collection of information about accessing raw MultiTouch events on MacOS.
about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar.
Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and
rendering normally. Some settings may also make firefox unstable.
I am not liable for any damages/loss of data.
Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions
(HTTPS Everywhere No longer required: Enable HTTPS-Only Mode, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".
Short version: I strongly do not recommend using any of these providers. You are, of course, free to use whatever you like. My TL;DR advice: Roll your own and use Algo or Streisand. For messaging & voice, use Signal. For increased anonymity, use Tor for desktop (though recognize that doing so may actually put you at greater risk), and Onion Browser for mobile.
This mini-rant came on the heels of an interesting twitter discussion: https://twitter.com/kennwhite/status/591074055018582016