Skip to content

Instantly share code, notes, and snippets.

View Lowess's full-sized avatar
πŸ’­
πŸ‘‘πŸ₯•

Florian Dambrine Lowess

πŸ’­
πŸ‘‘πŸ₯•
View GitHub Profile
@Lowess
Lowess / README.md
Last active April 9, 2025 13:10
awsp

πŸ” awsp: Simple AWS SSO Profile Switcher for Your Shell

awsp is a tiny shell function to quickly switch AWS profiles based on AWS SSO account names. It uses your existing SSO session cache and sets the AWS_PROFILE environment variable in your shell.


🧩 What It Does

Given an account name (e.g., media-prod), it:

  1. Locates your active AWS SSO session token.
[{{ build.status }}] {{ repo.owner }}/{{ repo.name }} ({{ commit.branch }} - {{ truncate commit.sha 8 }})
@Lowess
Lowess / Makefile - Help
Created August 2, 2022 06:58
Makefile - Tips & tricks
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@Lowess
Lowess / 404
Last active March 19, 2022 10:12
404 Static Pages
# Fun 404 Web Pages
* Mario
* No Signal
@Lowess
Lowess / helmfile-ops-layout
Last active December 16, 2021 15:13
Helmfile & GitOps Medium Blogpost
<repo>
β”œβ”€β”€ Makefile
β”œβ”€β”€ README.md
β”œβ”€β”€ common.yaml
β”œβ”€β”€ environments.yaml
β”œβ”€β”€ helmfile.yaml
└── releases
└── ops
β”œβ”€β”€ argo-cd
β”‚ β”œβ”€β”€ helmfile.yaml
@Lowess
Lowess / DatabricksPushgatewayExporter.py
Last active December 13, 2024 07:21
Databricks Prometheus Integration
import os
import threading
import urllib.request
import logging
from time import sleep
__author__ = "Florian Dambrine <[email protected]>"
class DatabricksPushgatewayExporter:
"""
@Lowess
Lowess / Lang.xml
Created February 17, 2021 16:37
Beersmith 3 - French language file
<Database><_BaseKey>126754</_BaseKey>
<Strings><_MOD_>2011-09-11</_MOD_>
<Name>Strings</Name>
<Type>3505</Type>
<Owndata>0</Owndata>
<TID>3505</TID>
<Size>893</Size>
<_XName>Strings</_XName>
<Allocinc>16</Allocinc>
<Data><String><_MOD_>2011-09-11</_MOD_>
@Lowess
Lowess / transpiled.html
Created January 7, 2021 17:50
Hugo JS Pipes
<!-- Transipiling JS code with Babel and Node -->
{{- $transpiled := resources.Get "scripts/index.js" | babel | js.Build (dict "minify" true) -}}
<script src="{{ $transpiled.Permalink }}"></script>
@Lowess
Lowess / AmplifyAuth.js
Last active December 17, 2020 14:08
Amplify authentication written in functional Preact using hooks
import { h } from 'preact';
import { useState, useEffect, useContext } from 'preact/hooks';
import { Hub } from '@aws-amplify/core';
import { Auth } from '@aws-amplify/auth';
import { UserContext } from '../contexts/UserContext';
const AmplifyAuth = () => {