A prompt to boost your lazy "do this" prompts. Install with one of the buttons below.
Use this workflow when you need to thoroughly understand all relevant parts of a codebase
or topic before making changes or writing documentation.
Source: https://grantslatton.com/claude-code
#!/bin/bash | |
# Input Parameters | |
REGISTRY_URL=${1:-"custom-registry.com"} # Default to asia-docker.pkg.dev if not provided | |
IMAGE_NAME=${2:-"user-service"} | |
TAG_BASE=${3:-"0.0"} | |
VERSION_FILE=${4:-"version.txt"} | |
# Check and create version file if not exists | |
if [ ! -f "$VERSION_FILE" ]; then |
// Log all DOM mutations to console. | |
// Modern interpretation of https://github.com/kdzwinel/DOMListenerExtension | |
observer = new MutationObserver(onMutation); | |
observerSettings = { | |
subtree: true, | |
childList: true, | |
attributes: true, | |
attributeOldValue: true, |
if (window.location.origin !== "https://www.instagram.com") { | |
window.alert( | |
"Hey! You need to be on the instagram site before you run the code. I'm taking you there now but you're going to have to run the code into the console again.", | |
); | |
window.location.href = "https://www.instagram.com"; | |
console.clear(); | |
} | |
const fetchOptions = { | |
credentials: "include", |
var saving_playlist = window.location.href.includes('/playlist?list=') | |
var all_contents = | |
saving_playlist ? | |
document.querySelectorAll('div#contents > ytd-playlist-video-renderer > div#content > div#container > div#meta') | |
: | |
document.querySelectorAll("#content > yt-lockup-view-model > div > div > yt-lockup-metadata-view-model > div.yt-lockup-metadata-view-model-wiz__text-container") | |
var format = '.txt' |
brew install python3
pip3 install pandas perfetto
./analyse.py pathToTraceFolder applicationId
. Pass directory with traces and application id a parameter, for example if you have traces in directory testTraces
and you want to build memory threndline for an application com.mapbox.navigation.examples
, run ./analyse.py testTraces com.mapbox.navigation.examples
If analyse.py
fails because random port allocation fails, try running it one more time.
Result of the trace is a chart with memory usage (blue) + trend line(red). It additionally output cooficient of the trenline linear function to comm
// Go Playground: https://go.dev/play/p/ao7M54vTDRQ | |
package main | |
import ( | |
"os" | |
"strings" | |
"golang.org/x/net/html" | |
) |
action_pool_depth | |
Current value (from the default) = -1 | |
From //build/toolchain/BUILD.gn:11 | |
Pool for non goma tasks. | |
added_rust_stdlib_libs | |
Current value (from the default) = [] | |
From //build/config/rust.gni:44 |