Skip to content

a loose-leaf binder of my assorted scripts which I like being able to access via github links

License

Notifications You must be signed in to change notification settings

zudsniper/bashbits

Repository files navigation

bashbits 🧰

a loose-leaf binder of my assorted scripts which I like being able to access via github.

Now all in the same place!

also now... not all Bourne Again SHell scripts.

ABSTRACT

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!

📌 Use with care, and at your own risk!

LINKS

Usage Example

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.

VERSIONING

The versions for these are pretty asynchronous, and certainly NOT AT ALL kept track of. YMMV.

🕷️ v4.0.2

changelog

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 MacOS Ventura 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 colors RED, GREEN, YELLOW, BLUE, and NC as a shortcut for RESET.
  • 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

🌐 General Versioning Convention

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 or V followed by a valid major.minor.patch2 version string.


FILES

 📁 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

ONE-LINERS

🟨⬛️ 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)";

CONTRIBUTING

if you want to help, please do!

just fork this repo & get at it, then PR! feel free to contact me (see my profile for various contact methods) if I do not respond in a timely manner to a PR -- but I probably will.

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.

LICENSE

This code is all MIT Licensed.
📄 LICENSE


gh.zod.tf

Discord GitHub issue custom search GitHub followers

fullstack development, server administration, web design, branding creation, musical composition & performance, video editing, and more probably

second zod.tf logo

Footnotes

  1. See .zshrc, ignores/.zodignore

  2. Regular expression that should match all valid versions: ([0-9]+(.)){2}([0-9]+){1}(\-\w+)?

About

a loose-leaf binder of my assorted scripts which I like being able to access via github links

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages