Skip to content

Instantly share code, notes, and snippets.

@kellylawrence
kellylawrence / product-stock-check.py
Created Jan 25, 2021
Python Web Scraping Script (Online Store Stock Check)
View product-stock-check.py
# Imports
from bs4 import BeautifulSoup
import requests
# Target URL's
targetURLs = [
'https://www.rightstufanime.com/Lupin-the-3rd-Blood-Seal-of-the-Eternal-Mermaid-Blu-ray',
'https://www.rightstufanime.com/Lupin-the-3rd-Goemons-Blood-Spray-Blu-ray',
'https://www.rightstufanime.com/Lupin-the-3rd-Jigens-Gravestone-Blu-ray'
]
@kellylawrence
kellylawrence / wp-dev-env-setup.sh
Created Jan 25, 2021
Bash script to help get a dev environment setup for new WP team members
View wp-dev-env-setup.sh
#!/bin/bash
# Program:
# Helps get a dev environment setup for new WP team members.
# History:
# 16.Feb.2018 kellylawrence Add Homebrew install and fixed typos.
# 2.Feb.2018 chriswiseman Updated VS Code extensions.
bold=$(tput bold)
normal=$(tput sgr0)
@kellylawrence
kellylawrence / runcommand-onend.sh
Last active Jun 23, 2020
Simple bash script to randomly set a `launching.jpg` runcommand image. Place in `/opt/retropie/configs/all`. More info at https://github.com/retropie/retropie-setup/wiki/runcommand#adding-custom-launching-images.
View runcommand-onend.sh
#!/bin/bash
# 1.1
# (c) Jun 2020 Kelly Lawrence
# Set current directory to location of this bash script.
cd "$(dirname "$0")"
# Randomly rename all (*.jpg) image files in current directory.
for F in *.jpg ; do
sudo mv $F $RANDOM.jpg
@kellylawrence
kellylawrence / display-switch.sh
Last active Jan 25, 2021
Bash script to switch aspect ratios between 4:3 and 16:9 for Retroarch cores
View display-switch.sh
#!/bin/bash
# 1.0
# (c) Apr 2018 Kelly Lawrence
#########
# NOTES #
#########
# aspect_ratio_index = "21" // Core Provided
# aspect_ratio_index = "22" // Custom