Skip to content

Instantly share code, notes, and snippets.

View jakebrinkmann's full-sized avatar

Jake Brinkmann jakebrinkmann

View GitHub Profile
@jakebrinkmann
jakebrinkmann / modal.html
Last active March 18, 2024 16:55
js-alpinejs
<html>
<head>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/tailwind.min.css">
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine.min.js"
defer crossorigin="anonymous"></script>
</head>
<body class="bg-gray-300 text-gray-800">
<div class="container mx-auto px-4 xl:px-64 mt-12 mb-12">
<h2 class="text-2xl font-bold">Modal</h2>
<!-- NOTE: ADD x-data here -->
#!/usr/bin/env bash
LOG_GROUP_NAME=${1-} # API-ResourceFunction
MY_QUERY="${@:2}"
START_TIME=$(date --date="${START_TIME:-30 minutes ago}" "+%s000")
END_TIME=$(date "+%s000")
if [ -z "${LOG_GROUP_NAME}" ]; then
aws logs describe-log-groups --query 'logGroups[].logGroupName'
exit 0;
@jakebrinkmann
jakebrinkmann / README.md
Last active March 7, 2024 00:13
little-go-book

1. Basics

go version
# go version go1.21.5 darwin/arm64

godoc -http=:6060
@jakebrinkmann
jakebrinkmann / README.md
Created July 25, 2023 15:26
GitHub special files and paths, such as README, LICENSE, CONTRIBUTING, CODE_OF_CONDUCT

Common special files found in the root directory of a repository

Description for and list of popular special files like README/CHANGELOG/LICENSE and others.

README-like

ReadMe README.md README

The ReadMe is usually the first document people will see of your project. Depending on your project it should give a short introduction and usage/build examples. It should only contain the information you expect users to read. It is usually possible to link to other documentation files using the markdown syntax which gets rendered as html by popular repository hosting platforms.

@jakebrinkmann
jakebrinkmann / Websequence - Example Plantuml .ipynb
Created March 2, 2023 18:14
How to render a Websequence diagram of Python code calls in Plantuml Jupyter Notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakebrinkmann
jakebrinkmann / aftv.sh
Last active May 20, 2024 19:13
HTPC (Home Theater PC), Batocera, Lakka Configs (retroarch, xclip -selection clipboard -i, Kodi, libreelec.tv,)
type adb &>/dev/null
adb --version
adb kill-server
adb start-server
# connect via usb
adb devices
adb tcpip 5555
@jakebrinkmann
jakebrinkmann / readme.md
Last active January 27, 2022 23:16
XSD (XML) schema viewer
@jakebrinkmann
jakebrinkmann / app.py
Created December 9, 2021 00:45
AWS Cloudwatch Alarm to Lambda to Slack Webhook (python)
import datetime
import json
import os
import requests
WEBHOOK_URL: str = os.getenv("WEBHOOK_URL")
SLACK_CHANNEL: str = os.getenv("SLACK_CHANNEL", "#devops-alarms")
SLACK_USERNAME: str = os.getenv("SLACK_USERNAME", "aws-alarm-bot")
@jakebrinkmann
jakebrinkmann / .flake8
Last active March 27, 2025 16:03
Using the Python poetry tool to manage dependencies of an AWS Serverless (AWS-SAM-CLI) project.
##### https://flake8.pycqa.org/en/latest/user/configuration.html
[flake8]
ignore =
# D100: Missing docstring at top of file
D100,
# D104: Missing docstring in __init__.py
D104,
# D401: Docstring first line should be imperative
D401,
# D101 Missing docstring in public class
@jakebrinkmann
jakebrinkmann / aws-proxy.sh
Last active November 12, 2021 16:01
AWS SSM Bastion Proxy to SSH into EC2 instance inside VPC (so I can port-tunnel to my database)
#!/usr/bin/env sh
######## Dependencies ##########################################################
# https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html
# https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html
# https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html
#
######## Usage #################################################################
#
# Install Proxy Command
# - Move this script to ~/.ssh/aws-proxy.sh