Skip to content

Instantly share code, notes, and snippets.

View fonic's full-sized avatar

Fonic fonic

  • USA
View GitHub Profile
@fonic
fonic / remove-unneeded-languages.sh
Last active November 20, 2023 08:31
remove-unneeded-languages.sh - Remove unneeded languages from video files using FFmpeg
#!/usr/bin/env bash
# -------------------------------------------------------------------------
# -
# Remove unneeded language(s) from video file -
# -
# Created by Fonic <https://github.com/fonic> -
# Date: 04/14/22 - 11/20/23 -
# -
# Posted as answer on StackExchange Unix & Linux: -
@fonic
fonic / cinemassacre-avgn-episode-scraper.sh
Created February 19, 2023 12:10
Cinemassacre.com Angry Video Game Nerd (AVGN) Episode Scraper
#!/usr/bin/env bash
# -------------------------------------------------------------------------
# -
# Cinemassacre.com Angry Video Game Nerd (AVGN) Episode Scraper -
# -
# Created by Fonic <https://github.com/fonic> -
# Date: 02/18/23 - 02/19/23 -
# -
# Why use cinemassacre.com instead of Youtube?: -
@fonic
fonic / smart-status.sh
Created September 5, 2022 06:47
smart-status.sh - Query SMART status of disk drives (SSD/HDD) using smartctl
#!/usr/bin/env bash
# -------------------------------------------------------------------------
# -
# Fonic <https://github.com/fonic> -
# Date: 07/22/21 - 06/30/22 -
# -
# Based on: -
# Initramfs script 'initrc-init.sh', -
# 'man 8 smartctl', section 'EXIT STATUS' -
@fonic
fonic / generate-tag.sh
Last active April 20, 2021 08:00
generate-tag.sh - Generate file tag interactively (comment block to be used as file header)
#!/usr/bin/env bash
# -------------------------------------------------------------------------
# -
# Generate Tag (gentag) -
# -
# Created by Fonic <https://github.com/fonic> -
# Date: 01/09/18 - 04/20/21 -
# -
# -------------------------------------------------------------------------
@fonic
fonic / scan-to-pdf.sh
Last active September 16, 2023 09:56
scan-to-pdf.sh - Scan documents directly to PDF file - Linux command line
Moved to https://github.com/fonic/scan2pdf
@fonic
fonic / ubcd2usb.sh
Last active September 1, 2022 08:04
Create bootable device from Ultimate Boot CD ISO image
#!/usr/bin/env bash
# -------------------------------------------------------------------------
# -
# Create bootable device from Ultimate Boot CD ISO image -
# -
# Created by Fonic <https://github.com/fonic> -
# Date: 09/23/20 - 09/23/20 -
# -
# Based on: -
@fonic
fonic / python_pretty_print_objects.py
Last active July 15, 2023 11:38
Python pretty print arbitrary objects
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Recursively generate pretty print of arbitrary objects
def generate_pprint(obj, level_indent=" ", max_depth=None, verbose_output=True,
justify_output=True, prevent_loops=True, prevent_revisit=False,
explore_objects=True, excluded_ids=[], visited_ids=[],
path_ids=[], current_depth=0):
"""Recursively generates pretty print of arbitrary objects.
@fonic
fonic / sign_kernel_modules.sh
Last active July 15, 2020 18:00
Sign Linux kernel modules
#!/usr/bin/env bash
# -------------------------------------------------------------------------------------------
# -
# Sign Linux kernel modules -
# -
# Created by Fonic <https://github.com/fonic> -
# Date: 07/13/20 - 07/15/20 -
# -
# Based on: -
@fonic
fonic / check_hardened_kernel_config.sh
Last active July 13, 2020 21:03
Check hardened Linux kernel configuration
#!/usr/bin/env bash
# -------------------------------------------------------------------------
# -
# Check hardened Linux kernel configuration -
# -
# Created by Fonic <https://github.com/fonic> -
# Date: 07/13/20 -
# -
# -------------------------------------------------------------------------
@fonic
fonic / erase_wipe_partition_format_device.sh
Last active June 19, 2020 21:37
Erase/wipe, partition and format device on Linux
#!/usr/bin/env bash
# -------------------------------------------------------------------------
# -
# Erase/wipe, partition and format device -
# -
# Created by Fonic <https://github.com/fonic> -
# Date: 06/18/20 - 06/08/20 -
# -
# -------------------------------------------------------------------------