Podman on Mac M1
brew install podman
podman machine init
podman machine start
| if type brew &>/dev/null; then | |
| HOMEBREW_PREFIX=$(brew --prefix) | |
| NEWPATH=${PATH} | |
| # gnubin; gnuman | |
| for d in ${HOMEBREW_PREFIX}/opt/*/libexec/gnubin; do NEWPATH=$d:$NEWPATH; done | |
| # I actually like that man grep gives the BSD grep man page | |
| #for d in ${HOMEBREW_PREFIX}/opt/*/libexec/gnuman; do export MANPATH=$d:$MANPATH; done | |
| export PATH=$(echo ${NEWPATH} | tr ':' '\n' | cat -n | sort -uk2 | sort -n | cut -f2- | xargs | tr ' ' ':') | |
| fi |
| [alias] | |
| # View abbreviated SHA, description, and history graph of the latest 20 commits | |
| l = log --pretty=oneline -n 20 --graph --abbrev-commit | |
| # View the current working tree status using the short format | |
| s = status -s | |
| # Show the diff between the latest commit and the current state | |
| d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat" |
| # : << EOF | |
| # https://github.com/gpakosz/.tmux | |
| # (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license, | |
| # without any warranty. | |
| # Copyright 2012— Gregory Pakosz (@gpakosz). | |
| # -- bindings ------------------------------------------------------------------ | |
| # preserve tmux stock bindings, |
| # Oh My Zsh configuration | |
| # Path to your oh-my-zsh installation. | |
| export ZSH="$HOME/.oh-my-zsh" | |
| ZSH_CACHE_DIR="$HOME/.cache/ohmyzsh" | |
| mkdir -p "$ZSH_CACHE_DIR" | |
| # ZSH_THEME="robbyrussell" # Unneeded since we're using Starship | |
| # Uncomment the following lines for additional options | |
| # CASE_SENSITIVE="true" |
| shell-integration = zsh | |
| initial-command = /bin/zsh | |
| theme = Dracula | |
| background-opacity = 0.97 | |
| keybind = cmd+a=text:\x01 | |
| keybind = cmd+b=text:\x02 | |
| keybind = cmd+c=copy_to_clipboard | |
| keybind = cmd+d=text:\x04 |
| #!/bin/bash | |
| # /etc/network/if-pre-up.d/sysctl-ipv6 | |
| # Disable IPv6 auto configuration on Ubuntu because of some bugs | |
| # https://bugs.launchpad.net/ubuntu/+source/linux/+bug/997605 | |
| # IPv6 Privacy extensions | |
| sysctl -w net.ipv6.conf.all.use_tempaddr=0 | |
| sysctl -w net.ipv6.conf.default.use_tempaddr=0 | |
| sysctl -w net.ipv6.conf.${IFACE}.use_tempaddr=0 |
| # Namespace / Service | |
| - A pod can access a service in its own namespace by just using service name. | |
| A pod can access a service in a different namespace by using below format. | |
| <svc-name>.<ns-name>.<svc>.<cluster.local> | |
| e.g db-service.dev.svc.cluster.local | |
| - When a service is created, a DNS entry is added automatically in this format: | |
| db-service.dev.svc.cluster.local | |
| Here db-service is service name, dev is namespace, svc represents service and cluster.local is domain. | |
| sudo bash -c 'echo -e "LANG=en_US.utf-8\nLC_ALL=en_US.utf-8" > /etc/environment |
| # Configuration file for libinput-gestures. | |
| # | |
| # The default configuration file exists at /etc/libinput-gestures.conf | |
| # but a user can create a personal custom configuration file at | |
| # ~/.config/libinput-gestures.conf. | |
| # | |
| # Lines starting with '#' and blank lines are ignored. Currently | |
| # "gesture" and "device" configuration keywords are supported as | |
| # described below. The keyword can optionally be appended with a ":" (to | |
| # maintain compatibility with original format configuration files). |