Skip to content

Instantly share code, notes, and snippets.

View adaml73's full-sized avatar

Adam Lyng adaml73

View GitHub Profile
@adaml73
adaml73 / BaselineTest.txt
Created May 23, 2026 03:10 — forked from JuneKelly/BaselineTest.txt
Full text of the Baseline Test from Blade Runner 2049
A blood black nothingness began to spin.
Began to spin.
Let's move on to system.
System.
Feel that in your body.
@adaml73
adaml73 / gist:70e5869b7a18eac82d099eadda1c4b70
Created November 12, 2025 03:01
Green Mountain Power API Notes
https://api.greenmountainpower.com/api/v2/accounts/<account number>/generation/credits
https://api.greenmountainpower.com/api/v2/usage/<account number>/summary
Outages
/api/v2/outages/me
Get-DhcpServerv4Scope | Where-Object {$_.LeaseDuration -gt (New-TimeSpan -Hours 1)} | Export-Csv -path Filename.csv
Set-DhcpServerv4Scope -ScopeId x -LeaseDuration 1:00:00
Get-DhcpServerv4Scope -ScopeId x
@adaml73
adaml73 / ping-multiple-hosts.txt
Last active September 12, 2023 22:00
Ping multiple hosts and watch status
!you will need 'fping' make sure you install this before proceeding
!build a txt file with the hostnames/ips of the hosts you want to ping
!example, mine is called 'testhosts.txt'
!in a terminal window, enter the following
watch -n 0.5 'fping -s $(cat testhosts.txt)'
!the -n value means the screen is updated every half second, you can change this as you see fit.
provider "packet" {
auth_token = "Your-api-key-here"
}
resource "packet_project" "viral-lab" {
name = "viral-lab"
}
locals {
project_id = "${packet_project.viral-lab.id}"
sho run object-group id <your_object_group>
sho run object id <your_object>
sho run object id
sho run object-group id
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service compress-config
!
hostname Cisco-IOS
!
boot-start-marker
ciscoasa# term page 0
ciscoasa# sho run
: Saved
:
: Serial Number: 9A0CMB1LBDH
: Hardware: ASAv, 2048 MB RAM, CPU Pentium II 2195 MHz
:
ASA Version 9.6(2)
!