Set a system environment variable AUTHZ_JSON_URL
that points to a JSON file with the following structure:
{
"admins": [
"groupA",
"userA"
],
#!/bin/bash | |
function is_active() { | |
local s | |
s=$(echo "$BTOOL_INFO" | grep Nginx | awk -F":" '{print $2}' | xargs) | |
if [ -z "${s}" ] ; then | |
return 1 | |
fi |
#!/bin/bash | |
case $# in | |
0) | |
echo "Usage: $0 {start|stop}" | |
exit 1 | |
;; | |
1) | |
case $1 in | |
start) |
pipeline { | |
agent any | |
stages { | |
stage('Build') { | |
steps { | |
echo 'Hello from Build' | |
} | |
} | |
stage('Test') { | |
steps { |
#!/bin/bash | |
# | |
# Restart Bluetooth Module on Mac OS X | |
# | |
# Requires Blueutil to be installed: http://brewformulas.org/blueutil | |
BT="/usr/local/bin/blueutil" | |
log() { | |
echo "$@" |
jenkins-stats.py is used to generate statics for jenkins server, so far it display the plugin's usage in each job, see related stackoverflow question:how can I know whether the plugin is used by any jobs in jenkins
python-requests module is required
#!/bin/bash | |
# Run from the base directory of your Puppet module | |
echo =================== | |
echo Parser Validation | |
echo =================== | |
find . -name "*.pp" | xargs -n 1 -t puppet parser validate | |
echo =================== | |
echo Linting |
#!/bin/bash | |
# An set of disks to ignore from partitioning and formatting | |
BLACKLIST="/dev/sda|/dev/sdb" | |
# Base directory to hold the data* files | |
DATA_BASE="/media" | |
usage() { | |
echo "Usage: $(basename $0) <new disk>" | |
} |
<?php | |
/** | |
* Implements hook_drush_command(). | |
*/ | |
function seed_derivatives_drush_command() { | |
$items = array(); | |
$items['seed_derivatives'] = array( | |
'description' => "Create image derivatives", |
<?php | |
namespace Widop\Mink\Extension; | |
/** | |
* Dictionary to manage popups. | |
* | |
* @author Benjamin Lazarecki <[email protected]> | |
*/ | |
trait PopupDictionary |