Skip to content

Instantly share code, notes, and snippets.

View saedthedevopsguru's full-sized avatar

Saed Alavinia saedthedevopsguru

View GitHub Profile
@saedthedevopsguru
saedthedevopsguru / fly.sh
Last active February 13, 2019 15:26
Automate Concourse LDAP Login using fly
## Variables required
CONCOURSE_URL="https://my.ci.com"
CONCOURSE_USER="a_user"
CONCOURSE_PASSWORD="a_password"
CONCOURSE_TEAM="some_team"
CONCOURSE_TARGET=mytarget
## Create a file named token that will be used to read and write tokens
touch token
@saedthedevopsguru
saedthedevopsguru / bash.sh
Last active February 13, 2019 15:35
Bash Header
#!/usr/bin/env bash
[ "$VERBOSE" ] && set -x
set -euo pipefail
THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"