View .projen-helper.js
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
const { JsonPatch } = require("projen"); | |
const awsConfigureStep = { | |
uses: "aws-actions/configure-aws-credentials@v1-node16", | |
with: { | |
"aws-access-key-id": "${{ secrets.AWS_ACCESS_KEY_ID }}", | |
"aws-secret-access-key": "${{ secrets.AWS_SECRET_ACCESS_KEY }}", | |
"aws-region": "${{ secrets.CDK_DEPLOY_REGION }}", | |
}, | |
}; |
View check.sh
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 | |
# needs jq and npm install -g check-is-deprecated | |
echo '["'$(check-is-deprecated $(curl -s "https://constructs.dev/catalog.json"| jq -c '.packages[] | .name' | sort -u | jq -scr ' join(" ")') | tr '\n' '--')'"]' \ | |
| jq '.[0] | split("--")[] | split(":") | {package: .[0], verdict: (if .[1] == "-✖ npm" then "deprecared" else "gone" end)}' \ | |
| jq -s 'group_by(.verdict)[] | {(.[0].verdict): [.[] | .package]}' | jq -s |
View books_v1.xml
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
<?xml version="1.0"?> | |
<catalog> | |
<book id="bk101"> | |
<author>Gambardella, Matthew</author> | |
<title>XML Developer's Guide</title> | |
<genre>Computer</genre> | |
<price>44.95</price> | |
<publish_date>2000-10-01</publish_date> | |
<description>An in-depth look at creating applications | |
with XML.</description> |
View index.js
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
/** | |
* receives logs from srcds engine via config | |
* logaddress_delall_http (remove all listeners) | |
* logaddress_add_http "https://foo.bar" (add listener) | |
* tranform them to meaningful events and send them to elasticsearch | |
*/ | |
//libs | |
const https = require('https'); | |
const crypto = require('crypto'); |