Skip to content

Instantly share code, notes, and snippets.

View h8rt3rmin8r's full-sized avatar

h8rt3rmin8r h8rt3rmin8r

View GitHub Profile
@h8rt3rmin8r
h8rt3rmin8r / install-maven.sh
Last active August 30, 2020 23:07
Install the latest version of Apache Maven on Ubuntu
#! /usr/bin/env bash
#
# [ install-maven.sh ]
#
# Install Apache Maven on Ubuntu
#
# Created on 20200830 by h8rt3rmin8r (161803398@email.tg)
#
# Reference:
#
@h8rt3rmin8r
h8rt3rmin8r / rm-charset.sh
Last active August 19, 2020 15:45
Remove all types of quotation marks (includes the funky slanted quotes used by Yahoo et al) and vertical lines (pipe symbols, "|")
#! /usr/bin/env bash
#
# [ rm-charset.sh ]
#
# Remove all types of quotation marks (includes the funky slanted
# quotes used by Yahoo et al) and vertical lines (pipe symbols, "|")
#
# Created on 20200819 by h8rt3rmin8r (161803398@email.tg)
#
# Source:
@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
@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 / 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 / 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 / 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 / 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 / git-spider.sh
Last active January 27, 2019 14:28
Search Github.com with unauthenticated API calls
#! /bin/bash
#==============================================================================#
# ________________ _____ ____ ________ __________
# / ____/ _/_ __/ / ___// __ \/ _/ __ \/ ____/ __ \
# / / __ / / / / \__ \/ /_/ // // / / / __/ / /_/ /
# / /_/ // / / / ___/ / ____// // /_/ / /___/ _, _/
# \____/___/ /_/ /____/_/ /___/_____/_____/_/ |_|
#
#==============================================================================#
#
@h8rt3rmin8r
h8rt3rmin8r / makeline.sh
Created January 27, 2019 13:16
Generate lines of a specified length using a specified character with Bash
#! /bin/bash
#================================================================================#
# ___ ___ ___ _ __ _____ _ _____ _ _ _____
# | \/ | / _ \ | | / /| ___| | |_ _| \ | || ___|
# | . . |/ /_\ \| |/ / | |__ | | | | | \| || |__
# | |\/| || _ || \ | __|| | | | | . ` || __|
# | | | || | | || |\ \| |___| |_____| |_| |\ || |___
# \_| |_/\_| |_/\_| \_/\____/\_____/\___/\_| \_/\____/
#
#________________________________________________________________________________