The maintained version now lives at ProxMox Cluster - Soup-to-Nutz, part of scyto/homelab-docs.
Questions or troubleshooting? Continue the conversation here — a Q&A discussion where replies thread properly, answers can be marked, and everything is searchable. The 51 comments below stay exactly where they are as an archive.
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 | |
| # System info | |
| echo -e " System info on......: $(date '+%H:%M %Y-%m-%d')" | |
| echo -e " Hostname............: $(cat /etc/hostname)" | |
| echo -e " Last login..........: $(last -w | head -n1 | tr -s ' ' | cut -f1 -d' ') from $(last -w | head -n1 | tr -s ' ' | cut -f3 -d' ')" | |
| echo -e " Uptime..............: $(uptime -p | sed 's/^up.//')" | |
| echo -e " Load Averages.......: $(cat /proc/loadavg | cut -f1 -d' '), $(cat /proc/loadavg | cut -f2 -d' '), $(cat /proc/loadavg | cut -f3 -d' ')" | |
| echo -e " Memory..............: Used: $(free -m | grep Mem: | xargs | cut -f3 -d' ')M | Free: $(free -m | grep Mem: | xargs | cut -f7 -d' ')M | Total: $(free -m | grep Mem: | xargs | cut -f2 -d' ')M" | |
| echo -e " CPU Temperature.....: $(sensors | grep Package | cut -f2 -d'+' | cut -f1 -d' ')" | |
| echo -e " Root disk...........: Used: $(df -h / | tail -n1 | tr -s ' ' | cut -f3 -d' ') | Free: $(df -h / | tail -n1 | tr -s ' ' | cut -f4 -d' ') | Total: $(df -h / | tail -n1 | tr -s ' ' | cut -f2 -d' ')" |
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
| :root { | |
| --min-item-width: 28ch; | |
| --max-item-width: .5fr; | |
| --grid-spacing: .25rem; | |
| --item-padding: .25rem; | |
| } | |
| /* Let items expand on small screens */ | |
| @media (max-width: 600px) { | |
| :root { |
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
| <item> | |
| <tunable>net.inet.icmp.drop_redirect</tunable> | |
| <value>1</value> | |
| <descr/> | |
| </item> | |
| <item> | |
| <tunable>net.isr.bindthreads</tunable> | |
| <value>1</value> | |
| <descr/> | |
| </item> |
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
| # Simple script to check drivers in C:\windows\system32\drivers against the loldrivers list | |
| # Author: Oddvar Moe - @oddvar.moe | |
| $drivers = get-childitem -Path c:\windows\system32\drivers | |
| $web_client = new-object system.net.webclient | |
| $jsonString = $web_client.DownloadString("https://www.loldrivers.io/api/drivers.json") | |
| $jsonString = $jsonString -replace '"INIT"','"init"' | |
| $loldrivers = $jsonString | ConvertFrom-Json | |
| Write-output("Checking {0} drivers in C:\windows\system32\drivers against loldrivers.io json file" -f $drivers.Count) |
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
| (?i)((access_key|access_token|admin_pass|admin_user|algolia_admin_key|algolia_api_key|alias_pass|alicloud_access_key|amazon_secret_access_key|amazonaws|ansible_vault_password|aos_key|api_key|api_key_secret|api_key_sid|api_secret|api.googlemaps AIza|apidocs|apikey|apiSecret|app_debug|app_id|app_key|app_log_level|app_secret|appkey|appkeysecret|application_key|appsecret|appspot|auth_token|authorizationToken|authsecret|aws_access|aws_access_key_id|aws_bucket|aws_key|aws_secret|aws_secret_key|aws_token|AWSSecretKey|b2_app_key|bashrc password|bintray_apikey|bintray_gpg_password|bintray_key|bintraykey|bluemix_api_key|bluemix_pass|browserstack_access_key|bucket_password|bucketeer_aws_access_key_id|bucketeer_aws_secret_access_key|built_branch_deploy_key|bx_password|cache_driver|cache_s3_secret_key|cattle_access_key|cattle_secret_key|certificate_password|ci_deploy_password|client_secret|client_zpk_secret_key|clojars_password|cloud_api_key|cloud_watch_aws_access_key|cloudant_password|cloudflare_api_key|cloudflare_auth_k |
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
| #Usage: | |
| # | |
| #NOTE: The script expects an argument which is the full File Path of the EVTX file. | |
| # | |
| #C:\>ExtractAllScripts.ps1 | |
| #The default behavior of the script is to assimilate and extract every script/command to disk. | |
| # | |
| #C:\ExtractAllScripts -List | |
| #This will only list Script Block IDs with associated Script Names(if logged.) | |
| # |
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
| from oletools.olevba import VBA_Parser, TYPE_OLE, TYPE_OpenXML, TYPE_Word2003_XML, TYPE_MHTML | |
| import sys | |
| import re | |
| vbaparser = VBA_Parser(sys.argv[1]) | |
| replace_regex = r"\s*([^=]+)\s*=\s*Replace\(\s*([^,]+)\s*,\s*\"([^,]*)\"\s*,\s*\"([^,]*)\"\s*\)" | |
| replace = re.compile(replace_regex, re.MULTILINE) | |
| regex_url = "http(s)?://[^,\"]+" |
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
| winget install code52.Carnac -s winget | |
| winget install Github.GithubDesktop -s winget | |
| winget install Postman.Postman -s winget | |
| winget install Github.cli -s winget | |
| winget install Microsoft.Powertoys -s winget | |
| winget install Microsoft.AzureCLI -s winget | |
| winget install Microsoft.VisualStudioCode -s winget | |
| winget install Microsoft.VisualStudio.2022.Enterprise -s winget | |
| winget install Microsoft.Bicep -s winget | |
| winget install Microsoft.Teams -s winget |
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
| #include <Windows.h> | |
| LONG SingleStepEncryptDecrypt(EXCEPTION_POINTERS* ExceptionInfo); | |
| typedef VOID(__stdcall* Shellcode)(); | |
| LPBYTE ShellcodeBuffer; | |
| ULONG_PTR PreviousOffset; | |
| ULONG_PTR CurrentOffset; | |
| ULONGLONG InstructionCount; | |
| DWORD dwOld; |
NewerOlder