Skip to content

Instantly share code, notes, and snippets.

View lbonanomi's full-sized avatar

lbonanomi lbonanomi

View GitHub Profile
@lbonanomi
lbonanomi / list.txt
Created March 29, 2024 14:06 — forked from shortjared/list.txt
List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com
@lbonanomi
lbonanomi / blockCurlPipeBash.sh
Created August 5, 2021 01:48
BASH_ENV script to nag users about piping curl calls into bash
# The construction `curl http://example.com/shellscript.sh | bash` fills me with boiling rage
#
# export BASH_ENV=/usr/local/bin/blockCurlPipeBash.sh
if [[ $(grep "$(cat /proc/$$/cmdline | tr '\000' "\n" | tail -1)$" /etc/shells) ]]
then
# |- In case of non-interactive session -| |- dump PID table to find all sibling PIDs -|
#
echo $- | grep -qv i && ps awwwx -ocmd,pid,ppid | grep "$(ps -p $$ -o ppid | tail -1)$" | while read p
do
@lbonanomi
lbonanomi / btnMash.sh
Last active November 15, 2020 18:00
btnMash: hit enter 3-times to be reminded where you are
# source me.
export PROMPT_COMMAND=btnMash
function btnMash {
# Init a counter for prompts-displayed if its missing
[[ -f /tmp/promptsDisplayed ]] || history | tail -1 | awk '{ print $1 }' > /tmp/promptsDisplayed;
# Init a counter for commands
[[ -f /tmp/commandsRun ]] || (history | tail -1 | awk '{ print $1 }' > /tmp/commandsRun)
@lbonanomi
lbonanomi / right-braid.svg
Last active October 27, 2020 14:44
right-braid.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lbonanomi
lbonanomi / fraktur.sh
Last active October 30, 2020 18:07
Partially automated SVG scrolls
#!/bin/bash
wd=$(mktemp -d)
function gothique {
# re-type everything in unicode blackletter font
#
seed=1D56C
for num in $(seq 65 90; seq 97 122)
do
@lbonanomi
lbonanomi / left-braid.svg
Last active October 27, 2020 14:41
Left margin for illuminations
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
....................../´¯/)
....................,/¯../
.................../..../
............./´¯/'...'/´¯¯`·¸
........../'/.../..../......./¨¯\
........('(...´...´.... ¯~/'...')
.........\.................'...../
..........''...\.......... _.·´
............\..............(
..............\.............\...
digraph Jira_Outage 
{
  {
    first_notification [ 
      label="Notification of a Jira outage from any channel" 
      shape=rect
    ] 

    pc_browser [