Skip to content

Instantly share code, notes, and snippets.

View John-Appleseed's full-sized avatar

John-Appleseed

View GitHub Profile
@John-Appleseed
John-Appleseed / web.save.sh
Last active March 19, 2022 05:35
Web archive webpages with browsertrix-crawler
# web.save: $website_url
# - ArchiveWeb.page Install Link: https://chrome.google.com/webstore/detail/webrecorder-archivewebpag/fpeoodllldobpkbkabpblcfaogecpndd
# - webrecorder/browsertrix-crawler: Run a high-fidelity browser-based crawler in a single Docker container - https://github.com/webrecorder/browsertrix-crawler#features
web.save(){
website_url="$1"
archive_collection_name="$(echo "$website_url" | awk -F:// '{print $2}' | tr "./" "_")-$(date "+%Y-%m-%d_%Hh%Mm%Ss")"
website_save_path="$HOME/Downloads/crawls"
screencastport="9037"
mkdir -p "$website_save_path"
# mumble.install: install and run mumble-server docker image
# - mumble-voip/mumble: Mumble is an open-source, low-latency, high quality voice chat software. - https://github.com/mumble-voip/mumble
# - Mumble - https://www.mumble.info/
# - Leverage multi-CPU architecture support | Docker Documentation - https://docs.docker.com/desktop/multi-arch/
# Config Paths
# PC: /data/mumble-server/config.ini
# ARM: /data/mumble-server/murmur.ini
# /data/mumble-server/mumble-server.sqlite
mumble.install(){
@John-Appleseed
John-Appleseed / scrutiny_install.sh
Last active December 27, 2021 19:55
scrutiny_install.sh
# scrutiny.install: port 7800
# app: https://github.com/AnalogJ/scrutiny
# SYS_ADMIN required to add NVMe drives
scrutiny.install(){
unset devices disks_all disks_all_list
app_path="/data/scrutiny"
config_path="$app_path/config"
@John-Appleseed
John-Appleseed / speech_install.sh
Last active September 2, 2018 05:40
Linux Speech Install
# speech.install:
speech.install(){
# requires package libncurses5-dev xsel
# Tested on amd64, arm64
# Issue: festival's `make symlinks` are the full build path to binaries and configs rather than a relative path
# Currently festival/ is extracted out of build_festival/ into $usr_share_dir/ with the voices installed and the festival binaries and configs relinked to $usr_share_dir by a 2nd full recompilation. make clean && ./configure && make
@John-Appleseed
John-Appleseed / primesaver.sh
Last active August 13, 2017 03:07
Prime Saver
# Prime Sieve
alias step="echo"
# prime.saver: $threads # Search for safe primes
prime.saver(){
threads=${1:-2}
# Support:
# https://github.com/tmuxinator/tmuxinator
#---
# ~/.screenrc
new-session
" fun! ExportEnv: Load exports from g:exports
command! -nargs=0 ExportEnv call ExportEnv(<f-args>)
fun! ExportEnv()
" Save shell state
:ShellBackup
"exe 'let shell_restore="'.escape(&shell, ' \').'"'
set shell=bash\ --rcfile\ $HOME/.do/Environment/root\ -ci