Skip to content

Instantly share code, notes, and snippets.

@marcusball
marcusball / astropic.ps1
Created July 22, 2020 21:55
Astro Pic of the Day
# Download the page
$page = Invoke-WebRequest -Uri "https://apod.nasa.gov/apod/astropix.html"
# Extract a list of all links to a full-size image
$imageLinks = $page.Links | Where-Object outerHTML -Like '*href="image/*'
# Extract the relative path from the HREF attribute
$link = $imageLinks | Select-String -Pattern '"(.*?)"' | % { $_.Matches.Groups[1].Value }
$link | ForEach-Object {
@marcusball
marcusball / keybase.md
Created April 30, 2015 22:41
Keybase.io Verification

Keybase proof

I hereby claim:

  • I am marcusball on github.
  • I am marcusball (https://keybase.io/marcusball) on keybase.
  • I have a public key whose fingerprint is E4B7 787E 208B 72BB 8F4B 975A A4A9 8D20 E0D8 1B6A

To claim this, I am signing this object:

#!/bin/sh
logo="\033[32m
.~~. .~~.
'. \ ' ' / .'\033[31m
.~ .~~~..~. \033[0m _ _ \033[31m
: .~.'~'.~. : \033[0m ___ ___ ___ ___| |_ ___ ___ ___ _ _ ___|_|\033[31m
~ ( ) ( ) ~ \033[0m | _| .'|_ -| . | . | -_| _| _| | | | . | |\033[31m
( : '~'.~.'~' : ) \033[0m |_| |__,|___| _|___|___|_| |_| |_ | | _|_|\033[31m
~ .~ ( ) ~. ~ \033[0m |_| |___| |_| \033[31m