a loose-leaf binder of my assorted scripts which I like being able to access via github.
also now... not all Bourne Again SHell scripts.
by @zudsniper
I find myself often in the situation where I wish I had a script I wrote in the past available easily -- and indeed, not entirely lost to time. The purpose of this repository is to keep this situation from occuring as best as possible. The focus is on bash
scripts, and UNIX environments, but this is not enforced1 and has never been a hard-and-fast rule anyway.
This project is pretty much entirely self-serving, but perhaps it can help others in some way at some point. If you find yourself using it, let me know. That would be neat. If you want to contribute, see CONTRIBUTING, and thanks!
- 🔗
bashrc.zod.tf
a direct link to my~/.bashrc
file(always a work in progress) - 🔗
gh.zod.tf/bashbits/raw/master/*
shorthand to link directly to raw text of any file within this repo.
this runs the addressed script via
/bin/bash
without downloading it to a file.
curl -sSL https://gh.zod.tf/bashbits/raw/master/{{FILE_NAME}}.sh | /bin/bash
🔶 Use With Caution! Hopefully it's fairly clear, but this could have catastrophic consequences if you haven't evaluated (or, ya know, written yourself) the script you're executings' authenticity and/or contents.
The versions for these are pretty asynchronous, and certainly NOT AT ALL kept track of. YMMV.
v4.0.2
File Description Formatting &.zodignore
- added/improved headers for
helpers/env-succ.sh
,helpers/image-prune.sh
,.bashrc
, and.zshrc
- added
ignores/.zodignore
as first.gitignore
template. see file for more info
v4.0.1
MacOS & Assorted Scripts
- Added
.zshrc
for MacOSVentura 13.5.1
(Apple Silicon)though this was originally developed on Catalina (10.15.7), so...- Added
gitget.sh
to get obtain and install a script from a github url, or author and repo combination using the releases of that repository. UNTESTED, definitely doesn't work.- Updates to
.ansi_colors.sh
to add shorthand color variable exports for very common colorsRED
,GREEN
,YELLOW
,BLUE
, andNC
as a shortcut forRESET
.- Updated
README.md
to reflect changes, even the file structure diff thing wow.
v4.0.0
Some Housekeeping
.bashrc
adding planning and some actual additions.ansi_colors.sh
updating the file to contain actually all the currently referenced colors within... itself. Hopefully.README.md
Updating- Updating the version definition convention which I am now imposing on all scripts I write for standardization purposes
- Deleted / moved old scripts such as the original locations of
get_nvm.sh
.- Moved all scripts (for the most part) into descriptive folders
- more probably
I am now imposing a versioning convention explained as follows. This should be followed wherever possible.
the second line of all files must contain, eventually, a
v
orV
followed by a valid major.minor.patch2 version string.
📁 anim_cli ✨ 📄 bubbles-fs.sh 📄 intro-fs.sh 📄 shellwash-fs.sh 📁 builders 🔧 📄 build_py3.sh 📄 build_tsnode.sh 📄 shellwash-fs.sh 📁 helpers 🩹 📄 activenv.sh 📄 beautify_dir.sh 📄 docker_merge.sh + 📄 env-succ.sh + 📄 image-prune.sh 📄 to_gist.sh 📁 ignores 🚫 + 📄 .zodignore 📁 installers 💉 📄 get_dock.sh 📄 get_gh.sh 📄 get_gum.sh 📄 get_nvm.sh 📄 get_py.sh + 📄 install_disable-keyboard.sh 📁 os_setup 🧫 📄 deb11_base.sh 📄 deb11_nonfree.sh 📁 pgp 🧫 📄 pgp_gen.sh 🧲 gitget.sh 🎨.ansi_colors.sh + 🧫.zshrc + 🧬.bashrc + 💭 README.md <-- 📍 YOU ARE HERE 📄 LICENSE + 💾 .gitignore
🦺 DEPRECATED "ONE-LINERS" SECTION
🟨⬛️ this section will be removed or refactored in the next minor version! 🟨⬛️
Here are single-line, single-execution, daisychains of bash
to accomplish something or other.
Install deb11_base.sh
on a clean install of debian 11.
❗❗ MUST BE RUN AS ROOT ❗❗
curl -sL https://raw.githubusercontent.com/zudsniper/bashbits/master/deb11_base.sh -o ~/build.sh; chmod ugo+X ~/build.sh; ./build.sh -r me -pw password -k "ssh-rsa xx"; source ~/.bashrc; settitle "$(hostname -f)";
Massive thank you for any and all contributions.unless the contributions reeeeallllyyy suck of course
This is just a pet project, but it would be neat if it can help others.
This code is all MIT Licensed.
📄 LICENSE
gh.zod.tf
fullstack development, server administration, web design, branding creation, musical composition & performance, video editing, and more probably
Footnotes
-
See
.zshrc
,ignores/.zodignore
↩ -
Regular expression that should match all valid versions:
([0-9]+(.)){2}([0-9]+){1}(\-\w+)?
↩