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 | |
set -Euo pipefail | |
DOCKER_APP="/Applications/Docker.app" | |
DOCKER_CLI="${DOCKER_APP}/Contents/Resources/bin/docker" | |
pgrep -qf Docker.app | |
if [ $? != 0 ]; then | |
read -n1 -p "The Docker app is not running, launch it now? [Y/n]" LAUNCH_DOCKER |
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
$user = 'iamonlyoneman' | |
$subreddit = 'KillLaKill' | |
$stateFile = 'fetch-last.txt' | |
function Get-Page { | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory)] | |
[string] $Uri, | |
[Parameter()] |