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 | |
# lored.sh | |
# Starts and stops local redis instances by index | |
# so that you don't need to manually type "redis-server --port...." and then later manually `kill` them. | |
# Author; George Lester | |
# Date; 2015/12 | |
### |
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 python | |
# installAPK.py | |
# Author; George Lester | |
# Created; 2016-01 | |
# Uninstalls (and reinstalls) the given APK by path. | |
# This is needed in some cases where: | |
# - signed/unsigned APKs conflict, | |
# - `adb install -r` does not actually do anything, |
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 python | |
# syncUnchangeP4.py | |
# Date: 2016-01 | |
# Author; George Lester | |
# Recurses all folders underneath the path given by the first positional parameter, | |
# finding all git repos. As it finds repos, it checks to see if they're gitp4 repos. | |
# If the repo is gitp4 and contains no local uncommitted changes, this performs a `git p4 rebase`. |
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 python | |
# Invokes a build of this project's assets as a unitypackage. | |
# Working directory must be in the top-level of the project, i.e., "Assets" must be directly underneath cwd. | |
import sys | |
import os | |
import subprocess | |
from distutils.spawn import find_executable | |
# Determines a Unity editor executable that is available from the PATH. |
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 | |
# headset.sh | |
# Created; April 2018 | |
# Author; George Lester | |
# Under Mint Linux 17 and 18, on multiple devices, I consistently found that | |
# my bluetooth headset wouldn't reliably use a2dp, instead favoring the phone profile, | |
# and would completely refuse to switch to a2dp. |
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 | |
# No arguments - run in the same directory as your "*.uproject" file. | |
UNR_PATH="<PATH_TO_YOUR_UNREALENGINE>/UnrealEngine" | |
RANDNUM=$(( ( RANDOM % 1000 ) + 1000 )) | |
CURR_DIR=$(pwd) | |
PROJECT_PATH=$(find ${CURR_DIR} -maxdepth 1 -name "*.uproject") | |
PROJECT_FILE=$(basename ${PROJECT_PATH}) | |
PROJECT_NAME=${PROJECT_FILE%.*} |
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 | |
# Acquires a certificate for the given domain. | |
# Runs the certbot container - so as to not litter the host FS with python nonsense. | |
# If the keys do not already exist, this will generate strong elliptical curve keys (not susceptible to Logjam). | |
# Resultant certs/keys are placed in `/etc/letsencrypt/certs`, which ought to be mounted into other applications. | |
# Must be run from a device able to take traffic for the given domain name, | |
# since this hands-off method uses an http challenge to show LetsEncrypt that we own the domain. |