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
# This generally affects users federated to azuread from gsuite who's email address has changed - You'll still have sync errors | |
# but at least the user can still log in. | |
# This works in Powershell 7.x on mac as well as windows | |
# Requires `Install-Module Microsoft.Graph` | |
# Who are we modifying | |
$email = "[email protected]" | |
# Fix the user |
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
## Replaced by https://github.com/cliv/cs-falcon-protect-intune |
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
# add to ~/.aws/config and add the path to your folder. | |
[profile vscode] | |
region = us-west-2 | |
credential_process = --YOUR $HOME HERE--/.aws/get_credentials_vscode.sh |
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 | |
if [ "$#" -ne 3 ]; then | |
echo "Illegal number of parameters" | |
echo "Usage: multirunner {profile} {hostspec} {command}" | |
exit | |
fi | |
PROFILE=$1 | |
HOSTSPEC=$2 | |
COMMAND=$3 | |
TEMPFILE="/tmp/awsHosts.txt" |
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
<powershell> | |
###### | |
# Charlie Livingston <[email protected]> | |
# MIT Licensed - Do whatever you like with this. | |
# | |
# Simple code for a windows machine to grab a set of .ps1 files off of S3 and | |
# run them locally depengind on how a machine is tagged in EC2 | |
# | |
# The xml-ish <powershell></powershell> tags in the script make the file invalid powershell to run directly in a machine | |
# but are required by EC2Config when passed into the instance as userdata |