go version
# go version go1.21.5 darwin/arm64
godoc -http=:6060
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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; |
Description for and list of popular special files like README/CHANGELOG/LICENSE and others.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type adb &>/dev/null | |
adb --version | |
adb kill-server | |
adb start-server | |
# connect via usb | |
adb devices | |
adb tcpip 5555 |
Modified to use a file-open API (instead of copy paste).
Original: http://xml-tools.net/schemaviewer.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |