Skip to content

Instantly share code, notes, and snippets.

View h8rt3rmin8r's full-sized avatar
💭
¯\_(ツ)_/¯

h8rt3rmin8r h8rt3rmin8r

💭
¯\_(ツ)_/¯
View GitHub Profile
@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 / 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 / nvidia-packages-list.sh
Created October 14, 2020 20:32
List all installed packages related to Nvidia and CUDA (outputs are formatted as JSON)
#! /usr/bin/env bash
#
# [ nvidia-packages-list ]
#
# List all installed packages related to Nvidia and CUDA
# Created on 20201014 by h8rt3rmin8r (161803398@email.tg)
#
soft_check=$(which jq &>/dev/null; echo $?)
@h8rt3rmin8r
h8rt3rmin8r / nvidia-visual-profiler.sh
Created October 14, 2020 20:40
Launch Nvidia Visual Profiler via Open JDK
#! /usr/bin/env bash
#
# [ nvidia-visual-profiler ]
#
# Launch Nvidia Visual Profiler via Open JDK
# Created on 20201014 by h8rt3rmin8r (161803398@email.tg)
#
# Reference:
#
# # Install CUDA on Ubuntu 20 (linuxconfig.org)
@h8rt3rmin8r
h8rt3rmin8r / root-test.sh
Created October 31, 2020 21:36
Run a quick test for access to "sudo"
#!/usr/bin/env bash
#>------------------------------------------------------------------------------
#>
#> [ root-test ]
#>
#> Run a quick test for access to "sudo"
#>
#> No inputs are required when invoking this function. Outputs are printed
#> to STDOUT as either "PASS" or "FAIL" and corresponding exit codes are
#> emitted.
@h8rt3rmin8r
h8rt3rmin8r / print-line.sh
Created October 31, 2020 21:45
Print an eighty-character line to the terminal
#! /usr/bin/env bash
#>------------------------------------------------------------------------------
#>
#> [ print-line ]
#>
#> Print an eighty-character line to the terminal.
#>
#> No inputs are required when invoking this script.
#>
#> Printed lines will default to being constructed with dashes (-) but can
@h8rt3rmin8r
h8rt3rmin8r / csslinks.sh
Last active November 5, 2020 10:52
Extract URLs from an input CSS document
@h8rt3rmin8r
h8rt3rmin8r / wfox-parallel.sh
Created November 15, 2020 09:53
Download all links in a referenced input file using GNU parallel
#! /usr/bin/env bash
#>------------------------------------------------------------------------------
#>
#> [ wfox-parallel ]
#>
#> Download all links in a referenced input file using GNU parallel
#>
#> Outputs will be situated into a new directory hierarchy that mirrors the
#> origin website URL path for each file. File exif data will be retained
#> if the 'xattr' package is installed on the local machine.
@h8rt3rmin8r
h8rt3rmin8r / unicode.bash
Created November 16, 2020 13:45
Bash unicode library (to be sourced)
#!/usr/bin/env bash
######################################################################
# #
# UNICODE AND SYMBOLIC REFERENCE VARIABLES #
# Source: https://pastebin.com/raw/6AM0F6ze #
# #
#--------------------------------------------------------------------#
# Source detection
# Reference: https://stackoverflow.com/a/2684300
@h8rt3rmin8r
h8rt3rmin8r / ics2json.sh
Last active February 23, 2024 14:13
Convert an .ics calendar file into JSON syntax
#! /usr/bin/env bash
#>------------------------------------------------------------------------------
#>
#> [ ics2json ]
#>
#> ABOUT:
#>
#> Convert an .ics calendar file into JSON syntax
#>
#> If input data is passed as a file reference, output data is written to