- Context variables - availability varies based on workflow step
- github e.g. ${{ github.actor }}
- env
- vars
- job, jobs
- steps
- runner
- secrets
- strategy
- matrix
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 -xe | |
QUERIED_RELEASE="emr-5.29.0" | |
REGION="us-east-1" | |
LIST_CLUSTERS_COMMAND="aws emr list-clusters --region $REGION" | |
COUNTER=0 | |
function CALL_API() { | |
if [ ! -v NEXT_TOKEN ]; then | |
CLI_OUTPUT=$($LIST_CLUSTERS_COMMAND) |
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
# Installs a git helper function which retrieves the password or developer token from Secrets Manager | |
# directly for cloning a repository from a private git repo or pushing back changes upstream. | |
# Storing passwords and tokens in Secrets Manager eliminates the need to store any sensitive information on EFS. | |
# Steps: | |
# 1. Add your password or personal developer token to Secret Manager | |
# 2. Set the secret name, key & email in the script below | |
# 3. Clone your repository via HTTP with the user name in the url, e.g. "git clone http://username@github.com/...." | |
#!/bin/bash |
S3
- Enable Storage Lens
- Enable Intelligent Tiering
- Delete Incomplete Multipart Uploads
- Expire Non-Current Versioned Objects
- Add Lifecycle Rules
Lambda
☐ Refresh Interval
☐ Hot Shards
Batch Load
☐ Refresh Interval set to 0
☐ Replicas set to 0 and increased post data load
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
kubectl get pods --all-namespaces | grep -E OutOfcpu\|Evicted\|Completed\|OOMKilled\|Error\|ContainerStatusUnknown | awk '{print "kubectl delete po " $2 " -n " $1 }' | bash |
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 groovy | |
final List<String> environments = Env.values().collect() { it.name() } | |
pipeline { | |
agent { | |
label any | |
} | |
parameters { |
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
/* Get currently running transactions */ | |
select * from information_schema.innodb_trx | |
/* Get currently running transactions where tables in use */ | |
select * from information_schema.innodb_trx where trx_tables_in_use = 1 | |
/* show locked tables */ | |
show open tables where in_use > 0 ; | |
SHOW ENGINE INNODB STATUS; |
- Match width and height
- Magnetize
- Notes
- Actions
- Link to pages
- Layers (show current and future state)]
- Presentation
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 glob | |
import json | |
import subprocess | |
import sys | |
import json | |
from pathlib import Path | |
env = 'alpha' | |
keyword = '' |
NewerOlder