Skip to content

Instantly share code, notes, and snippets.

View RyanTheTechMan's full-sized avatar
💎
Garry's Mod yet again

Ryan Ernest RyanTheTechMan

💎
Garry's Mod yet again
  • Falls Church VA. USA
View GitHub Profile
@RyanTheTechMan
RyanTheTechMan / Discovery-Network-Link-Grabber.js
Created February 7, 2023 06:00
This script allows you to get all of the links of episodes of a show on: Discovery, Travel Channel, Investigation Discovery, TLC, HGTV, Food Network, Science Channel, Animal Planet, Destination America, Cooking Channel, OWN, Discovery Life, AHC, Motor Trend, Magnolia Network.
@RyanTheTechMan
RyanTheTechMan / qtools.sh
Last active November 25, 2022 06:40
A script that adds commands that make c++ development faster! Add this file to your .bashrc to use them.
#!/bin/bash
function qrun() {
if (( $# == 0 )); then
echo "Usage: qrun [filename] <-k (keep)>"
return 1
else
g++ -c $1.cc;g++ $1.o -o $1;./$1 "${@:2}"
if (( $# == 2 )); then
if [[ $2 == "-k" ]]; then
echo "[QRUN] Keeping files"
@RyanTheTechMan
RyanTheTechMan / backup-setup.sh
Last active April 10, 2022 22:14
A script that will backup all files located in the current directory to a backup directory. Useful for school projects. Run "sh ./backup-setup.sh" to install. Then restart your terminal and now run "backup" to backup your project.
echo "[EZBackup] Installing..."
cat > ~/backup.sh <<- EOM
#!/bin/bash
function backup() {
if [ \$PWD = \$HOME ]; then
echo "[EZBackup] ERROR: Your current directory is your home directory. Please change to a different directory before running this script."
return 1
fi
if [ \${PWD##*/} = "backups" ]; then
echo "[EZBackup] ERROR: Your current directory is the backups directory. Please change to a different directory before running this script."