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

@aol1306
aol1306 / install-fish-parrot.md
Created June 4, 2023 17:11
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
@ithilelda
ithilelda / PXE boot with GRUB2.md
Last active August 9, 2025 17:00
actually working pxe boot with grub2 on bios (client setup)

PXE Boot Setup with GRUB2 Tutorial

There are many tutorials on the internet that tell you how to setup a PXE Boot server with PXELINUX. There are however other options to replace PXELINUX like GRUB2 and iPXE. In this tutorial, I'm going to teach you how to setup a PXE Boot Environment with GRUB2, and later add menu entries to boot many popular OSes.

Notice: I'm not going to repeat the part where you setup the DHCP and TFTP server. Such section in other tutorials still applies to this scenario.

Making the GRUB2 image to be loaded by NIC

think the GRUB2 image as the same as PXELINUX's pxelinux.0 file. Your DHCP server must point to it, and it must be available on your TFTP server. Instead of shoving a blob down your throat and telling you that it just works, I'm going to walk you through the process of making one yourself by using an readily available linux installation.

@gistbucket
gistbucket / zsh configuration.sh
Last active April 28, 2024 10:16 — forked from grammy-jiang/zsh configuration.sh
zsh configuration
#!/usr/bin/env bash
echo "Install dependencies now..."
sudo -- sh -c "apt update && apt install -y curl fzf gawk git python3-pygments sqlite3 ssh-askpass wget zsh"
if [ -f ~/.zshrc ]; then
mv ~/.zshrc ~/.zshrc.$(date +%s).bak
fi
if [ -d ~/.oh-my-zsh ]; then
echo "Oh My ZSH exists, update it now..."
git -C ~/.oh-my-zsh pull
@gistbucket
gistbucket / 5_deploy-helpers.functions.sh
Last active July 27, 2022 15:43 — forked from rdmarsh/rdmfuncs.sh
include>>Deploy.sh. Standard shell script functions
#!/usr/bin/env bash
########################################
###
########################################
########################################
###
###
###
@gistbucket
gistbucket / $ remember where you were.gif
Created July 27, 2022 15:01 — forked from RafaelKuhn/$ remember where you were.gif
🚀 Productivity shell functions
$ remember where you were.gif
@gistbucket
gistbucket / run-docker-container.sh
Created March 12, 2022 22:01 — forked from clcollins/run-docker-container.sh
Bash script to easily setup and run Docker containers to test any given project
#!/bin/bash
# Set to true to just see what command
# would be run
DRY_RUN=false
TITLE='MY-TEST-CONTAINER'
IMAGE='MY-IMAGE'
# Local volume to be mapped into the container any time you run it
# usually with config files or whatnot
@Voronenko
Voronenko / Bash Script Header.sh
Created November 11, 2021 15:06
bash bash bash
#!/bin/bash
#!/usr/bin/env bash
@Robokishan
Robokishan / expand-pi-image.sh
Last active June 13, 2025 11:03
Expand pi image
#sudo bash expand-pi-image.sh <img-file>
#sudo setup-chroot.sh <img-file>
#run changes and type exit
if [ "$1" ]; then
real_file_path=`realpath "${1}"`
echo "Img File: ${real_file_path}"
dd if=/dev/zero bs=1M count=1024 >> $real_file_path
sudo kpartx -v -a $real_file_path
loop_device=`losetup --list | grep "${real_file_path}" | cut -d ' ' -f1 | cut -d'/' -f3`
echo "Loop Device => /dev/${loop_device}"
@RichardBronosky
RichardBronosky / README.md
Last active August 17, 2023 15:34
A bash plugin to make files executable

bash-plusx

A bash plugin to make files executable

Installation

Set up bash_plugins folder

(Skip this step if you already have a bash_plugins folder.)

{
# simply copy-pasta this whole block, or customize these vars and copy-pasta the rest