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
| terminal: | |
| searchOptions: {} | |
| colorScheme: | |
| name: Tomorrow Night Blue Dark | |
| foreground: '#ffffff' | |
| background: '#212c41' | |
| cursor: '#ffffff' | |
| colors: | |
| - '#000000' | |
| - '#ff9da4' |
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 | |
| # SOURCE: https://gist.github.com/ffcruz85/6c9fb792fce4af0c4cb561fd653c86b6 | |
| # Script to check for complete torrents in transmission folder, then stop and move them | |
| # either hard-code the MOVEDIR variable here… | |
| MOVEDIR='/data/complete' | |
| # TODO: read $env vars or file |
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
| MIT License | |
| Copyright (c) 2018 Noel Bundick | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
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
| #!/bin/zsh | |
| :<<ABOUT_THIS_SCRIPT | |
| ------------------------------------------------------------------------------- | |
| Written by: William Smith | |
| Professional Services Engineer | |
| Jamf | |
| bill@talkingmoose.net | |
| https://gist.github.com/e9ed319226c6da30dd633725e48a97b0 |
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 | |
| # SOURCES: | |
| # https://www.cyberciti.biz/faq/apple-mac-os-x-update-softwareupdate-bash-shell-command/ | |
| # https://www.tecmint.com/use-shell-script-variable-in-awk/ | |
| # https://stackoverflow.com/questions/369758/how-to-trim-whitespace-from-a-bash-variable/40962059#40962059 | |
| # https://stackoverflow.com/questions/238073/how-to-add-a-progress-bar-to-a-shell-script | |
| # https://beebo.org/haycorn/2015-10-03_applescript-tips.html | |
| # https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/DisplayProgress.html | |
| # https://pysimplegui.readthedocs.io/en/latest/#progress-meters |
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
| #!/bin/bash | |
| CYAN="$(tput bold; tput setaf 6)" | |
| RESET="$(tput sgr0)" | |
| clear | |
| if command -v python3 > /dev/null 2>&1; then | |
| if [ $(python3 -c "print('ye')") = "ye" ]; then | |
| clear |
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 | |
| # SOURCES: | |
| # https://www.brainbytez.nl/tutorials/qnap-nas-fix-the-seagate-chirp-sound/ | |
| # Disable advanced power management (APM) for noisy Seagate drives | |
| # qcli_storage | |
| hdparm -B 255 /dev/sda | |
| hdparm -B 255 /dev/sdb | |
| hdparm -B 255 /dev/sdc |
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
| service pve-cluster restart && service pvedaemon restart && service pvestatd restart && service pveproxy restart |
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 random | |
| from operator import itemgetter | |
| import timeit | |
| def random_point(): | |
| return (random.randint(0, 100), random.randint(0, 100), random.randint(0, 100)) | |
| points = None # Global because of timeit scoping | |
| def test_lambda(): |
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
| #!/bin/bash | |
| # server connection information | |
| URL="https://jss.talkingmoose.net:8443" | |
| userName="JSSAPI-Editor" | |
| password="password" | |
| # XML data to upload | |
| THExml="<activation_code> | |
| <organization_name>Talking Moose Industries</organization_name> |