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
#!/bin/bash | |
#determine h:m:s to run, 10 seconds from now | |
ORIG_DATE=$(date '+%s') | |
echo "orig: $ORIG_DATE" | |
NEW_DATE=$(( $ORIG_DATE + 10 )) | |
echo "new: $NEW_DATE" |
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
#!/bin/sh | |
NAME=$1 | |
shift | |
MOOD=$1 | |
shift | |
NODE=$1 | |
echo "Hi $NAME@$NODE, it's interesting that you feel $MOOD" | |
whoami |
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
name: My plugin | |
version: 1.0 | |
rundeckPluginVersion: 1.0 | |
author: Your name | |
date: 9/26/13 | |
providers: | |
- name: my-plugin | |
service: WorkflowStep | |
title: My Plugin | |
description: Demonstrates plugins |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBFVwoygBEADPrzQqfGJqe0mcyLV86A9qHqZpmAcE7hrnPBHIjrqFL0y5mSWj | |
sZSnAY49zqBHs1t7SiNGfFE1F8tY+pYLfcJ4/lUxkK+Ti4kNEvSViEtGamiW5T8d | |
oe/XUz5PwLKrjnqt3F5CVHk+sfNoQY8PxIpfkR/QXBrCOOE7T0+dYzjECP/na26e | |
TC7fAnjSLbp0tSyU5aNpmk5plXL/tyC7SP/L/bCNihSKmwP3la8kt0JmY4p+OqqA | |
FM3xbn8vAkpZepa5H1pN7C/uDN2Th7v8nMfYIj9/Frl1WTJ5hhQSE1E93DX9ooJ5 | |
aS3w4U3vbN+YPGsy/kIPnVfSobW40boK/Ad4Tnc/CEjzw3uueLnLg4BgpcMHHGzb | |
tgOK7MVDt4YcBs0z2Bi2Wd5ai8JGi00V5rIbtctH9cmiNDu/naDfxNduVC/QsPpu | |
AeaMZ6XXF//1uPF8R5Q0ROrKGzNmcuLO0jyj9tZiwmjEIuadKBviiva6swcReSis |
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
{ | |
"description": "MyGroup allowed access to MyProject only", | |
"context": { | |
"application": "rundeck" | |
}, | |
"for": { | |
"project": [ | |
{ | |
"match": { | |
"name": "MyProject" |
I hereby claim:
- I am gschueler on github.
- I am gschueler (https://keybase.io/gschueler) on keybase.
- I have a public key whose fingerprint is E8B3 2504 E022 A56B 45D9 F262 BC44 BA95 F744 24A6
To claim this, I am signing this object:
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
#!/bin/bash | |
#/ does something ... | |
#/ usage: [..] | |
set -euo pipefail | |
IFS=$'\n\t' | |
readonly ARGS=("$@") | |
# <http://www.kfirlavi.com/blog/2012/11/14/defensive-bash-programming/> | |
# <http://redsymbol.net/articles/unofficial-bash-strict-mode/> |
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
function prompt_func() { | |
previous_return_value=$?; | |
prompt="\h:\W \u" | |
if test $previous_return_value -eq 0 | |
then | |
PS1="${prompt}🍺 " | |
else | |
PS1="${prompt}💩 " | |
fi | |
} |
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
<div>Execution ${execution.id} was <b>${execution.status}</b></div> | |
<ul> | |
<li><a href="${execution.href}">Execution result</a></li> | |
<li><a href="${job.href}">Job</a></li> | |
<li><a href="${execution.projectHref}">Project: ${execution.project}</a></li> | |
<li><a href="${rundeck.href}">Rundeck</a></li> | |
</ul> | |
<p> | |
</p> |