Skip to content

Instantly share code, notes, and snippets.

@alfredtso
alfredtso / ovs+vxlan+lxd-lab.md
Created December 12, 2023 02:05 — forked from platu/ovs+vxlan+lxd-lab.md
VXLAN lab based on OpenVSwitch and lxd containers

% VXLAN lab based on OpenVSwitch and LXD containers


Preamble

The very first idea when I started writing this lab was to illustrate the Virtual Extensible LAN (VXLAN) technology. Now that OpenVSwitch configuration is smoothely integrated in the Debian networking configuration files, this should have resulted in somewhat easy-to-read gist.

@alfredtso
alfredtso / jq-cheetsheet.md
Created May 20, 2023 05:32 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@alfredtso
alfredtso / tools.txt
Last active May 12, 2023 04:09
tools in Linux
# User/Group managment
gpasswd --delete user group
# Bash
## For loop
for i in {1..5}; do echo "Hi, $i"; done
@alfredtso
alfredtso / actionlist.vim
Created October 6, 2022 02:45 — forked from zchee/actionlist.vim
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>
@alfredtso
alfredtso / gist:a836c04b9c0663709433eee80dc44434
Created April 19, 2019 11:51 — forked from kingbin/gist:9435292
Manually Start/Stop PostgresSQL on Mac
# Stop PostgreSQL from auto starting
sudo launchctl unload -w /Library/LaunchDaemons/com.edb.launchd.postgresql-9.3.plist
# Enable PostgreSQL to auto start
sudo launchctl load -w /Library/LaunchDaemons/com.edb.launchd.postgresql-9.3.plist
# Start postgres
$ sudo su postgres
Password:
bash-3.2$ pg_ctl -D /Library/PostgreSQL/9.3/data/ start