Skip to content

Instantly share code, notes, and snippets.

View kellylawrence's full-sized avatar
🙂

Kelly Lawrence kellylawrence

🙂
View GitHub Profile
@kellylawrence
kellylawrence / runcommand-onend.sh
Last active June 23, 2020 22:10
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.
#!/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 / wp-dev-env-setup.sh
Created January 25, 2021 19:53
Bash script to help get a dev environment setup for new WP team members
#!/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 / display-switch.sh
Last active April 10, 2022 21:03
Bash script to switch aspect ratios between 4:3 and 16:9 for Retroarch cores
#!/bin/bash
# 1.0
# (c) Apr 2018 Kelly Lawrence
#########
# NOTES #
#########
# aspect_ratio_index = "21" // Core Provided
# aspect_ratio_index = "22" // Custom
@kellylawrence
kellylawrence / product-stock-check.py
Created January 25, 2021 20:12
Python Web Scraping Script (Online Store Stock Check)
# 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'
]