This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #This script does the following: | |
| #-prompts the user for a credential name | |
| #-queries the default yubikey for a TOTP token with that credential | |
| #-auto-types the token into another window | |
| #The use case for this is to retrieve a TOTP token for a given website or application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #sudo apt install icnsutils icoutils imagemagick | |
| #Args are: | |
| #-input file | |
| #-output directory | |
| #-max size | |
| #Input file must be a PNG file and should be bigger than maxsize. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| This script will run on a linux system which uses dnsmasq. | |
| It extracts cached DNS entries from dnsmasq's logs and writes them to | |
| your system's hosts file. | |
| It also looks for CNAME entries and attempts to "dig" them, then writes | |
| the resolved IP addresses to your system's hosts file as well. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| import glob | |
| for file in glob.glob("*.rpy"): | |
| with open(file) as f: | |
| lookingForSide = False | |
| for line in f: | |
| if lookingForSide: | |
| m = re.search('image side (\w+) (\w+)', line) | |
| if m: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| """ | |
| To be fixed up and commented at a later date... | |
| This script does the following: | |
| -reads an original rpy script | |
| -reads a translated version of it | |
| -creates a mapping of language to language by comparing the two files | |
| -applies the translation to a directory with files from renpy's translation extractor process |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/env/python3 -tt | |
| def findJs(walk_dir, r): | |
| functionsToReturn = [] | |
| for root, subdirs, files in os.walk(walk_dir): | |
| if len(root) == 1 or root[0] != '.': #ignore hidden folders, like .git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #This script requires an Android device that has development mode enabled, and | |
| #has given the computer running this script permission to access it via adb. | |
| # | |
| #The device must be attached to the computer in order for the script to run. | |
| #ie. Connect the two via the USB cable, or whatever you use to connect via adb. | |
| # | |
| #Wireless adb should be possible, but is not currently handled. | |
| #If you know how to use adb over wifi, you should know what changes are needed. |