This file contains 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
for config in "${HOME}"/.config.d/*.sh; do | |
. "${config}" | |
done | |
unset -v config |
This file contains 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
export CLEAR=`printf '\033[0m'` | |
# EFFECTS / FORMATTING | |
export BOLD=`printf '\033[1m'` | |
export DIM=`printf '\033[2m'` | |
export UNDERLINE=`printf '\033[4m'` | |
# FOREGROUND | |
export BLACK=`printf '\033[30m'` | |
export RED=`printf '\033[31m'` |
This file contains 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
# This file would be identical to .profile and isn't needed in addition, it just makes the gist more findable | |
# .profile is called if bash will be invoked with the name `sh`, so it's more portable | |
# The same or a similar file might also be named .bashrc (for a non-login interactive shell invocation) | |
# See the section INVOCATION of `man bash` for the technical nuances of when to use which filename |
This file contains 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 | |
import json | |
import os | |
import time | |
import re as regex | |
from zipfile import ZipFile as zipfile, is_zipfile as is_zipfile | |
import requests |
This file contains 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 | |
import os | |
import requests | |
from re import compile as compile_regex | |
from hashlib import md5 as checksum | |
from zipfile import ZipFile as zipfile | |
from html.parser import HTMLParser | |
# Class to extract the link to the download page of the most recent (non-beta) version |
This file contains 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 bash | |
# if there are no arguments, or if the first argument is -h or --help | |
if test ${1:--h} = -h -o ${1:--h} = --help; then | |
echo "Usage: ${0} <buildtype> <src lib root> <destination lib dir> [<libnames>...]" | |
echo "<buildtype> is eg debug or release" | |
echo "<src lib root> is the directory containing the repos where libraries are to be found" | |
echo "<destination lib dir> is the directory within the repo to which files should be copied" | |
echo "<libnames> are the names of all libraries that should be copied (eg 'libcore')" | |
echo "if no libraries are specified, the libraries already found in the destination will be copied again." |
This file contains 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 bash | |
POSTMAN_URL="https://dl.pstmn.io/download/latest/linux64" | |
DL_LOCATION="/tmp/postman" | |
UPDATE_NAME="update.tar.gz" | |
ORIG_NAME="Postman" | |
NEW_NAME="postman" | |
LINK_LOCATION="/opt/bin" | |
DL_ARCHIVE="${DL_LOCATION}/${UPDATE_NAME}" |
This file contains 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 bash | |
usage() { | |
echo Usage: | |
echo "$0 <info_plist_file> [<build_number_directory>] [-v]" | |
echo "If a build number directory is given, the saved number will be checked," | |
echo " and if it exists and is greater than the build number in the info plist," | |
echo " it will be incremented and saved back to the given build number directory." | |
echo "If it does not exist, or it is smaller than the info plist build number," | |
echo " the info plist number will be incremented and saved back." |
This file contains 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 bash | |
archiveflag="--keep-archive" | |
deleteflag="--delete" | |
nullflag="-" | |
archivedirectory="${HOME}/Library/JenkinsArchives" | |
configdir="${archivedirectory}/configs" | |
archivename=jenkins.tar.gz |
NewerOlder