Skip to content

Instantly share code, notes, and snippets.

View jsamuel1's full-sized avatar

Josh Samuel jsamuel1

View GitHub Profile
@benkehoe
benkehoe / aws-profile-for-bashrc.sh
Last active August 8, 2025 20:38
AWS_PROFILE env var management
# MIT No Attribution
#
# Copyright 2022 Ben Kehoe
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this
# software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without limitation the rights to use, copy, modify,
# merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so.
#
@cam8001
cam8001 / service-regions.sh
Last active December 20, 2023 19:41
One liner to get list of services keyed to AWS region
#!/bin/bash
curl -s 'https://api.regional-table.region-services.aws.a2z.com/index.json' \
| jq '.prices[] | .attributes | .["aws:region"], .["aws:serviceName"]' \
| sed '$!N;s/\n/,/'
@jsamuel1
jsamuel1 / Fibonacci-Feb2025.txt
Last active October 25, 2025 19:31
Fibonacci, the Prompt. The original 513 line version is from initial testing of Q Commandline in Feb/March. Generating a new one with TODO functionality to keep the rhyme aligned.
1 - Numbers start with fun
1 - The sequence has begun
2 - Math patterns we explore
3 - Growing more and more
5 - Fibonacci comes alive
8 - Numbers that fascinate
13 - Lucky number thirteen
21 - Mathematics so keen
34 - Numbers by the score
55 - Patterns that we give