openpgp4fpr:E0C3497126B72CA47975FC322953BB8C16043B43
I hereby claim:
- I am kalrish on github.
- I am djsp (https://keybase.io/djsp) on keybase.
- I have a public key ASBh-unFAXG2Pe7gW_jndDjMi1ALLDvKaPUJWiw6kU_JVwo
To claim this, I am signing this object:
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 kotlin.reflect.full.declaredMemberProperties | |
import kotlin.reflect.full.findAnnotation | |
import kotlin.reflect.full.isSubclassOf | |
import kotlin.reflect.KClass | |
@Target( | |
AnnotationTarget.PROPERTY, | |
) | |
@Retention( | |
AnnotationRetention.RUNTIME, |
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 | |
set -e | |
source_directory="$1" | |
git_commit_id="$2" | |
deployment_bucket="$3" | |
shift 3 |
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
--- | |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: 'Automatic EC2 security group.' | |
Metadata: | |
AWS::CloudFormation::Interface: | |
ParameterGroups: | |
- | |
Label: | |
default: General | |
Parameters: |
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
json_path="$(mktemp --tmpdir -- glawit-check-XXXXXXXXXX)" | |
aws s3api list-objects-v2 --bucket "${bucket}" > "${json_path}" | |
git lfs ls-files --long | while read -r line | |
do | |
oid="${line% \* rhcp/btw/*.*}" | |
path="${line#* \* }" | |
echo "${oid} -> ${path}" | |
jq ".Contents[] | select(.Key == \"${oid}\") | .Size" -- "${json_path}" ; path="${line#* \* }" | |
wc -c -- "${path}" | |
echo |
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
--- | |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: 'KMS key with minimal policy for CloudFormation' | |
Resources: | |
Key: | |
Type: AWS::KMS::Key | |
Properties: { | |
Description: 'Test key', |
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
#include <stdio.h> // size_t, fputc, stdout | |
void output | |
( | |
char c | |
) | |
{ | |
fputc(c, stdout); | |
} |
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
local texio_write = texio.write | |
local texio_write_nl = texio.write_nl | |
local function log_msg( ... ) | |
texio_write_nl( "" ) | |
texio_write( "TEST: " ) | |
texio_write( ... ) | |
texio_write( "\n" ) | |
end |