Skip to content

Instantly share code, notes, and snippets.

@dhoetger
dhoetger / #RiteAidVaccineAvailabilityCheckerTestHarness.ps1
Last active April 8, 2021 20:01
These PowerShell scripts power the @NYSRAVaxFinder, @DERAVaxFinder and @EastLARAVaxFind Twitter bots which monitor Rite Aid stores in New York State, Delaware and the East Los Angeles(ish) area for available vaccine appointments and tweets about it. https://twitter.com/NYSRAVaxFinder https://twitter.com/DERAVaxFinder https://twitter.com/EastLARA…
# Rite Aid Vaccine Availability Checker Test Harness
$stores = @(
[pscustomobject]@{Address='111 East Avenue 26, Los Angeles, CA 90031'; City='Lincoln Heights'; Zip=90031; StoreNumber=5440}
)
function CheckSlots ([pscustomobject]$store)
{
$ua = "Microsoft Edge Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393"
$baseurl = "https://www.riteaid.com/services/ext/v2/vaccine/checkSlots?storeNumber="

Keybase proof

I hereby claim:

  • I am dhoetger on github.
  • I am dhoetger (https://keybase.io/dhoetger) on keybase.
  • I have a public key ASAdETLu23KGtqKMhWOGUsgviYmP9Y1pSDfi1xhwxodhygo

To claim this, I am signing this object:

This file has been truncated, but you can view the full file.
PS C:\Users\student> C:\Users\student\Desktop\ArpTest.ps1
WARNING: 2018-02-12 18:06:13: 192.168.207.254 00-50-56-96-4e-c4 Reachable
WARNING: 2018-02-12 18:06:19: 192.168.207.254 00-50-56-96-4e-c4 Reachable
WARNING: 2018-02-12 18:06:24: 192.168.207.254 00-50-56-96-4e-c4 Reachable
WARNING: 2018-02-12 18:36:14: 192.168.207.254 00-50-56-96-6e-13 Reachable
WARNING: 2018-02-12 18:36:19: 192.168.207.254 00-50-56-96-6e-13 Reachable
WARNING: 2018-02-12 18:36:24: 192.168.207.254 00-50-56-96-6e-13 Reachable
WARNING: 2018-02-12 18:36:29: 192.168.207.254 00-50-56-96-6e-13 Stale
WARNING: 2018-02-12 18:36:34: 192.168.207.254 00-50-56-96-6e-13 Stale
WARNING: 2018-02-12 18:36:39: 192.168.207.254 00-50-56-96-6e-13 Stale
@dhoetger
dhoetger / Compile_ffmpeg_and_vlc.sh
Last active March 6, 2018 02:36
Compiling VLC 2.2.8 on PiCore 9.0.3
tce-load -iw compiletc
tce-load -iw autoconf
tce-load -iw gettext
tce-load -iw automake
tce-load -iw libtool
tce-load -iw liba52
tce-load -iw libavahi
tce-load -iw avahi-dev
tce-load -iw bzip2-dev
tce-load -iw dbus-glib-dev
@dhoetger
dhoetger / ArpSpoofMonitor.ps1
Last active April 4, 2018 05:40
Given a known IP and MAC, this PowerShell script monitors ARP cache changes indicative of ARP spoofing and provides the offender's true IP, if determinable.
# ARP Spoof Monitor
# D. Hoetger 2018-02-13
# CONFIGURABLE PARAMETERS
$monitorIP = "192.168.207.254"
$validMAC = "00-50-56-96-32-30"
$logFile = "c:\users\student\Desktop\ArpMonitor.log" # comment out this line to disable logging
#########################
# Requires Administrative Permissions (for ARP cache entry deletion); test and relaunch requesting elevation if necessary