Skip to content

Instantly share code, notes, and snippets.

View h8rt3rmin8r's full-sized avatar

h8rt3rmin8r h8rt3rmin8r

View GitHub Profile
@h8rt3rmin8r
h8rt3rmin8r / man2txt.sh
Created January 26, 2019 13:01
Translate Unix manual pages into text files
#! /bin/bash
#============================================================================#
# ________ __ __
# _____ _____ ____ \_____ \_/ |____ ____/ |_
# / \\__ \ / \ / ____/\ __\ \/ /\ __\
# | Y Y \/ __ \| | \/ \ | | > < | |
# |__|_| (____ /___| /\_______ \|__| /__/\_ \ |__|
# \/ \/ \/ \/ \/
#
#============================================================================#
@h8rt3rmin8r
h8rt3rmin8r / pyv.sh
Created January 27, 2019 10:44
Check the versions of your system's locally installed Python2 and Python3
#! /bin/bash
# pyv - Check the versions of the locally installed Python2 and Python3
# Created by h8rt3rmin8r on 20190127
# FUNCTION DECLARATIONS
function py2v() {
# Check the version of the local Python2
python2 --version &> py2v-temp
cat py2v-temp
@h8rt3rmin8r
h8rt3rmin8r / makeline.sh
Created January 27, 2019 13:16
Generate lines of a specified length using a specified character with Bash
#! /bin/bash
#================================================================================#
# ___ ___ ___ _ __ _____ _ _____ _ _ _____
# | \/ | / _ \ | | / /| ___| | |_ _| \ | || ___|
# | . . |/ /_\ \| |/ / | |__ | | | | | \| || |__
# | |\/| || _ || \ | __|| | | | | . ` || __|
# | | | || | | || |\ \| |___| |_____| |_| |\ || |___
# \_| |_/\_| |_/\_| \_/\____/\_____/\___/\_| \_/\____/
#
#________________________________________________________________________________
@h8rt3rmin8r
h8rt3rmin8r / git-spider.sh
Last active June 1, 2024 06:23
Search Github.com with unauthenticated API calls
#! /bin/bash
#==============================================================================#
# ________________ _____ ____ ________ __________
# / ____/ _/_ __/ / ___// __ \/ _/ __ \/ ____/ __ \
# / / __ / / / / \__ \/ /_/ // // / / / __/ / /_/ /
# / /_/ // / / / ___/ / ____// // /_/ / /___/ _, _/
# \____/___/ /_/ /____/_/ /___/_____/_____/_/ |_|
#
#==============================================================================#
#
@h8rt3rmin8r
h8rt3rmin8r / file2url.sh
Created February 7, 2019 11:15
Convert files into base64 data URLs or extract underlying data from data URLs.
#! /bin/bash
#=======================================================================================#
#
# ___________.___.____ ___________________ ____ _____________.____
# \_ _____/| | | \_ _____/\_____ \| | \______ \ |
# | __) | | | | __)_ / ____/| | /| _/ |
# | \ | | |___ | \/ \| | / | | \ |___
# \___ / |___|_______ \/_______ /\_______ \______/ |____|_ /_______ \
# \/ \/ \/ \/ \/ \/
#
@h8rt3rmin8r
h8rt3rmin8r / build-json-objects.sh
Last active June 16, 2020 06:38
Generate JSON objects filled with custom keys and values
#! /usr/bin/env bash
#
# [ build-json-object.sh ]
#
# Generate JSON objects filled with custom keys and values
# Created on 20200616 by h8rt3rmin8r
#
## Declare variables
@h8rt3rmin8r
h8rt3rmin8r / screenshot_clean.sh
Last active July 15, 2020 21:44
Clean up the Ubuntu system screenshots from ~/Pictures
#! /usr/bin/env bash
#>------------------------------------------------------------------------------
#>
#> [ screenshot_clean.sh ]
#>
#> About:
#>
#> Clean up the Ubuntu system screenshots from ~/Pictures
#>
#> All screenshots are renamed and moved into a new directory located at
@h8rt3rmin8r
h8rt3rmin8r / future-value.sh
Last active July 16, 2020 15:38
Calculate future value based on compound interest
#! /usr/bin/env bash
#>------------------------------------------------------------------------------
#>
#> [ future-value.sh ]
#>
#> Calculate future value based on compound interest
#>
#> USAGE:
#>
#> future-value.sh <OPTION>
@h8rt3rmin8r
h8rt3rmin8r / mshell.sh
Last active August 16, 2020 05:01
Math shell (mshell) is a general purpose math handling script written for native Bash
#! /usr/bin/env bash
#>------------------------------------------------------------------------------
#>
#> [ mshell ]
#>
#> Math shell (mshell) is a math handling script written for native Bash
#>
#> USAGE:
#>
#> mshell <TYPE> (<INPUT> ... <INPUT>)
@h8rt3rmin8r
h8rt3rmin8r / glitchpad.theme
Created August 18, 2020 17:01
Bashtop glitchpad theme by glitchpad.com
#Bashtop glitchpad theme
#by glitchpad.com
# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255"
# example for white: "#FFFFFF", "#ff" or "255 255 255".
# All graphs and meters can be gradients
# For single color graphs leave "mid" and "end" variable empty.
# Use "start" and "end" variables for two color gradient
# Use "start", "mid" and "end" for three color gradient