Skip to content

Instantly share code, notes, and snippets.

View nhthai2005's full-sized avatar

Thai H. NGUYEN (Bob) nhthai2005

View GitHub Profile

How to run Docker inside LXD containers

Create LXD Container

Docker will not run well with the default zfs file system

lxc storage create docker btrfs
lxc launch images:ubuntu/20.04 demo
lxc storage volume create docker demo
lxc config device add demo docker disk pool=docker source=demo path=/var/lib/docker
lxc config set demo security.nesting=true security.syscalls.intercept.mknod=true security.syscalls.intercept.setxattr=true
@nhthai2005
nhthai2005 / install_zsh_all_in_one.md
Last active April 12, 2024 12:42
How to install Zsh, Oh-my-zsh, powerlevel10k and zsh plugins on Ubuntu

Howto install Zsh, Oh-my-zsh, powerlevel10k and zsh plugins on Ubuntu

Install zsh

sudo apt install zsh -y

Install Oh-my-zsh

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Download and install necessary fonts

@nhthai2005
nhthai2005 / install_tools_ubuntu.sh
Last active December 28, 2023 23:05
Install neccessary tools and configure something on Ubuntu
#!/bin/bash
sudo add-apt-repository ppa:bamboo-engine/ibus-bamboo
sudo apt-get update
# Install all necessary tools with the following command
sudo apt install vim htop terminator meld glogg curl git totem keepass2 \
kazam ksnip maven remmina libreoffice network-manager-l2tp-gnome \
ibus-bamboo gnome-calendar gnome-weather gnome-clocks \
qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager -y; \
@nhthai2005
nhthai2005 / vcard.html
Last active December 13, 2022 07:08
vCard HTML Template. Designed by Nguyen Hong Thai
<html>
<head>
<!--vCard HTML Template. Designed by Nguyen Hong Thai
Go to https://nhthai2005.github.io/contacts.htm to see demo-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Nguyễn Hồng Thái (Shant) - Name Card - vCard via Links and QR</title>
<link rel="shortcut icon" type="image/png" href="data/nguyen-hong-thai-circle-cropped.png">
<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
.avatar {