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
$ ls -1 | |
example.rego | |
input.json | |
$ bat -pp example.rego | |
package example | |
default allow := false |
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
~ $ minikube start --network-plugin=cni --cni=false | |
😄 minikube v1.29.0 on Ubuntu 22.10 | |
✨ Automatically selected the virtualbox driver. Other choices: none, ssh | |
❗ With --network-plugin=cni, you will need to provide your own CNI. See --cni flag as a user-friendly alternative | |
👍 Starting control plane node minikube in cluster minikube | |
🔥 Creating virtualbox VM (CPUs=2, Memory=6000MB, Disk=20000MB) ... | |
🐳 Preparing Kubernetes v1.26.1 on Docker 20.10.23 ... | |
▪ Generating certificates and keys ... | |
▪ Booting up control plane ... | |
▪ Configuring RBAC rules ... |
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
# example derived from https://kubernetes.io/docs/tasks/administer-cluster/extended-resource-node/ | |
NODE_NAME="foo" | |
URL="localhost:8001/api/v1/nodes/${NODE_NAME}/status Content-Type:application/json-patch+json" | |
DATA='[{"op": "add", "path": "/status/capacity/example.com~1dongle", "value": "4"}]' | |
echo -n "${DATA}" | http PATCH "${URL}" | |
# or | |
http PATCH "${URL}" <<< "${DATA}" |
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] | |
name = "simple-rust" | |
version = "0.1.0" | |
authors = ["Steven Pequeno <[email protected]>"] | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
algonaut_client = "0.2.0" |
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
$ ./sandbox down | |
Stopping sandbox containers... | |
Stopping algorand-sandbox-indexer ... done | |
Stopping algorand-sandbox-algod ... done | |
Stopping algorand-sandbox-postgres ... done | |
$ ./sandbox clean | |
Cleaning up sandbox environment... |
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
def evaluate_compliance(event, configuration_item, valid_rule_parameters): | |
iam = get_client('iam', event) | |
users = get_all_users(iam) | |
evaluations = [] | |
for user in users: | |
e = build_evaluation(user["UserId"], 'COMPLIANT', event, annotation="testing") | |
evaluations.append(e) | |
return evaluations | |
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
-- Elm 0.19.0 | |
import Browser | |
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (..) | |
import Json.Encode exposing (..) | |
main = Browser.sandbox { init = init, view = view, update = update } |
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
# AWS - https://aw.certmetrics.com/amazon/public/verification.aspx | |
AWS Certified DevOps Engineer - Professional - 6SPY1SVKDF4Q1N97 (Mar 2018) | |
AWS Certified Solutions Architect - Professional - SM19EYTCJEV1QZ9X (Mar 2018) | |
AWS Certified Developer - Associate - X616ETF1JE441E94 (Oct 2016) | |
AWS Certified Solutions Architect - Associate - E6K5BTR2BE4Q1956 (Nov 2016) | |
AWS Certified SysOps Administrator - Associate - 1BK6ESTCDBE41PKC (Nov 2016) | |
# GCP | |
Google Certified Professional - Cloud Architect (May 2018) - https://verify.accredible.com/verify/id?value=11592440&custom=false | |
Google Certified Associate Cloud Engineer (Jul 2018) - https://verify.accredible.com/verify/id?value=11730093&custom=false |
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
-- Elm 0.19.0 | |
-- mdgriffith/elm-ui 1.1.0 | |
import Browser | |
import Html exposing (..) | |
import Html.Events exposing (..) | |
import Element exposing (..) | |
import Element.Input as Input | |
import Element.Border as Border | |
import Element.Font as Font |
NewerOlder