Skip to content

Instantly share code, notes, and snippets.

@n1snt
n1snt / zsh_setup.md
Last active March 11, 2026 18:24
Oh my ZSH 2026 updated setup guide

Oh my zsh Setup (Fast + Minimal)

Oh My Zsh

Install Zsh

Ubuntu

sudo apt update
sudo apt install zsh curl git
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active March 12, 2026 05:42
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
@n1snt
n1snt / iommu.sh
Created February 26, 2021 19:58
A simple bash script to get the list of iommu groups & the devices in those iommu groups.
#!/bin/bash
for d in /sys/kernel/iommu_groups/*/devices/*; do
n=${d#*/iommu_groups/*}; n=${n%%/*}
printf 'IOMMU Group %s ' "$n"
lspci -nns "${d##*/}"
done
@n1snt
n1snt / docker_install.sh
Created February 26, 2021 19:57
A simple shell script to install and setup docker on ubuntu & ubuntu based distros.
echo"Removing docker if installed...."
sudo apt-get -y remove docker docker-engine docker.io containerd runc
echo"Updating..."
sudo apt-get -y update && sudo apt-get -y upgrade
echo"Installing docker dependencies"
sudo apt-get -y install \
apt-transport-https \
ca-certificates \
@n1snt
n1snt / bash-to-zsh-hist.py
Created December 19, 2020 18:30 — forked from muendelezaji/bash-to-zsh-hist.py
Convert Bash history to Zsh history
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This is how I used it:
# $ cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history
import sys
import time