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
# https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html | |
$dlurl = "https://awscli.amazonaws.com/AWSCLIV2.msi" | |
$installerPath = Join-Path $env:TEMP (Split-Path $dlurl -Leaf) | |
$ProgressPreference = 'SilentlyContinue' | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
Invoke-WebRequest $dlurl -OutFile $installerPath | |
Start-Process -FilePath msiexec -Args "/i $installerPath /passive" -Verb RunAs -Wait | |
Remove-Item $installerPath | |
$env:Path += ";C:\Program Files\Amazon\AWSCLIV2" |
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
# Set variables | |
$LocalTempDir = $env:TEMP | |
$ChromeInstaller = "ChromeInstaller.exe" | |
$ChromeInstallerPath = "$LocalTempDir\$ChromeInstaller" | |
# Download Chrome installer | |
$DownloadUrl = "http://dl.google.com/chrome/install/375.126/chrome_installer.exe" | |
Invoke-WebRequest -Uri $DownloadUrl -OutFile $ChromeInstallerPath | |
# Install Chrome silently |
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
#!/usr/bin/env bash | |
set -e | |
function usage() { | |
set -e | |
cat <<EOM | |
##### ecs-run ##### | |
Simple script for running tasks on Amazon Elastic Container Service | |
One of the following is required: | |
Required arguments: |
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
# looops through subdirs | |
# look for file or symlink named Makeifle | |
# creates a new one | |
for folder in $(echo *); do | |
if [ -d $folder ]; then | |
cd $folder | |
# test for file | |
if [ -f "Makefile" ] |
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 | |
# abbreviations refer to resource IDs | |
# security group = SG | |
# security group rule = SGR | |
# referencing security group = RGS | |
# SG to delete | |
SG=$1 |
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
#!/usr/bin/env python | |
""" | |
sort terraform variables | |
it's easy to do, just follow these steps: | |
python sort_terraform_variables.py variables.tf > sorted_variables.tf | |
mv sorted_variables.tf variables.tf | |
""" | |
from __future__ import print_function | |
import sys |
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
name: name_of_your_pipeline | |
trigger: | |
- master | |
- other_branches | |
pool: | |
vmImage: 'ubuntu-latest' | |
variables: # variables: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables |
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 installs and starts kafka | |
# the most minimal installation of kafka possible | |
KAFKA_URL=http://mirror.olnevhost.net/pub/apache/kafka/2.1.0/kafka_2.11-2.1.0.tgz | |
install_kafka() { |
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/env python3 | |
""" | |
Script to turn all the SSM parameters in one region into terraform resources | |
it can also turn them into JSON with get_parameters_with_values_as_json() | |
Use different regions with the env var AWS_DEFAULT_REGION | |
ie for Northern Cali use: | |
export AWS_DEFAULT_REGION=us-west-1 | |
""" |
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
--- | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: ubuntu | |
labels: | |
app: ubuntu | |
spec: | |
restartPolicy: Always | |
containers: |
NewerOlder