In macOS, the home Assistant OS disk Image cannot be mount automatically. The system will propt a Mount Error alert.
To solve this problem, we need to mount the disk manuelly.
#!/usr/bin/env python3 | |
# znp-uart-test | |
# | |
# Use this script as a sanity check after you burn the ZNP coordinator | |
# firmware on your zzh stick. | |
# | |
# !! Before you run this script, make sure you flash the | |
# latest Z-Stack Coordinator firmware on your zzh stick. | |
# |
// ==UserScript== | |
// @name Remove vbird background image | |
// @namespace http://tampermonkey.net/ | |
// @version 0.0.1 | |
// @description Remove vbird background image for better dark theme quality using dark reader | |
// @author Lester Lo | |
// @match http://linux.vbird.org/* | |
// @require http://code.jquery.com/jquery-3.4.1.min.js | |
// ==/UserScript== |
Below table listed the HiDPI resolution on all apple device.
Mac Display Type | Air/Pro 13" (Intel) | Air/Pro 13" (M1) | Pro 16" | iMac 21.5" | iMac 27" | Pro Display XDR |
---|---|---|---|---|---|---|
Monitor Size | 13 inch | 13 inch | 16 inch | 21.5 inch | 27 inch | 32 inch |
Native Resolution | 2560 x 1600 | 2560 x 1600 | 3072 x 1920 | 4096 × 2304 | 5120 x 2880 | 6016 x 3384 |
HiDPI Level 1 | 1024 x 640 | 1024 x 640 | 1152 x 720 | 1280 x 720 * | 1600 x 900 * | 1504 x 846 * |
HiDPI Level 2 | 1280 x 800 | 1280 x 800 | 1344 x 840 | 1680 x 945 * | 2048 x 1152 * | 1920 x 1080 * |
HiDPI Level 3 | 1440 x 900 | 1440 x 900 | 1536 x 960 | 2048 x 1152 | 2560 x 1440 | 2560 x 1440 * |
HiDPI Level 4 | 1680 x 1050 | 1680 x 1050 | 1792 x 112 |
#!/bin/bash | |
sudo rm /usr/share/man/man1/vncviewer.1 | |
sudo rm /usr/share/man/man1/vncaddrbook.1 | |
sudo rm /usr/share/man/man1/vncserver-x11.1 | |
sudo rm /usr/share/man/man1/Xvnc.1 | |
sudo rm /usr/share/man/man1/vncserver-virtual.1 | |
sudo rm /usr/share/man/man1/vncserver-virtuald.1 | |
sudo rm /usr/share/man/man1/vncserver-x11-serviced.1 | |
sudo rm /usr/share/man/man1/vncpasswd.1 | |
sudo rm /usr/share/man/man1/vnclicense.1 |
# Change ACT LED to display SDCard R/W status | |
dtparam=act_led_trigger=mmc0 | |
dtparam=act_led_activelow=off | |
# Change PWR LED to display OS error | |
dtparam=pwr_led_trigger=panic | |
dtparam=pwr_led_activelow=off |
#prompt setting | |
PROMPT="%{$fg_bold[yellow]%}%c " #show the current folder name | |
PROMPT+="%(?:%{$fg_bold[green]%}>:%{$fg_bold[red]%}>) %{$reset_color%}" | |
RPROMPT=' $(git_prompt_info)' | |
#git setting | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[cyan]%}[" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg_bold[red]%}*%{$reset_color%}%{$fg[cyan]%}]" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[cyan]%}]" |
# nvidia-docker run -ti nvidia/cuda:7.0-devel-centos7 | |
yum update | |
yum install epel-release | |
yum install gcc gcc-c++ git vim python-devel python-pip make cmake \ | |
blas-devel lapack-devel openblas-devel \ | |
protobuf-devel leveldb-devel snappy-devel opencv-devel boost-devel hdf5-devel gflags-devel glog-devel lmdb-devel libjpeg-devel libpng-devel | |
# Too old: | |
# yum install Cython scipy python-matplotlib |