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?
Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.
Note: many newer Keychron keyboards use QMK as firmware and most tips here do not apply to them. Maybe the ones related to Bluetooth can be useful, but everything related to Apple's keyboard module (hid_apple) on Linux, won't work. As far as I know, all QMK-based boards use the hid_generic module instead. Examples of QMK-based boards are: Q, Q-Pro, V, K-Pro, etc.
Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.
Older Keychron keyboards (those not based on QMK) use the hid_apple driver on Linux, even in the Windows/Android mode, both in Bluetooth and Wired modes.
| #!/bin/bash | |
| # Auto rotate screen based on device orientation | |
| # based on https://linuxappfinder.com/blog/auto_screen_rotation_in_ubuntu | |
| # install | |
| # 1. apt-get install iio-sensor-proxy inotify-tools | |
| # 2. add script to autostart | |
| # Receives input from monitor-sensor (part of iio-sensor-proxy package) | |
| # Screen orientation and launcher location is set based upon accelerometer position |
These are some simple bash functions and scripts for making CSV/TSV files prettier on the command line
see http://stefaanlippens.net/pretty-csv.html for more information.
| def sliding_window(data, size, stepsize=1, padded=False, axis=-1, copy=True): | |
| """ | |
| Calculate a sliding window over a signal | |
| Parameters | |
| ---------- | |
| data : numpy array | |
| The array to be slided over. | |
| size : int | |
| The sliding window size |