Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Hunter T. StrangeRanger

🏠
Working from home
View GitHub Profile
View Project-Tracker.md

Project Tracker

This is just an MD file that I'm using to keep track of all the projects that I've finished, plan to work on, etc.

Continuously Work On/Maintain

Project Status: Active – The project has reached a stable, usable state and is being actively developed. OR Maintenance OR

View character-counter.py
#!/usr/bin/python3
###############################################################################
#
# Character Counter
# -----------------
# Has you input a string of characters, then reports how many of each
# character you entered there are in the string.
#
# Version: v1.0.0
View fail2ban-unban.sh
#!/bin/bash
# ########################################################################### #
# Unban IP #
# -------- #
# This script makes it easier to unban IP Addresses that where banned using #
# the application called "fail2ban". #
# ########################################################################### #
red=$'\033[1;31m'
@StrangeRanger
StrangeRanger / heads-or-tails.py
Last active Sep 9, 2020
heads-or-tails-adv.py
View heads-or-tails.py
#!/usr/bin/python3
###############################################################################
#
# Heads Or Tails
# --------------
# This script, when executed, will digitally flip a coin x number of times and
# prints the number of times the outcome was heads and tails. (x = user input)
#
# Version: v1.0.1
View morse-code-converter.py
#!/usr/bin/python3
###############################################################################
#
# Morse Code Converter
# --------------------
# Converts morse code to English and vise versa.
#
# Note: The script can only convert one way. If you mix morse code and English
# in your phrase/string, you will be asked to renter it. This occurs because an
View number-factoring.py
#!/usr/bin/python3
###############################################################################
#
# Number Factoring
# ----------------
# Takes a given number and finds all the factors of that number.
#
# Note: This script does not find the factors of a negative number...
#
@StrangeRanger
StrangeRanger / mass-git-pull.py
Last active Jan 5, 2020
mass-git-pull.py | NOTE: Will be editing this script in the future to make it better
View mass-git-pull.py
#!/usr/bin/python3
# ########################################################################### #
# Mass Git Pull #
# ------------- #
# Performs a git pull on all git repositories located in a specific directory #
# on a system. #
# #
# Supported OS #
# ============ #
@StrangeRanger
StrangeRanger / html-image-list.py
Last active Jan 5, 2020
html-image-list.py | NOTE: Will be editing this script in the future to make it better
View html-image-list.py
#!/usr/bin/python3
# ########################################################################### #
# HTML Image List #
# --------------- #
# Makes it easier to add images to an html file, by printing out all of the #
# names of all images in a directory, placed inside of a html link. (e.g. #
# Image name: "2018-11-20 2002.30.21.jpg" | output: "<a #
# href='2018-11-20%2002.30.21.jpg' target='_blank'><img #
# src='2018-11-20%2002.30.21.jpg' alt='2018-11-20 02.30.21.jpg' width=100% #
@StrangeRanger
StrangeRanger / matrix-phone-keywords.py
Last active Jun 15, 2019
THIS SCRIPT HAS NO USEFUL PRUPOSE. It is a script that was written up for a scenario at a SkillsUSA programming competition. It was supposed to connect any of 10 specified keywords to a randomized phone number. If the randomized keyword is one of the 10 knowns keywords, the call is excepted, but if the keyword did not match any of the known keyw…
View matrix-phone-keywords.py
import random
import string
accepted_keywords = ["(nothing)", "abc", "deft", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz"]
# creates a random phone number
def random_phone_number():
phone_number = [random.randrange(10) for i in range(10)]
return "({}{}{}){}{}{}-{}{}{}{}".format(*phone_number)
You can’t perform that action at this time.