Skip to content

Instantly share code, notes, and snippets.

@gistbucket
gistbucket / README.md
Created March 27, 2025 09:40 — forked from espinz/README.md
Debian Headless install - simple-cdd

Description

The following will create an automated custom debian iso image using simple-cdd.
Copy the iso to the USB. Plug in the USB and press power; it will automatically restart with a fresh debian install. No prompts, or typing required. Barebone and vm tested.

Jump to Code
Anchor links do not work on github gists. please scroll down.

Install the required package

@gistbucket
gistbucket / pueue.sh
Created February 12, 2025 19:22
Scripts For Getting Useful Cli Binaries
#!/bin/bash
# PUEUE: Manage/Save shell commands from CLI
echo "Getting Tool-- PUEUE: Manage Shell Commands From CLI"
wget https://github.com/Nukesor/pueue/releases/download/v4.0.0-rc.2/pueue-x86_64-unknown-linux-musl -O pueue
chmod +x pueue
sudo mv -v pueue /bin/pueue
sleep 1
echo " "
echo " "
echo " "
@gistbucket
gistbucket / install-fish-parrot.md
Created March 17, 2024 14:16 — forked from aol1306/install-fish-parrot.md
Installing fish on ParrotOS

Fish does not install normally with apt install fish on ParrotOS (as of 5.3), because of the following error:

trying to overwrite '/etc/fish/config.fish', which is also in package parrot-core 5.1.9

You can force overwrite of this file with:

cp /etc/fish/config.fish /tmp
@gistbucket
gistbucket / fancy-prompt.sh
Created February 10, 2024 18:46
Install fancy git prompt
curl -sS https://raw.githubusercontent.com/diogocavilha/fancy-git/master/install.sh | sh
@gistbucket
gistbucket / shell-menu.template.sh
Created January 16, 2024 23:00
multi choice menu shell script template
#!/usr/bin/env bash
echo " [1] - item1"
echo " [2] - item2"
echo " [3] - item3"
echo " [0] - Exit"
echo ""
read itemchoice
#!/usr/bin/env bash
# Switch between Ripgrep launcher mode (CTRL-R) and fzf filtering mode (CTRL-F)
rm -f /tmp/rg-fzf-{r,f}
RG_PREFIX="rg --column --line-number --no-heading --color=always --smart-case "
INITIAL_QUERY="${*:-}"
: | fzf --ansi --disabled --query "$INITIAL_QUERY" \
--bind "start:reload($RG_PREFIX {q})+unbind(ctrl-r)" \
--bind "change:reload:sleep 0.1; $RG_PREFIX {q} || true" \
--bind "ctrl-f:unbind(change,ctrl-f)+change-prompt(2. fzf> )+enable-search+rebind(ctrl-r)+transform-query(echo {q} > /tmp/rg-fzf-r; cat /tmp/rg-fzf-f)" \
7E1C-C5F6
bashCopy code#!/bin/bash
snippets_dir="$HOME/snippets" # Change this to your desired directory
# Create the snippets directory if it doesn't exist
mkdir -p "$snippets_dir"
# Prompt for the filename
read -p "Enter the filename for your snippet: " filename
@gistbucket
gistbucket / curl-run.txt
Last active February 10, 2024 08:51
get dotfiles from github
# Run Command Below
GIST_URL="https://gist.github.com/gistbucket/c0d7b7c243023496d5fa23dc02d9eb4e/raw/3f81016a2b2b730fc9650e830da977a7108ecb82/init-dotfiles.sh"
# With curl:
bash <(curl -sL ${GIST_URL})
@gistbucket
gistbucket / .unorganized-quick-save-function-list.sh
Last active February 13, 2023 16:46
[simple-dev-setups] Scripts for spinning up proxmox ct's with specific tools or env. Plus distrobox scripts for dev setups.
#!/bin/bash
script_build_only_functions() {
# Using grep -v '^#' | grep -v ' #' | tr -s '\n' strips away comments and blank lines.
## Use this to create a master-functions file per script include only functions used.
cat "$@" | grep -v '^#' | grep -v ' #' | tr -s '\n'
}
##=======================##========##===========##========##=======================##