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
# Include our pre-engineered Gitlab-CI Templates | |
include: | |
# This is our global base and templates, always should be included together | |
- project: 'devops/gitlab-ci-templates' | |
ref: master | |
file: '/base.yml' | |
- project: 'devops/gitlab-ci-templates' | |
ref: master | |
file: '/global-templates.yml' | |
- project: 'devops/gitlab-ci-templates' |
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 | |
# If not AWS Amazon Linux, install awscli... | |
# https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html | |
# Make sure to install curl groff less, eg: | |
apt-get install curl groff less | |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" | |
unzip awscliv2.zip | |
./aws/install |
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 csv | |
import random | |
# 1000000 and 52 == roughly 1GB (WARNING TAKES a while, 30s+) | |
rows = 1000000 | |
columns = 52 | |
print_after_rows = 100000 | |
def generate_random_row(col): | |
a = [] |

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
export KIND=PriorityClass | |
export NAME=workflow-controller | |
export RELEASE=argo-workflows | |
export NAMESPACE=argo | |
kubectl annotate $KIND $NAME meta.helm.sh/release-name=$RELEASE | |
kubectl label $KIND $NAME app.kubernetes.io/managed-by=Helm | |
kubectl annotate --overwrite $KIND $NAME meta.helm.sh/release-namespace=$NAMESPACE |
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: eksctl.io/v1alpha5 | |
kind: ClusterConfig | |
metadata: | |
name: master | |
region: us-east-1 | |
version: "1.21" | |
iam: | |
withOIDC: true |
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
/** | |
* USB HID Keyboard scan codes as per USB spec 1.11 | |
* plus some additional codes | |
* | |
* Created by MightyPork, 2016 | |
* Public domain | |
* | |
* Adapted from: | |
* https://source.android.com/devices/input/keyboard-devices.html | |
*/ |
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": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowListUsersAllIfMFA", | |
"Effect": "Allow", | |
"Action": [ | |
"iam:ListUsers", | |
"iam:ListPolicies", | |
"iam:ListGroups", |
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 python3 | |
from ghapi.all import GhApi | |
import time | |
import json | |
api = GhApi() | |
# If you have rate limit issues, you might need this to check it... | |
#data = api.rate_limit.get() | |
#print(data) | |
#exit(0) |
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
# List of all (public) AWS regions as of Jun 15, 2021 | |
locals { | |
aws_regions_list = [ | |
"ap-northeast-1", | |
"ap-northeast-2", | |
"ap-northeast-3", | |
"ap-south-1", | |
"ap-southeast-1", | |
"ap-southeast-2", | |
"ca-central-1", |
NewerOlder