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 bash | |
| # Verifies operator upgrade from upstream to fork is a no-op for existing CRs, | |
| # then tests opt-in custom probe ConfigMaps. | |
| # | |
| # Usage: | |
| # [UPSTREAM_VERSION=v1.5.0] [FORK_VERSION=v1.5.1] bash tests/dragonfly/test-upgrade-probes.sh [--cleanup] | |
| set -euo pipefail | |
| CONTEXT="${CONTEXT:-k3d-k3s-default}" | |
| DRAGONFLY_NS="${DRAGONFLY_NS:-default}" |
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 bash | |
| # Usage examples: | |
| # ./az-nsg-lockdown.sh on -g my-rg -v my-vm # VM: lock down (interactive) | |
| # ./az-nsg-lockdown.sh off -g my-rg -v my-vm # VM: unlock (interactive) | |
| # ./az-nsg-lockdown.sh on -g my-rg -s my-vmss # VMSS: lock down via NIC NSG only (interactive) | |
| # ./az-nsg-lockdown.sh off -g my-rg -s my-vmss # VMSS: unlock via NIC NSG only (interactive) | |
| # ./az-nsg-lockdown.sh on -g my-rg -v my-vm --yes # lock down (no prompt) | |
| # ./az-nsg-lockdown.sh off -g my-rg -s my-vmss -y # unlock (no prompt) | |
| set -euo pipefail |
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
| ffmpeg -pattern_type glob -i '*.jpg' -filter_complex "[0:v]transpose=1,crop=1280:1280:0:0[v]" \ | |
| -map "[v]" -c:v libx264 -r 30 -crf 23 -x264-params scenecut=0:open_gop=0:min-keyint=72:keyint=72:ref=4 output.mp4 -y |
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
| # frozen_string_literal: true | |
| # This script is used during the deployment process. It runs 2 threads in parallel: | |
| # | |
| # 1) Calls run-task to execute a migration task within a cluster, and then waits for it to exit with 0 code. | |
| # Throws an exception in case of non-0 exit code; | |
| # | |
| # 2) Waits for all the service to become stable after the deployment. | |
| # | |
| # Both have actually 10 minutes timeout, but if any of them fails before with an exception - the whole process dies immediatelly. |
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
| apiVersion: v1 | |
| data: | |
| mapRoles: | | |
| - rolearn: arn:aws:iam::661556513509:role/eksctl-aws-eks-cluster-1-nodegrou-NodeInstanceRole-KSVSFUXWT7C2 | |
| username: system:node:{{EC2PrivateDNSName}} | |
| groups: | |
| - system:bootstrappers | |
| - system:nodes | |
| - eks-console-dashboard-full-access-group | |
| - rolearn: arn:aws:iam::661556513509:role/AWSReservedSSO_AdministratorAccess_fb8ce9637ede3a97 |
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
| aws ec2 describe-instances --query 'Reservations[].Instances[].[PrivateIpAddress,Tags[?Key==`Name`].Value[]]' --output text | sed '$!N;s/\n/ /' |
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
| """ Fetches all repos under a git organization | |
| and returns last committer to master, date of commit, count of open dependabot security issues with high and critical severity | |
| Results sorted by commit date | |
| Replace ORG_NAME, USERNAME, and GH_TOKEN variables | |
| GH_TOKEN required for authentication | |
| This will use Rate limit at a rate of 1 per repo """ | |
| import os | |
| import json |
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
| # Remove the submodule entry from .git/config | |
| git submodule deinit -f path/to/submodule | |
| # Remove the submodule directory from the superproject's .git/modules directory | |
| rm -rf .git/modules/path/to/submodule | |
| # Remove the entry in .gitmodules and remove the submodule directory located at path/to/submodule | |
| git rm -f path/to/submodule |
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
| import argparse | |
| import requests | |
| import os | |
| import sys | |
| import yaml | |
| headers = {"Authorization": "token {}".format( | |
| os.environ.get('GITHUB_ADMIN_ORG_READ_TOKEN', ''))} | |
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
| import csv | |
| import sys | |
| csv.field_size_limit(sys.maxsize) | |
| MULTILINE_DELIMITER = "2021-09-" | |
| FILENAME="test.csv" | |
| PROGRESS_EVERY_LINES=1000000 | |
| print("Reading RDS csvlog, removing multilines") |
NewerOlder