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 | |
| # OCI routing discovery — starts from DRG name(s) and walks the entire reachable topology. | |
| # | |
| # Required env: | |
| # DRG_NAMES Comma-separated DRG display names (or DRG_OCIDS) | |
| # DRG_OCIDS Comma-separated DRG OCIDs (or DRG_NAMES) | |
| # | |
| # Optional env: | |
| # OUTPUT_DIR Output directory default: ./oci-discovery-YYYYmmdd-HHMMSS | |
| # OCI_PROFILE OCI CLI profile name default: DEFAULT |
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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDUgVpineSLRh71SMq41wQAmVH3xWiAiFMja4C7Az8fNYTAy35kb0GmoMfGQHR0LVsPttY1DRvDV6Wy9Ko0Es02PApGAXwle1myeNtxxGSb5kGjEpFYkr09tl6PoKXm7mf0UPOz9D9mE43SM1RZ0/d5YL23Fv/1KM53L98L90OwyYNdbWO8rlG/a0+XkdoCK4qjAWvl6RML/5ZnHjzz2C41sxXYLNInmeIaxPrsFDXfzfw9/rP9K4VoGaLNkDACbqDihmhzjDuJm4HB10q9iJzVZG0FdHg9Yy8lXbLuHpS4TD1YbNu8TCvR5239YKhoogcgdhHcnIcHz5xb4k5KV57ylqhCK0wFh7hGvsnkteks+8LZP9NA7FQXmB7UMoUVtIYUI4mSrNyb8dpyAdF22VlNVX4/53nzWSGSbRHq6lIyYGuD3cnxQFjfTGRfSIkHOpLId4LpWwGT9IEgC2PIZLE55XG/EjMbBjcOubUmnZeSJtveVfwd1o1z5COvrtAb8HM= fahad@fy-mbp-air.local | |
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCywOMn146aQUDMKx7oQ0bB23VCdMWp68+HmBCs/a4ZYXywncqOCXCEA2jUDWCbhY+HEpodSXtILqjBvB2tlnjDAMVRUmpVUv9+rTcO7YCoyH2NLGFwRzV2KK8wUUWtmHsHFy+ztedQv8LNOn6EpndUYgDkXE8bpG9/axRT641sY88BU+bPryB4+Fd4f3LG/qBrMsxtG4iNxBf4OXOzJlVUgbLxzMDYbsAaOIY5uFrpBac2DGSH9Pxa1yq2ETEHcseoMdfRxgdp8E2DPpntvyzgYy6QgfpEoyVSI323qyUqQ1X7EnOlxrkJHtEubTpuyIhXCuQ4NuU0iMDSVXjVr7O/niPiJ0Wt+I8araTrdStWIeEg+d+g18fWKnP/orBKFpZX5DqDZPeKPL6muID5TyqDBvTz |
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
| {"version":"v0.13","download_url":"https://drive.google.com/drive/folders/1AMryOycMU_qu3TBAIGCqqR59u2Eio3Iq"} |
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
| # Requires elevated (Administrator) PowerShell session | |
| param( | |
| [Parameter(Mandatory=$true)] | |
| [ValidateRange(1025, 65535)] | |
| [int]$NewRdpPort | |
| ) | |
| # --- Configuration --- | |
| $RdpKeyPath = "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" |
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
| #Requires -RunAsAdministrator | |
| <# | |
| .SYNOPSIS | |
| RDP Health Check - Diagnoses Remote Desktop Service connectivity issues | |
| .DESCRIPTION | |
| Checks service status, listening ports, firewall rules, NLA settings, | |
| user permissions, and network accessibility for RDP connections. | |
| #> | |
| param( |
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
| # Set the paths for your files | |
| $replacementListFile = "C:\temp\replace.txt" | |
| $targetFile = "C:\temp\target.xml" | |
| # Read the contents of the replacement list file | |
| $replacementList = Get-Content -Path $replacementListFile | |
| # Read the content of the target file into a single string | |
| $content = Get-Content -Path $targetFile -Raw |
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
| font-family = "JetBrainsMono Nerd Font Mono" | |
| font-style = Regular | |
| font-size = 13 | |
| font-thicken = true | |
| adjust-underline-position = 40% | |
| adjust-underline-thickness = -60% | |
| cursor-style = block | |
| cursor-style-blink = false |
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/sh | |
| dnsserver=“your-dns-server.ns.cloudflare.com" | |
| host="your-record-name" | |
| domain_name=“yourdomain.com” | |
| cf_user_email="fahadysf@gmail.com" | |
| cf_api_key=“—get-your-own-api-key--“ | |
| cf_zone_id="—get-your-own-zone-id—“” | |
| cf_record_id=“check-your-own-record-id” | |
| dnsrecord=$host.$domain_name |
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 python3 | |
| """ | |
| SCTP Client/Server | |
| Author: Fahad Yousuf | |
| This script implements a simple SCTP client/server using Python's socket module. | |
| The server listens on port 62324 and the client connects to the server on the same port. | |
| """ |
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 | |
| # | |
| # Script to print out the current power cycles and capacity of Macbooks | |
| # which provide this info. | |
| # ------- | |
| CYCLE_COUNT=`system_profiler SPPowerDataType | grep "Cycle Count" | awk '{print $3}'` | |
| MAX_CAPACYTY=`system_profiler SPPowerDataType | grep "Maximum Capacity" | awk '{print $3}'` | |
| echo "Cycle Count: $CYCLE_COUNT" |
NewerOlder