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
## Macro title: Apiary | |
## Macro has a body: Y | |
## Body processing: Selected body processing option | |
## Output: Selected output option | |
## | |
## Developed by: Rijnhard Hessel | |
## Date created: 10/02/2016 | |
## This is an example macro | |
## @param Subdomain:title=Subdomain|type=string|required=true|desc=Apiary subdomain to load |
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
#sysvinit /etc/default/docker | |
#append '--bip=172.17.42.1/24 --dns=172.17.42.1' to DOCKER_OPTS | |
DOCKER_OPTS="-H tcp://127.0.0.1:4243 -H unix:///var/run/docker.sock --bip 172.17.42.1/24 --dns 172.17.42.1 --dns 8.8.8.8 --dns 8.8.4.4 --dns-search service.consul" |
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 | |
#first parameter needs to be webhook endpoint | |
#the credentials to check the Bitbucket rest API need to be inserted into the Curls. | |
( | |
LAST_COMMIT= | |
BRANCH_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
/** | |
* @class Flags | |
* @constructor | |
* @param {Array} newFlags Optional array of flag keys to define when the flags module is instantiated | |
*/ | |
Flags = function( newFlags ){ | |
this.flags = 0; | |
this.flagHash = {}; | |
this.keys = 0; | |
if(newFlags){ |
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
SET NAMES 'UTF8'; | |
SET CHARACTER SET 'UTF8'; | |
SET @EXT = 7443; | |
SET @EXTV = concat('vmu', @EXT); | |
SET @CHANNEL = concat('%/', @EXT, '-%'); | |
SELECT * FROM asteriskcdrdb.cdr | |
where ( | |
dstchannel LIKE @CHANNEL |
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 | |
if [ $# -lt 3 ]; then | |
echo "$0 <app> <channel> <binpath> [*args]" | |
exit 1 | |
fi | |
app=$1 | |
channel=$2 | |
binpath=$3 | |
shift | |
shift |
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
Node Interpreter: /{project_root}/node_modules/.bin/babel-node | |
Node Parameters: --config-file "/{project_root}/.babelrc" --ignore "/{project_root}/node_modules" | |
Working Directory: /{project_root} | |
Environment Variables: NODE_PATH="/{project_root}/node_modules" | |
JavaScript File: {path to any file no matter location} |