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
FROM ubuntu:xenial | |
RUN apt-get update | |
RUN apt-get install -y vim git ca-certificates curl openjdk-8-jre | |
RUN apt-get install -y apt-transport-https | |
RUN echo "deb https://download.gocd.org /" > /etc/apt/sources.list.d/gocd.list | |
RUN curl https://download.gocd.org/GOCD-GPG-KEY.asc | apt-key add - | |
RUN apt-get update |
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
package main | |
// Always declare main for the main init part of program | |
import ( | |
"fmt" // For printing feedback | |
"os" // For getting args | |
"os/exec" // For calling external script | |
"strings" // Std string manipulation lib | |
) |
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/python3 | |
import os | |
import sys | |
import re | |
DEBUG_ON = False | |
TRUNCATE = True | |
def printhelp(): |
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
#!/bin/bash | |
set -e | |
# Rather than use bare binary, use all ASCII | |
# for web and clipboard compatibility | |
c_nul="$(echo -e "\033[0m")" | |
c_red="$(echo -e "\033[31;1m")" | |
c_yel="$(echo -e "\033[33;1m")" |
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
#!/bin/bash | |
### Extract the changed files of a commit Usage:help | |
# | |
# Given a commit, extract the full file contents of that commit, and write them to the destination directory (outside the repo) | |
# | |
# extractor-git.sh {copy|cat} COMMIT DESTDIR | |
# | |
# 'cat' simply cats the data, but no file metadata is preserved. No change is made to the repo state | |
# |
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
cred="$(echo -e '\033[31;1m')" | |
cgrn="$(echo -e '\033[32;1m')" | |
cyel="$(echo -e '\033[33;1m')" | |
cblu="$(echo -e '\033[34;1m')" | |
cdef="$(echo -e '\033[0;m')" | |
do_reconcile() { | |
swapfile="$1"; shift | |
realfile="$(dirname "$swapfile")/$(basename "$swapfile"|sed -r 's/^\.(.+)\.swp$/\1/' )" |
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
#!/bin/bash | |
printhelp() { | |
cat <<EOF | |
dwat CONTAINER [CMD ...] | |
EOF | |
} |
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
#!/bin/bash | |
main() { | |
if [[ -z "$*" ]] || [[ "$*" =~ --help ]]; then | |
echo "Provide the path to a keystore to colorize its output" | |
else | |
keystore="$1" | |
dump_keystore | colorize_keystore_stream | c_less | |
fi | |
} |
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
maxi() { | |
if [[ "$1" =~ ^0x[0-9a-f]+$ ]]; then | |
wmctrl -i -r "$1" -b toggle,maximized_vert,maximized_horz | |
# the window will be in the foreground, but not given focus | |
else | |
echo "No valid window supplied: got [$1]" | |
fi | |
} | |
die() { |
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
#!/bin/bash | |
# This tool has since been integrated to https://github.com/taikedz/CertMaker | |
set -euo pipefail | |
scr="$(basename "$0")" | |
printhelp() { | |
cat <<EOF |
OlderNewer