Skip to content

Instantly share code, notes, and snippets.

@jackblk
jackblk / firefox-geckodriver-alpine-amd64-arm64.Dockerfile
Created December 23, 2021 09:56
Install latest firefox and geckodriver in Docker Alpine. Headless Firefox works for both AMD64 and ARM64.
# ================== Install Firefox & Driver ==================
RUN apk add --no-cache firefox-esr
# Install Geckodriver
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
RUN apk add --no-cache --virtual .build-deps wget \
&& GECKODRIVER_VERSION=$(wget -qO- https://api.github.com/repos/mozilla/geckodriver/releases/latest \
| grep "tag_name" | sed -E 's/.*"([^"]+)".*/\1/') \
&& wget -qO /tmp/geckodriver.tar.gz \
"https://github.com/mozilla/geckodriver/releases/download/$GECKODRIVER_VERSION/geckodriver-$GECKODRIVER_VERSION-linux64.tar.gz" \
@jackblk
jackblk / disable-auto-update-android.md
Last active April 19, 2025 05:39
disable auto update on android, this is for samsung phone

This guide is for Windows.

  • Connect phone via USB to PC, wait a while for drivers to install.
  • Install "Minimal ADB Fastboot" (from XDA-Developers).
  • Enable USB DEBUG under "Config / Developer Options" on phone.
  • Open a Command Prompt under the folder "C:\Program Files (x86)\Minimal ADB and Fastboot"
  • Open phone adb shell: adb shell
  • Use the following commands:
@jackblk
jackblk / send_spoof_email.py
Created February 24, 2025 07:03
Pythons script to send spoofed email to Google based mailboxes.
import datetime
import smtplib
import uuid
TEST_DOMAIN = "example.com"
# Google's SMTP inbound mail server. Use `nslookup -type=mx example.com` to find the MX record.
SMTP_SERVER = "aspmx.l.google.com" # Use an MX record from Step 1
SMTP_PORT = 25 # Google's MX servers listen on port 25