Skip to content

Instantly share code, notes, and snippets.

@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active October 31, 2024 22:27
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@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