Skip to content

Instantly share code, notes, and snippets.

View saedalavinia's full-sized avatar

Saed Alavinia saedalavinia

  • Amazon Web Services
  • London, Canada
View GitHub Profile
@saedalavinia
saedalavinia / 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
@saedalavinia
saedalavinia / 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 )"