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
name = "python" | |
version = "3.8.6" | |
authors = [ | |
"Guido van Rossum" | |
] | |
description = \ | |
""" |
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/python2.7 | |
# -*- coding: utf-8 -*- | |
''' | |
Defaults Monitor - tool to sniff defaults keys and values using unified log | |
to launch use standard python 2.7, eg python2.7 ./defsmon.py | |
''' | |
import os |
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
# busmon.py | |
# Monitor CloudWatch Logs for EventBridge traffic. | |
# | |
# This script assumes that there is a Lambda function snooping an EventBridge bus | |
# and logging the events to a CloudWatch Logs group. | |
# | |
# Your format will likely be different and will require slight adjustments to the parsing | |
# logic below. The default format assumed for this version is: | |
# timestamp and other stuff|field|field|field|SNOOPED detail-type: <eventName> jsonString | |
# That is 5 pipe-delimited fields, where the last field is the only field used. |
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
package main | |
import "fmt" | |
import "time" | |
import "math" | |
var exponentialBackoffCeilingSecs int64 = 14400 // 4 hours | |
func main() { | |
fmt.Println("Hello World") |
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 | |
# Relies on github API: https://developer.github.com/v3/repos/releases | |
# You can call this script with the following command | |
# ./helm-validate-and-publish.sh '<helm_url>' '<git_token>' '<git_owner>' '<github_repository>' '<git_commit_id>' '<index_branch>' | |
# Requires Helm v2 to already be installed | |
############# |
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
# In a PS terminal, type "code $profile" and put this in there | |
function killall { | |
param( | |
[ArgumentCompleter( | |
{ | |
param($cmd, $param, $values) | |
get-process | | |
? { $_.Name.StartsWith($values, [StringComparison]::OrdinalIgnoreCase) } | |
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
# https://vexx32.github.io/2018/10/26/Anonymous-Functions/ | |
function Retry() | |
{ | |
param( | |
[Parameter(Mandatory=$true)][Action]$action, | |
[Parameter(Mandatory=$false)][int]$maxAttempts = 3 | |
) | |
$attempts=1 |
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/sh | |
# This script creates a bundle of git commits between START and END. | |
# It also tars the lfs files that changed in those commits. | |
# When you unbundle on the receiving side you should untar the LFS tar *before* | |
# running 'git pull' on the bundle file. | |
# Note that this is just an example script that doesn't do error checking, and | |
# also doesn't account for submodules, etc. YMMV | |
# Start and end commits of bundle |
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
package main | |
import ( | |
"fmt" | |
"syscall" | |
"unicode/utf16" | |
"unsafe" | |
) | |
//https://github.com/golang/go/wiki/WindowsDLLs |
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
"""These are utilities for connecting open-source pipeline Avalon with CG-Wire using Qtazu | |
See: | |
- https://github.com/getavalon/core | |
- https://github.com/Colorbleed/qtazu | |
References: | |
- https://github.com/getavalon/docker/blob/master/volume/sync.py#L227 | |
# How it works: |