View Install_Python_Ubuntu.sh
This file contains 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 | |
# This script will install specific versions of Python on Ubuntu Linux servers | |
if [ "$(whoami)" != "root" ]; then | |
echo "WARNING: You must run this script as 'root'" | |
# This shortcut method will fail if the script file does not have execute permissions | |
exec sudo -- "$0" "$@" | |
fi | |
inputVersion=$1 | |
if [[ $inputVersion == "" ]]; then |
View create_jss_account.py
This file contains 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
import getpass | |
import sys | |
import xml.etree.ElementTree as Et | |
import requests | |
try: | |
NEW_USERNAME = sys.argv[1] | |
except IndexError: | |
print('No username provided!') |
View Enabled_Disabled_Policies.py
This file contains 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
import base64 | |
import getpass | |
import sys | |
import xml.etree.ElementTree as Et | |
import urllib | |
import urllib2 | |
reload(sys) | |
sys.setdefaultencoding('utf-8') |
View build_jamfpro_docker_version.sh
This file contains 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
# Run from a directory that contains your ROOT.war file. | |
# Change VERSION to that of the ROOT.war being deployed | |
VERSION=10.17.0 | |
docker build . -t jamfpro:${VERSION} -f - <<EOF | |
FROM jamfdevops/jamfpro:0.0.10 | |
ADD ROOT.war /data/ | |
EOF |
View sample-event-source.yaml
This file contains 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
MyFunction: | |
Type: AWS::Serverless::Function | |
Properties: | |
Runtime: python3.8 | |
CodeUri: ./src/my_function | |
Handler: index.lambda_handler | |
Events: | |
TableChanges: | |
Type: EventBridgeRule | |
Properties: |
View example-table.yaml
This file contains 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
MyTable: | |
Type: AWS::DynamoDB::Table | |
Properties: | |
BillingMode: PAY_PER_REQUEST | |
AttributeDefinitions: | |
- AttributeName: pk | |
AttributeType: S | |
- AttributeName: sk | |
AttributeType: S | |
- AttributeName: gsi1_pk |
View stepception-template.yaml
This file contains 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
AWSTemplateFormatVersion: 2010-09-09 | |
Transform: AWS::Serverless-2016-10-31 | |
Resources: | |
HttpApi: | |
Type: AWS::Serverless::HttpApi | |
Properties: | |
StageName: prod | |
DefinitionBody: |
View dynamodb-eventbus-stream-processor.py
This file contains 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
from datetime import datetime | |
import json | |
import os | |
import boto3 | |
EVENT_BUS = os.getenv("EVENT_BUS") | |
events_client = boto3.client("events") |
View ami-lookup.yaml
This file contains 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
AWSTemplateFormatVersion: 2010-09-09 | |
Transform: AWS::Serverless-2016-10-31 | |
Resources: | |
NatInstaceAmi: | |
Type: AWS::CloudFormation::CustomResource | |
Properties: | |
ServiceToken: !GetAtt NatInstanceAmiLookup.Arn |
View jamfpro-docker-compose.yml
This file contains 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
version: "3" | |
services: | |
mysql: | |
image: "mysql:5.7" | |
networks: | |
- jamfnet | |
ports: | |
- "3306:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: "jamfsw03" |
OlderNewer