Skip to content

Instantly share code, notes, and snippets.

@ColonelPanics
ColonelPanics / flight-profile-types-from-source-on-solo.sh
Last active April 10, 2024 12:29
Some scripts for tweaking existing solo releases to use newer releases of things
#!/bin/bash
FLIGHT_ROOT="/opt/flight"
export PATH="$PATH:$FLIGHT_ROOT/bin"
VERSION=${VERSION:-type/openflight-web-access}
mv /opt/flight/usr/lib/profile/types /opt/flight/usr/lib/profile/types_orig
git clone https://github.com/openflighthpc/flight-profile-types /opt/flight/usr/lib/profile/types
cd /opt/flight/usr/lib/profile/types
git checkout $VERSION
@ColonelPanics
ColonelPanics / test_queue_fail.sh
Last active January 12, 2024 14:19
Flight Profile Queue Fail Error Replication
#
# Run this setup script from a machine with flight-profile installed with:
# curl -L RAW_URL |/bin/bash
#
#
# Vars
#
PROF_ROOT="/opt/flight/usr/lib/profile/types/"
@ColonelPanics
ColonelPanics / test_identity.sh
Last active January 5, 2024 15:38
Create a test identity for Flight Profile
#
# Run this setup script from a machine with flight-profile installed with:
# curl -L RAW_URL |/bin/bash
#
#
# Vars
#
PROF_ROOT="/opt/flight/usr/lib/profile/types/"
@ColonelPanics
ColonelPanics / az-auth-check.sh
Created October 4, 2021 14:01
Azure App Registration Quick API Test
#!/bin/bash
TENANT_ID=""
CLIENT_ID=""
CLIENT_SECRET=""
SUBSCRIPTION_ID=""
TOKEN="$(curl -X POST -d "grant_type=client_credentials&client_id=$CLIENT_ID&client_secret=$CLIENT_SECRET&resource=https%3A%2F%2Fmanagement.azure.com%2F" https://login.microsoftonline.com/$TENANT_ID/oauth2/token |jq -r '.access_token')"