Giter Site home page Giter Site logo

scripts's Introduction

scripts

A collection of semi-useful bash scripts I've written. All were written and tested on GNU bash version 4.4.19.

prelude: Sets a bunch of shell options that I've found to be universally useful in scripts, as well as ones I've never used, but whose man page description makes them seem like good ideas.

extract-args: A very useful script that parses arguments to shell functions. It's like 'getopt' or 'getopts', except with many more features (and many more bugs...). I've found that, even after learning to use getopt(s), I'd need to set up some loop of some kind to extract the parameters to options and whatnot; all that getopt or getopts would do is state if the arguments were well-formed. extract-args creates two global arrays: an associative array for options and their parameters, as well as a linear array for command parameters. The end result is that the boilerplate crap that goes with making a bash script is greatly reduced--down to few lines--for parsing all of a script's arguments.

git-create: Creates a remote git repository. Currently only works for GitHub.

TODO: document structure change; prelude now in BASH_ENV, not explicitly called

scripts's People

Contributors

greatbigdot avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.