Skip to content

Instantly share code, notes, and snippets.

@bashtoni
bashtoni / gist:995c0683bb18fd19eaefdc296a9401d8
Created July 4, 2018 10:48
Find ARN for ACM certificate for a given domain name
aws acm us-east-1 list-certificates --query CertificateSummaryList[].[CertificateArn,DomainName] \
--output text | grep example.com | cut -f1
@giannivh
giannivh / keycloak_impex.sh
Last active September 18, 2020 06:57 — forked from unguiculus/keycloak_impex.sh
Import/Export Keycloak Config running on Kubernetes
#!/usr/bin/env bash
set -e
set -u
set -o pipefail
show_help() {
cat << EOF
Usage: $(basename "$0") <options>
-h, --help Display help
@simpsoka
simpsoka / Leadership-CI.md
Last active August 13, 2025 14:39
This is a list of questions to check our decision making.

Do I want to die on this hill?

  • Pass: This is morally good and if not handled has long term consequences
  • Fail: This if self serving

Am I including everyone?

  • Pass: My ego is not driving this conversation
  • Fail: The people in this conversation will only tell me I'm right and not push back
@ulope
ulope / poetry-wrapper.zsh
Created April 13, 2019 15:48
Poetry Python version wrapper (ZSH)
# This helps run a globally installed poetry with specific versions of python.
# When run from inside a poetry project the correct version is automatically
# picked up from pyproject.toml.
# Outside of a project (e.g. `poetry new`) a specific version can be chosen by
# setting a `PYTHON` env variable.
# e.g.:
#
# PYTHON=3.7 poetry new someproject
@karanlyons
karanlyons / ZoomDaemon.yara
Last active August 5, 2024 23:37
Fixes for Zoom, RingCentral, Zhumu (and additional white labels) RCE vulnerabilities
private rule Macho
{
meta:
description = "private rule to match Mach-O binaries (copied from Apple's XProtect)"
condition:
uint32(0) == 0xfeedface or uint32(0) == 0xcefaedfe or uint32(0) == 0xfeedfacf or uint32(0) == 0xcffaedfe or uint32(0) == 0xcafebabe or uint32(0) == 0xbebafeca
}
rule ZoomDaemon
{
@herberthamaral
herberthamaral / nats_to_sse.py
Last active May 12, 2025 07:26
Listen to a nats topic and write to a HTTP client listening via server-sent-events
import asyncio
from typing import AsyncGenerator, Dict
from fastapi import FastAPI
from nats.aio.client import Client as NATS
from nats.aio.client import Msg
from starlette.requests import Request
from starlette.responses import StreamingResponse
app = FastAPI()
@JSchrtke
JSchrtke / init.vim
Created February 8, 2022 14:13
which-key.nvim mappings
" ### Configure which-key.nvim/mappings ###
" quickly navigate quickfix entries
nnoremap <C-n> :cnext<CR>
nnoremap <C-p> :cprevious<CR>
nnoremap <C-e> :lua require("telescope").extensions.file_browser.file_browser(require("telescope.themes").get_ivy())<CR>
lua << EOF
local wk = require("which-key")