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 | |
| ## Script to install docker-ce on Rocky Linux | |
| ## Run using `sudo rocky-docker.sh` | |
| # Ensuring "GROUP" variable has not been set elsewhere | |
| unset GROUP | |
| echo "Removing podman and installing Docker CE" | |
| dnf remove -y podman buildah |
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
| { | |
| "name": "Portico", | |
| "vendorProductId": 1414201352, | |
| "macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], | |
| "layers": [ | |
| [ | |
| "KC_GESC", | |
| "KC_1", | |
| "KC_2", | |
| "KC_3", |
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
| cd $env:LOCALAPPDATA\chia-blockchain\app-1.1.0\resources\app.asar.unpacked\daemon | |
| chia plots create -k 32 -n 10 -b 8000 -r 8 -t T:\ -d F:\ | |
| PAUSE |
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 | |
| # Used for lab - download all the Turnkey containers locally | |
| # If you want the system containers, system is the section you want! | |
| STORAGE="local" # Find here: https://proxmox:8006/#v1:0:=type%2Fstorage:4:=jsconsole::::7:=consolejs: | |
| SECTION="turnkeylinux" # Can also use "system" | |
| # Find all containers for the section and download them to defined storage | |
| # The awk statement here grabs the second column (container name) from the pveadm |
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
| ` # \ | |
| # PowerShell Param statement : every line must end in #\ except the last line must with <#\ | |
| # And, you can't use backticks in this section #\ | |
| param( [ValidateSet('A','B')]$tabCompletionWorksHere, #\ | |
| [switch]$andHere #\ | |
| ) <#\ | |
| #^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ` | |
| #vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | |
| # Bash Start ------------------------------------------------------------ |
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
| ## All options defined here are available to all instances. | |
| # | |
| init_config: | |
| ## @param service - string - optional | |
| ## Attach the tag `service:<SERVICE>` to every metric, event, and service check emitted by this integration. | |
| ## | |
| ## Additionally, this sets the default `service` for every log source. | |
| # | |
| # service: <SERVICE> |
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
| $DSRMPass = ConvertTo-SecureString -String "CHANGEME" -AsPlainText -Force | |
| Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools | |
| Install-ADDSForest ` | |
| -CreateDnsDelegation:$false ` | |
| -DatabasePath "C:\Windows\NTDS" ` | |
| -DomainMode 7 ` | |
| -ForestMode 7 ` | |
| -DomainName "lab.local" ` | |
| -InstallDns:$true ` | |
| -SafeModeAdministratorPassword $DSRMPass ` |
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 | |
| # Requirements: | |
| # brew install gource libav ffmpeg | |
| # Feel free to play around with these to test! | |
| FILENAME="output" # mp4 extension is currently hardcoded | |
| TITLE="Datadog Agent" # This title goes bottom left | |
| FRAMERATE="25" # Pick 25, 30, 60 | |
| RESOLUTION="3840x2160" # Examples: 1920x1080, 3840x2160, 1280×720 |
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 | |
| set -euox pipefail | |
| # Disk utilization for files and inodes | |
| # to use: | |
| # `./du10.sh` | |
| # Top ten inodes, queue depth 1 | |
| du -ad 1 --inodes . | sort -rn | head -10 |