Skip to content

Instantly share code, notes, and snippets.

View broisnischal's full-sized avatar
🔥
broisblack

Nischal Dahal broisnischal

🔥
broisblack
View GitHub Profile
@broisnischal
broisnischal / docker-clean.sh
Created August 11, 2025 04:51
docker-script
#!/usr/bin/env bash
set -euo pipefail
VERSION="1.1.0"
SCRIPT_NAME="docker-clean"
SCRIPT_URL="https://gist.githubusercontent.com/broisnischal/4e8c5a7430e7a47eb7d5855762f471da/raw/docker-clean.sh"
# Colors
RED="\033[0;31m"
GREEN="\033[0;32m"
@broisnischal
broisnischal / docker-clean.sh
Created March 19, 2025 03:57
Clean up docker
# Stop all running containers
docker stop $(docker ps -q)
# Remove all containers
docker rm -f $(docker ps -aq)
# Remove all images
docker rmi -f $(docker images -aq)
# Remove all volumes
@broisnischal
broisnischal / .zshrc
Last active November 3, 2025 08:51
Zshrx
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
# Path to your Oh My Zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time Oh My Zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
{
"singleQuote": true,
"trailingComma": "all",
"tabWidth": 4,
"semi": true,
"printWidth": 100
}
# .tmux.conf
set -g mouse on
setw -g mode-keys vi
unbind C-b
set -g prefix C-a
bind C-a send-prefix
bind | split-window -h
bind - split-window -v
# .bashrc
export PATH=$HOME/bin:/usr/local/bin:$PATH
alias ll='ls -la'
alias gs='git status'
alias gc='git commit -m'
# Enable colors in terminal
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
{
"deno.lint": true,
"deno.format": true,
"deno.enable": true,
"deno.unstable": true,
"terminal.integrated.env.linux": {},
"console-ninja.featureSet": "Community",
"editor.fontFamily": "Consolas",
"editor.fontWeight": "300",
"editor.fontSize": 13,
[
{
"key": "ctrl+n",
"command": "explorer.newFile"
},
{
"key": "ctrl+shift+n",
"command": "explorer.newFolder"
},
{
@broisnischal
broisnischal / .gitconfig
Last active September 13, 2024 05:19
Git Config
[user]
email = [email protected]
name = broisnischal
[alias]
st = status -sb
co = checkout
ci = commit -m
lg = log --oneline --graph --decorate --all
ca = commit --amend --no-edit