We will use minimalistic Linux distribution called Alpine (5MB)
FROM alpine:latest
RUN apk --update add redis
#!/bin/bash | |
# This assumes that the ~6GB mojave installer is in the /Applications folder. | |
# If it's not, just open the App Store, search Mojave, and you can download the installer file from there. | |
hdiutil create -o /tmp/mojave.cdr -size 6g -layout SPUD -fs HFS+J | |
hdiutil attach /tmp/mojave.cdr.dmg -noverify -mountpoint /Volumes/install_mojave | |
sudo /Applications/Install\ macOS\ mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/install_mojave | |
mv /tmp/mojave.cdr.dmg ~/Desktop/InstallSystem.dmg | |
hdiutil detach /Volumes/Install\ macOS\ mojave |
import json | |
import logging | |
from flask import Flask, g | |
from flask_oidc import OpenIDConnect | |
import requests | |
logging.basicConfig(level=logging.DEBUG) | |
app = Flask(__name__) |
Write-Host "Attempting to mount default registry hive" | |
& REG LOAD HKLM\DEFAULT C:\Users\Default\NTUSER.DAT | |
Push-Location 'HKLM:\DEFAULT\Software\Microsoft\Internet Explorer' | |
if (!(Test-Path Main)) { | |
Write-Warning "Adding missing default keys for IE" | |
New-Item Main | |
} | |
$sp = Get-ItemProperty -Path .\Main | |
Write-Host "Replacing $_ : $($sp.'Start Page')" |
#!/bin/bash | |
if [ $# -eq 0 ]; then | |
echo "Usage: ./pushover <message> [title]" | |
exit | |
fi | |
MESSAGE=$1 | |
TITLE=$2 |