Skip to content

Instantly share code, notes, and snippets.

View espinz's full-sized avatar

Francisco Espinoza espinz

  • USA
View GitHub Profile
@espinz
espinz / delete1M.sh
Created April 28, 2019 06:53
How to delete too many files
find . -type f -exec rm -rf {} \;
@espinz
espinz / README.md
Last active December 7, 2025 00:59
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

@espinz
espinz / keytoremote.sh
Created April 16, 2019 07:45
Copy a local public key into a remote host
# Useful snippet: copy a public key into a remote host
cat .ssh/id_rsa.pub | ssh usr@target 'cat >> .ssh/authorized_keys'
@espinz
espinz / hello.sh
Created February 26, 2019 10:09
Running Hello World with echo
#!/bin/bash
echo hello world!
@espinz
espinz / delete.sh
Created February 19, 2019 14:19
Delete everything in a git folder
find . -maxdepth 1 ! -name "*.git*" -exec rm -rf \{\} \;
@espinz
espinz / comment.sh
Created February 13, 2019 10:41
A multi-line comment
: << "END"
This is a heredoc.
Line one
and
Line two.
END