Configure client your_client.ovpn
file,
# redirect all default traffic via the VPN
redirect-gateway def1
On Unix or Linux, it's easy to gracefully kill a application by sending it the SIGTERM
signal. If its process ID is 1234, you can simply run kill 1234
or kill -s TERM 1234
or kill -15 1234
.
Inside target-killed application, you receive the SIGTERM
signal, clean up(such as data backup,...etc) and exit.
A simple python solution,
from How to write a Makefile with separate source and header directories?
c project directory structure like,
.
├── include
│ └── all .h files
├── lib
│ └── all third-party library files (.a/.so files) here
On Apple silicon, arm app is running as native binary and x86_64 app is translated by Rosseta before executing.
❯ clang -o arm_proc_translated proc_translated.c -target arm64-apple-macos11
❯ clang -o x86_64_proc_translated proc_translated.c -target x86_64-apple-macos11
❯ lipo -create -output universal_proc_translated x86_64_proc_translated arm_proc_translated
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block; everything else may go below. | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH |
Customize powerlevel10k OS_Icon to Prompt Whether in arm64
or x86_64
Termial in Apple Silicon #Apple Silicon.
Configure ~/.p10k.zsh
:
# Custom icon.
if [[ "$(uname)" == "Darwin" ]]; then
typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION="$(uname -m) $(print_icon 'APPLE_ICON')" #'⭐'