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/python3 | |
| # This script is a very basic example of how to list repos using pygithub and | |
| # clone them with an OAuth2 token. Ideally, you'd retrieve the token from a | |
| # secure keystore using something like libsecret, rather than hard-code it into | |
| # the script, and you'd clone using a method that prevents the token from being | |
| # stored in your shell history for security, but this is just an example. | |
| # tested with python3-pygithub-1.58.2-5.fc40.noarch | |
| # docs at https://pygithub.readthedocs.io/ |
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/bash | |
| set -e | |
| cd "$(dirname "$0")" | |
| # check if running in a color terminal | |
| terminalSupportsColor() { | |
| local c | |
| c=$(tput colors 2>/dev/null) || c=-1 |
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/bash | |
| function findTests() { | |
| { | |
| echo 'blah' | |
| git diff --name-only "$2" | grep "$1[.]java" | xargs -n1 basename 2>/dev/null | cut -f1 -d. | |
| } | paste -sd, | |
| } | |
| if [[ -z $1 ]]; then |
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/bash | |
| function getdecor() { | |
| local decors='๐ฅ๐ฏ๐ฅ๐๐ฏ๐๐ฃ๐๐ฆ๐๐๐๐๐๐๐๐๐๐ญ๐ฎ๐ฏ๐ท๐ธ๐น๐บ๐ป๐ผ๐ฝ๐พ๐๐๐๐ ๐๐๐๐๐๐๐๐๐๐ฃ๐ฅ๐ฑ๐ฒ๐๐๐๐๐ ๐ฃ๐ฎ๐ฏ๐ณ๐ธ๐น๐ป๐๐๐๐น๐ ๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐ข๐ฃ๐ค๐ง๐จ๐ฌ๐ฒ๐ณ๐พ๐๐๐ป๐ฝ๐ ๐ก๐ข๐ฃ๐ค๐ฅ๐ฆ๐ง๐ฎ๐ฏ๐ฐ๐ฒ๐ป๐๐๐๐ก๐ฃ๐ ๐๐๐๐๐๐๐ฅ๐ซ๐ฌ๐ญ๐ฎ๐ฑ๐บ๐๐๐ผ๐ฝ๐พ๐ฟ๐๐ง๐จ๐ฉ๐ซ๐ฝ๐ถ๐ธ๐น๐บ๐ค๐ฅ๐ฅ๐ฅ๐ฅ ๐ฅ๐ฅ๐ฅ๐ฅ๐ฅ๐ฅ๐ฆ๐ฆ ๐ฆ๐ฆ๐ฆ๐ฆ๐ฆ๐ฆ๐ฆ๐ฆ๐ฆ๐ฆ๐ฆ๐ฆ๐ฆ๐ฆ๐ฆ๐ฆ๐ฆ๐ฆ๐ฆ๐ฆ ๐ฆจ๐งฌ๐งฒ๐ช๐ช๐ช๐ช' | |
| local res=${decors:$(( RANDOM % ${#decors} )):1} | |
| [[ -n $SSH_CLIENT || -n $SSH_TTY ]] && res='@' | |
| echo "$res" | |
| } | |
| case "$-" in |
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
| package org.apache.accumulo.core.util; | |
| import java.lang.ref.WeakReference; | |
| import java.util.Arrays; | |
| import java.util.HashSet; | |
| import java.util.Random; | |
| import java.util.Set; | |
| import java.util.WeakHashMap; | |
| import java.util.concurrent.Callable; | |
| import java.util.concurrent.ConcurrentHashMap; |
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/bash | |
| set -e | |
| rootDir=$(git rev-parse --show-toplevel) | |
| ver=$(xmllint --shell "$rootDir/pom.xml" <<<'xpath /*[local-name()="project"]/*[local-name()="properties"]/*[local-name()="thrift.version"]/text()' | grep content= | cut -f2 -d=) | |
| if [[ -x ~/bin/thrift-$ver ]]; then | |
| ~/bin/thrift-"$ver" "$@" | |
| else | |
| ~/bin/thrift-0.11.0 "$@" |
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
| # Place file in | |
| # /etc/NetworkManager/conf.d/90-disable-randomization.conf | |
| [device-mac-randomization] | |
| # "yes" is the default for scanning in Fedora 25 | |
| wifi.scan-rand-mac-address=no | |
| [connection-mac-randomization] | |
| ethernet.cloned-mac-address=random | |
| wifi.cloned-mac-address=random |
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
| for x in $(git diff --name-status $(git merge-base master HEAD) | arg2); do | |
| echo $x | |
| git clean -fdx > /dev/null && \ | |
| git checkout $(git merge-base master HEAD) -- $x && \ | |
| (mvn clean verify 2>&1 | tee ../log-$(echo $x | tr / _).txt > ../log-current.txt; [[ ${PIPESTATUS[0]} == 0 ]]) && \ | |
| echo SUCCESS && \ | |
| break || \ | |
| echo FAILURE | |
| done |