Skip to content

Instantly share code, notes, and snippets.

View bfil's full-sized avatar

Bruno Filippone bfil

View GitHub Profile
@caiusb
caiusb / aws-utils.sh
Last active May 5, 2023 05:42
AWS Utils
# used in ~/.profile to make life easier when working with AWS services
# To assume a role run `assume <role-arn> <ext-id>`. The <ext-id> is optional and will default to `$USER`.
# To un-assume, run `unassume`.
# Role can be assumed sequentially, and credentials are "stacked". `unassume` will move you down that stack.
alias awswho='aws sts get-caller-identity'
alias assume='assume-role'
alias unassume='unassume-role'
@jcgregorio
jcgregorio / How_to_use.html
Last active July 17, 2023 14:44
HTML Templating using the HTML <template> element and exactly 100 lines of JS. A cleaned up version of this code is now available at https://github.com/jcgregorio/stamp/.
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="templating.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<template id=t>
@viktorklang
viktorklang / minscalaactors.scala
Last active March 25, 2024 19:01
Minimalist Scala Actors
/*
Copyright 2012-2021 Viktor Klang
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software