- Clearly distinguish between POST, PATCH, and PUT to ensure proper usage and behavior in API interactions.
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
use std::fs::File; | |
use std::{ | |
collections::BTreeMap, | |
path::PathBuf, | |
time::{Duration, UNIX_EPOCH}, | |
}; | |
use anyhow::Result; | |
use chrono::prelude::*; | |
use clap::{arg, command, Parser}; |
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
use aws_sdk_dynamodb::model::AttributeValue; | |
use serde_json::Value; | |
fn parse_item(value: Value) -> HashMap<String, AttributeValue> { | |
match value_to_item(value) { | |
AttributeValue::M(map) => map, | |
other => panic!("can only insert top level values, got {:?}", other), | |
} | |
} |
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
version: "3" | |
services: | |
localstack: | |
image: localstack/localstack | |
ports: | |
- "4568-4576:4568-4576" | |
- "${PORT_WEB_UI-8080}:${PORT_WEB_UI-8080}" | |
environment: | |
- DOCKER_HOST=unix:///var/run/docker.sock |
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
# Copyright (c) 2018 Bao Nguyen <b@nqbao.com> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in all |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
- Only assign yourself 1-2 tickets at a time
- Split up tickets that take longer than 3 days
- Always use ISO-8601 internally
- Always use UTC internally unless it's for future datetimes
- Always use UTF-8 internally
- Commit messages can complete the following sentence in under 50 characters: "If applied, this commit will "
- Always rebase from master and squash "maintenance" commits (WIP, etc.)
- Make PRs short in time and length - max of 4 days and 400 lines of code
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 | |
set -e | |
set -o pipefail | |
# Add user to k8s using service account, no RBAC (must create RBAC after this script) | |
if [[ -z "$1" ]] || [[ -z "$2" ]]; then | |
echo "usage: $0 <service_account_name> <namespace>" | |
exit 1 | |
fi |
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
package main | |
import ( | |
"bytes" | |
"fmt" | |
"gopkg.in/yaml.v2" | |
) | |
var data = ` |
NewerOlder