Skip to content

Instantly share code, notes, and snippets.

View Brandawg93's full-sized avatar
🤔

Brandon McFarlin Brandawg93

🤔
View GitHub Profile
@Brandawg93
Brandawg93 / notify_new_device.sh
Created November 23, 2023 22:46
Send new device notification to pushover.net
#!/bin/sh
cat << "EOF" > /etc/hotplug.d/dhcp/90-newdev
[ "$ACTION" == "add" ] || exit 0
# [ "$ACTION" == "add" -o "$ACTION" == "update" ] || exit 0
known_macs="/etc/known_macs"
user_key="your-user-key"
api_key="your-api-key"
@Brandawg93
Brandawg93 / google_login.ts
Last active July 23, 2023 03:08
Login to Google Account via Puppeteer
import puppeteer from 'puppeteer-extra';
import pluginStealth from 'puppeteer-extra-plugin-stealth'; // Use v2.4.5 instead of latest
import * as readline from 'readline';
puppeteer.use(pluginStealth());
// Use '-h' arg for headful login.
const headless = !process.argv.includes('-h');
// Prompt user for email and password.
@Brandawg93
Brandawg93 / docker-compose.yml
Last active January 17, 2020 14:27
Secure Unbound using Docker and NordVPN
version: '3'
services:
unbound:
image: mvance/unbound-rpi:latest #use 'mvance/unbound:latest' if not on a raspberry pi
container_name: unbound
network_mode: service:vpn
restart: unless-stopped
vpn: