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
#!/usr/bin/env python3 | |
import sys | |
import re | |
import os | |
import boto3 | |
ssm_client = boto3.client('ssm') |
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
#!/usr/bin/env python3 | |
import boto3 | |
import argparse | |
def create_launch_configuration(lcargs): | |
lc_dict = {} | |
try: |
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
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'vmware-use-header-authn: test' --header 'vmware-api-session-id: null session' 'https://<vcenter>/rest/com/vmware/cis/session' -k -u <username> |
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
#!/usr/bin/env python3 | |
import os | |
import subprocess | |
import json | |
import sys | |
iam_output = subprocess.check_output(["curl -s http://169.254.169.254/latest/meta-data/iam/security-credentials/<role name>], shell=True) | |
#print(iam_output) |
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 -x | |
NEWSPEC_FILE=$RPM_BUILD_DIR/$NEWSPEC_PATH/$NEWSPEC_FILE | |
APP_DIR=$APP_DIR | |
TEMP_FILES='install_dirs files' | |
URL=$URL | |
DELETE_DIRS=../delete_dirs | |
SOURCE_DIR=$RPM_BUILD_DIR/$NEWSPEC_SOURCE | |
SUMMARY=$SUMMARY | |
LICENSE=$LICENSE |
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
[Unit] | |
Description=Geminabox | |
After=network.target | |
[Service] | |
User=geminabox | |
ExecStart=/usr/local/bin/rackup /etc/geminabox/config.ru -o 0.0.0.0 | |
ExecStop=/bin/kill $(ps -ef |grep puma|grep -v grep | awk -F ' ' '{print $2}') | |
[Install] |
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
[Unit] | |
Description=<Application Name> | |
After=network.target | |
[Service] | |
Type=forking | |
User=<Application User> | |
ExecStart=<Path to Applications startup script> | |
ExecStop=<Path to Applications stop script> | |
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
//Gather due date based on fixed version or issue due date | |
string getvers; | |
if (isNull(fixVersions)) { | |
return dueDate; | |
} | |
else { | |
getvers = fixVersions; | |
return admGetProjectVersion(project, getvers).releaseDate; |
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 is the name of the column "Latest comments SIL" code will need to be optimized (first sil script) | |
int lastnumOfComments = 3; | |
string [] allcmt; | |
number [] allCommentIds = getAllCommentIds(key); | |
int t = 0; | |
int arrsize; | |
int mcomments; | |
if (!isNull(allCommentIds)) { | |
if (size(allCommentIds) < lastnumOfComments){ |
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 | |
##################################### | |
# Written By: Thomas Foster # | |
# Date: 04/02/2015 # | |
##################################### | |
#This script will automate the process of moving a vm from | |
#one host to the other using saved states. I don't know how | |
#useful the script can be for larger vm's but I am writing this |
NewerOlder