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
# | |
# Instructions for quick gluster server (1 node) setup with a volume on LVM. | |
# No replication, just using localhost. | |
# | |
# See https://docs.gluster.org/en/latest/Administrator%20Guide/Brick%20Naming%20Conventions/ | |
# | |
# Install GlusterFS | |
add-apt-repository ppa:gluster/glusterfs-4.0 | |
apt-get install glusterfs-server |
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 | |
# | |
# Install Oracle JDK 8 for use with SDKMAN | |
# | |
set -eu | |
# This URL can be discovered using https://sites.google.com/view/java-se-download-url-converter | |
DOWNLOAD_URL="https://javadl.oracle.com/webapps/download/GetFile/1.8.0_331-b09/165374ff4ea84ef0bbd821706e29b123/linux-i586/jdk-8u331-linux-x64.tar.gz" | |
TARBALL="jdk-8u331-linux-x64.tar.gz" |
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 | |
# | |
# git-find-roots finds every commit with no parent (initial commits) | |
# and the commit where they were merged. | |
# | |
# Usage: | |
# git-find-roots [commit-ish] | |
# | |
# Example: | |
# git-find-roots master |
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 python | |
# coding: utf-8 | |
""" | |
Adjusts the time tracking for issues in a given JIRA project. | |
Requires 'jira' library: | |
$ pip install jira | |
JIRA credentials need to be stored in a file '.jira_auth.json'. | |
Its contents should be: |
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 | |
if [[ -z ${K8S_JVM_POD} ]]; then | |
echo "K8S_JVM_POD not defined" | |
exit 1 | |
fi | |
EXEC="kubectl exec ${K8S_JVM_POD}" | |
CP="kubectl cp ${K8S_JVM_POD}" |
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/sh | |
# | |
# Build old OpenSSL for usage in old PHP builds | |
# (e.g. PHP 5.3). | |
# | |
# This solution was originally found at: | |
# https://gist.github.com/marulitua/f8932064ec5bfe6a5be9fadac7c5a141 | |
# | |
# Relevant discussions: | |
# https://github.com/phpbrew/phpbrew/issues/418 |
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
# Reproduction for https://github.com/gorakhargosh/watchdog/issues/992 | |
from tempfile import TemporaryDirectory | |
import time | |
import os | |
import os.path | |
from multiprocessing import Process, Queue | |
from pathlib import Path | |
from watchdog.observers.polling import PollingObserver |
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 logging | |
# setting up a JSON formatter for standard library | |
from pythonjsonlogger import jsonlogger | |
logger = logging.getLogger() | |
logHandler = logging.StreamHandler() |
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 | |
set -eu | |
PROG_NAME="$(basename -- "${BASH_SOURCE[0]}")" | |
print_usage() { | |
echo "Usage: $PROG_NAME [-i <ignored pattern>] <SOURCE> <TARGET>" | |
echo "" | |
echo "Examples:" | |
echo " # Compare master to branch v1.x" |
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 -eu | |
_shutdown() { | |
for pid in $(jobs -p); do | |
kill $pid || true | |
done | |
} | |
trap _shutdown EXIT |
NewerOlder