Newest items on top.
When docs, code, resources are scattered around on various team shares, repros, etc and a new team starts up, one of the first things they think about is "hey! we should have all the docs/code in ONE place!". But there's a REASON code/files/docs are in different stores. Because that organization makes sense too.
# created 2024-04-25 by Noah Coad ncoad@amazon.com | |
# demo video at https://youtu.be/9UkoTsXMnlQ | |
import streamlit as st, boto3 | |
# setup app | |
amazon_q = boto3.client('qbusiness', 'us-west-2') | |
st.title("Amazon Q Chatbot") #page title |
# created 2024-04-25 by Noah Coad ncoad@amazon.com | |
# demo video at https://youtu.be/9UkoTsXMnlQ | |
import streamlit as st, boto3 | |
# parameters | |
aws_region = 'us-west-2' | |
q_app_id = 'be05d006-3c25-439e-b25d-781ad5b2xxxx' | |
q_user_id = 'AmazonQ-Administrator' |
// | |
// Description | |
// whenVisible(): a utility function for Tampermonkey and Greasemonkey | |
// scripts to detect and handle AJAX elements and single | |
// page apps, waiting until elements exist and become visible | |
// | |
// Created | |
// 2021-10-01 by Noah Coad http://coad.net | |
// | |
// Usage Example |
#!/bin/bash | |
# 2021-04-28 by Noah Coad | |
# simple bash script to turn the Mac OSX volume up, down, get value, or set | |
# vol = get current volume level | |
# vol u = volume up by 5% | |
# vol d = volume down by 5% | |
# vol 25 = set volume level between 0-100 | |
re='^[0-9]+$' | |
dir= |
I enjoy seeing how little my dev environment can actually be to accomplish cool stuff. Currently I'm using a terminal app on my iPhone to remote into a RPi0w connected to an ESP8266 dev board to code and program the ESP8266 'from my iphone'. Mongoose OS is a fantastic OS for the ESPxx family line, with it's super easy interface and tons of built-in support into the OS (configuration, common IoT platforms, event-driven javascript, libraries, etc).
#!/bin/bash | |
# open all the URLs under the "daily" folder on the | |
# Google Chrome bookmarks bar in a new window from the command line | |
# dependency: jq | |
jq '.roots.bookmark_bar.children[] | select(.name | contains("daily")) | .children[].url' \ | |
< ~/Library/Application\ Support/Google/Chrome/Default/Bookmarks \ | |
| xargs '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' --new-window |