SashaNullptr / Useful-Scripts-For-Useful-People

A collection of (possibly) useful scripts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Useful Scripts for Useful People

What is the purpose of this repository?

Given enough time everyone seems to develop a collection of shell scripts they go back to over and over -- this is my collection.

What Scripts are in this Repo?

Benchmark Disk Read / Write Speeds

Check it out here.

Dynamically Whitelist a IP Address

Check it out here.

Build Sphinx Docs & Update

Let's assume you're working on a Python project and using Sphinx to generate documentation. Keeping documentation up-to-date as a code base changes is quite tedious to do by hand. Two basic ways to automate this task are as follows; build docs as CI/CD system artifacts or write a script to build docs when a code base is updated.

This hook takes the latter option -- documentation is re-built whenever commits are made.

Check it out here.

Super Lint-Hammer

Imagine the scenario; you're in a group where someone has discovered pylint and decided all commits to production need to have score X/10 in order to pass review.

While linting is an extremely import part of refactoring, it can be frustrating when pylint is used with default settings and a numeric pass/fail criteria is established that isn't tailored to the needs of particular code base or development team.

Enter the Super Lint-Hammer -- a commit hook that will run autopep8 on every *.py file in the Git repo. While this won't fix fundamental problems with a code base, it will make things more compliant with PEP8 standards and usually improve pylint scores significantly. It can allow code to pass automatic review in a pinch, and give you enough time to talk to your pedantic co-workers.

Check it out here.

About

A collection of (possibly) useful scripts.

License:MIT License


Languages

Language:Shell 65.3%Language:Python 34.7%