Skip to content

Instantly share code, notes, and snippets.

View robfrawley's full-sized avatar
:octocat:
Insert clever GitHub status entry here...

Rob Frawley 2nd robfrawley

:octocat:
Insert clever GitHub status entry here...
View GitHub Profile
#!/usr/bin/zsh
function main() {
#clear
local -a search_paths_listed=("${@}")
local search_paths_string
local search_paths_hashed
local output_files_script
local search_call_strings
@robfrawley
robfrawley / toggle-auto-refresh-page_newegg.js
Last active January 27, 2025 18:30
toggle-auto-refresh
// ==UserScript==
// @name Auto Refresh Page
// @namespace http://tampermonkey.net/
// @version 0.0.1
// @description Browser script to continually auto-refresh a web page using a simple menu command.
// @author Rob Frawley 2nd
// @match *://www.newegg.com/*
// @grant GM_registerMenuCommand
// @grant GM_setValue
// @grant GM_getValue
sudo apt install software-properties-common
sudo add-apt-repository multiverse
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install zsh steamcmd
curl -O https://gist.githubusercontent.com/robfrawley/03ee6ca35221dbb9d18341c8a5be62f9/raw/b95acc872a9f1218caf5409e48abc261ca64b6c0/satisfactory-dedicated-server-startup.zsh
zsh satisfactory-dedicated-server-startup.zsh
@robfrawley
robfrawley / toolarmy-community-style-fixes.user.js
Last active July 4, 2023 16:38
Tool Army Community Style Fixes
// ==UserScript==
// @name Tool Army Community Style Fixes
// @namespace https://gist.github.com/robfrawley
// @version 0.2.7
// @description A collection of style fixes for the community sections of Tool's website.
// @author Rob Frawley 2nd <[email protected]>
// @copyright 2023
// @license https://src.mit-license.com/
// @match https://www.toolband.com/forums*
// @match https://www.toolband.com/activities*
@robfrawley
robfrawley / toolarmy-like-all-posts.js
Last active July 28, 2023 15:05
Tool Army Community Tools
//
//
// LAST RUN: 2023-07-23
// LIKES
//
//
const handleExcept = (exception) => {
console.log('Caught an exception: ', exception);
// ==UserScript==
// @name Tool Band Community Style Fixes
// @description Fix styling issues with Tool Band's community website.
// @namespace http://src.run/
// @version 0.1.0
// @copyright 2023, SRC LLC
// @license https://src.mit-license.com/
// @author Rob Frawley 2nd <[email protected]>
// @match https://www.toolband.com/forums*
// @match https://www.toolband.com/activities*
#!/usr/bin/env zsh
declare -a MATCHES_LIST=(
'garbage'
'junk'
'rubbush'
'drivel'
'trash'
'shit'
'unredeemable'
@robfrawley
robfrawley / dl-php-versions.zsh
Last active February 11, 2023 22:36
Download PHP Versions (Ubuntu)
#!/usr/bin/env zsh
##
## GLOBAL VARIABLE DEFINITIONS
##
declare -a PHP_VER_LIST_DISABLED=(
'5.6'
)
@robfrawley
robfrawley / bash-func_pass-or-pipe-input.bash
Created December 5, 2022 03:58
Bash Function Supporting Both Passed Values and Piped Input
#!/usr/bin/env bash
lowercase()
{
# Grab input.
declare input=${1:-$(</dev/stdin)};
}
@robfrawley
robfrawley / sublime-text-3_default-preferences.json
Created December 5, 2022 03:34
Sublime Text 3: Default Preferences JSON
// Place your settings in the file "Packages/User/Preferences.sublime-settings",
// which overrides the settings in here.
//
// Settings may also be placed in syntax-specific setting files, for
// example, in Packages/User/Python.sublime-settings for python files.
{
// Sets the colors used within the text area.
// The value "auto" will switch between the "light_color_scheme" and
// "dark_color_scheme" based on the operating system appearance.
"color_scheme": "auto",