- Thinking Architecturally - Nathaniel Schutta - youtube
- Thinking Architecturally: Lead Technical Change Within Your Engineering Team - oreilly book
- Infrastructure & Ops Superstream Series: CI/CD - oreilly video
- Building Evolutionary Architectures - oreilly book
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
# example of getting file change details along with a batch marker | |
# used to perform single action for "batch" for file changes | |
# set to `true` to echo all file changes | |
DEBUG=false | |
FILE_CHANGE_BATCH_MARKER='--file-change-batch-end--' | |
fswatch --batch-marker="${FILE_CHANGE_BATCH_MARKER}" -0 . | xargs -0 -n 1 -I {} echo {} | while read file_path; | |
do |
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
(() => { | |
class RectProxy { | |
props = { | |
position: (newPos, twojs) => { | |
twojs.doWork(); | |
}, | |
innerColor: (newColor, twojs) => { |
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
// ==UserScript== | |
// @name AWS Blog Article Focus | |
// @namespace http://aws.amazon.com/ | |
// @version 0.1 | |
// @description remove extra content from AWS blog articles | |
// @author Brian Pfeil | |
// @match https://aws.amazon.com/blogs/* | |
// @grant none | |
// @updateURL https://gist.githubusercontent.com/pfeilbr/7d828b65bd49a048e7aa3d587a91001e/raw/aws-blog-article-focus.js | |
// @downloadURL https://gist.githubusercontent.com/pfeilbr/7d828b65bd49a048e7aa3d587a91001e/raw/aws-blog-article-focus.js |
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
// pseudocode | |
const { ReactCDK, App, Stack } = require('@aws-cdk/react') | |
const Bucket = require('@aws-cdk/react/s3') | |
const { CloudFrontDistribution, Origins, DefaultOrigin } = require('@aws-cdk/react/cloudfront') | |
const { Api, Resource, Integration } = require('@aws-cdk/react/apigateway') | |
const Lambda = require('@aws-cdk/react/lambda') | |
const EchoLambda = ( | |
<Lambda> | |
{ |
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
// gh cli test edit | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
float rand_float(float max_value) | |
{ | |
return (float)rand() / ((float)RAND_MAX / max_value); | |
} |
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
cd notes | |
for f in *.md; do | |
first_line=$(head -n 1 $f) | |
if [[ ! $first_line = \#* ]] ; then | |
#echo "${f}" | |
barename=$(basename $f .md) | |
# echo "${barename}" | |
# prepend bare filename as H1 to top of note | |
echo -e "# ${barename}\n\n$(cat $f)" > $f |
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
assumed_role_arn="$(aws sts get-caller-identity --query 'Arn' | sed -e 's/"//g' | sed -e 's/\/[[:alnum:]]*$//')" |
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
// fetch all aws directory api metadata | |
(async () => { | |
const directories = [ | |
{ | |
"directoryId": "event-content" | |
}, | |
{ | |
"directoryId": "amazon-redwood" | |
}, | |
{ |
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
# delete all folders containing the string "conflict" | |
while true | |
do | |
dbxcli ls -l /mac01/Users/brianpfeil/projects/ > paths.txt | |
while read p; do | |
if echo $p | grep -iqF conflict; then | |
full_path=$(echo "/${p#*/}") | |
echo $full_path | |
dbxcli rm --force "$full_path" | |
fi |