Skip to content

Instantly share code, notes, and snippets.

View firxworx's full-sized avatar

Kevin Firko firxworx

View GitHub Profile
@firxworx
firxworx / scrape-images.py
Created February 20, 2018 23:53
Web scraping with python: download all files linked to from a given web page with BeautifulSoup, urllib, and shutil
import urllib
import shutil
import re
from pathlib import Path
from bs4 import BeautifulSoup
# target page containing links to the image files
target_page = 'http://example.ca/image_links.php'
# local path
@firxworx
firxworx / pma-docker.sh
Created October 5, 2023 00:41
bash script to launch phpmyadmin docker that connects to a running wp-env (@wordpress/env) database for local wp development
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
# ---------------------------------------------------------------------------------------------------------------------
# script runs/stops phpmyadmin docker image as a container that's configured to connect to a running wp-env database
# author: Kevin Firko (@firxworx)