This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import random | |
| # configure simulation parameters | |
| crit_multiplier = float(sys.argv[1]) if len(sys.argv) > 1 else 2.0 # the crit damage multiplier, read from cli args or default to 2.0 (fixed value) | |
| base_damage = 100 # base damage per shot (fixed value) | |
| base_crit_chance = 0.05 # 5% base crit chance (fixed value) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env zsh | |
| declare -a MATCHES_LIST=( | |
| 'garbage' | |
| 'junk' | |
| 'rubbush' | |
| 'drivel' | |
| 'trash' | |
| 'shit' | |
| 'unredeemable' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env zsh | |
| ## | |
| ## GLOBAL VARIABLE DEFINITIONS | |
| ## | |
| declare -a PHP_VER_LIST_DISABLED=( | |
| '5.6' | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| lowercase() | |
| { | |
| # Grab input. | |
| declare input=${1:-$(</dev/stdin)}; | |
| } |
NewerOlder