Skip to content

Instantly share code, notes, and snippets.

@iconoclasthero
iconoclasthero / gist:66fa7ea58cc934ae400b33d20f27b1de
Last active August 13, 2026 13:17
docker-ps is a colorized, human-readable version of `docker ps`
#!/bin/bash
# ☢=u+2622
: "${TERM:=xterm-256color}"
editscript(){
local scriptpath script path swp; scriptpath=$(realpath "$0" 2>/dev/null); script="${scriptpath##*/}"; path="${scriptpath%/*}"; swp="$path/.$script.swp"
[[ ! -e "$swp" ]] && printf "\n\n%s\n\n" "$swp" && (/usr/bin/nano "$scriptpath") && exit
printf "\n%s is already being edited.\n%s exists; try fg or look in another window.\n" "$scriptpath" "$swp"; exit ;}
@iconoclasthero
iconoclasthero / VNC_Server_On_Ubuntu_22.04LTS.md
Last active February 20, 2024 15:28 — forked from indyfromoz/VNC_Server_On_Ubuntu_22.04LTS.md
VNC Server setup on Ubuntu 22.04 LTS

Setup

Install TigerVNC -

$ sudo apt install tigervnc-standalone-server

Configure VNC Server by running

@iconoclasthero
iconoclasthero / inhibit esm.sh
Last active March 11, 2023 18:08
How to remove the fucking Canonical ESM messages upon Ubuntu terminal login:
#!/bin/bash
# see https://askubuntu.com/questions/1453749/inhibit-esm-messages-at-login
# for more reference
# worked on Ubuntu 22.x
scriptname="$(realpath $0)"
function removeesm(){
sudo sed -Ezi.orig \