GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - evertramos/basescript: Scripts to be used for automation by other scripts

BranchesTags
Open more actions menu

Latest commit

 

History

249 Commits
249 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
backup
backup
 
 
check
check
 
 
common
common
 
 
confirm
confirm
 
 
docker-compose
docker-compose
 
 
docker
docker
 
 
dockerhub
dockerhub
 
 
docs
docs
 
 
domain
domain
 
 
email
email
 
 
env
env
 
 
file
file
 
 
ftp
ftp
 
 
git
git
 
 
init
init
 
 
ip
ip
 
 
log
log
 
 
md5
md5
 
 
messages
messages
 
 
proxy
proxy
 
 
select
select
 
 
string
string
 
 
system
system
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
bootstrap.sh
bootstrap.sh
 
 
header
header
 
 

Repository files navigation

Base Scripts 📡 | Work in progress 🚧

Some handy scripts to make your life easier.

Video tutorials | Work in progress 🚧

Oh yeah! We will have some handy tips in our channel on Youtube

youtube

Thoughts

The scripts was designed thinking of a few baselines:

  • Simplicity
  • Reusability
  • Meaningful reading

and the Unix concept of DOTADIW:

  • Do One Thing And Do It Well

Naming functions

We designed a standard way for naming functions, which should start the function with the folder name, so, if the script is under the './domain' folder the function will start with 'domain_'. We try to be as much verbose as possible for better understanding "the function function".

Function responses

All function's responses will be in capital letter and the most commom 'rule' will be to remove the wildcard word from the response, such as 'check', 'get' and 'put'.

Check functions

Responses will be the function's name without the word 'check':

docker_check_container_is_running()
{
    [...]
    DOCKER_CONTAINER_IS_RUNNING=true
}

Confirm functions

Responses will be the function's name without the word 'confirm' and '_RESPONSE' at the end of the string:

confirm_user_action()
{
    [...]
    USER_ACTION_RESPONSE=true
}

This was one of the first functions we created so, we will try to keep it simple next functions, but must keep that for compatibility purposes

***** GET FUNCTIONS AS WELL

ip_get_external_ipv4 example returns IP_EXTERNAL_IPV4

Versioning

Every change should be non breakable, if it worked for you in some main version it should continue to work in all corrections and new functions.

Versioning: vX.Y

'X': main version

'Y': corrections / new functions

Documentation

There will be a specific page for documentation and samples of every function in this repo.

Please check

Docs

Security Vulnerability ✋

If you find any security vulnerability, please DO NOT open an issue, send an email to [email protected].

Shebang

  • All scripts were desgined to run in bash. Hum... right, You might ask about shebang... yes I used absolute path in all scripts '/bin/bash'. Yes, there is discussions on that matter, but if you don't have bash, you probably know some tricks to update all files at once, right? If not I will provide you a way to do that, if you have sed at least.

Support this project at Patreon

https://www.patreon.com/evertramos

About

Scripts to be used for automation by other scripts

Resources

Readme
Activity

Stars

42 stars

Watchers

0 watching

Forks

22 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.