Some notes on AI Agent Rule / Instruction / Context files / etc.
| #!/bin/sh | |
| # halt execution immediately on failure | |
| # note there are some scenarios in which this will not exit; | |
| # see https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html | |
| # for additional details | |
| set -e | |
| is_ci= | |
| for i in "$@"; do |
A complete guide to set up a modern, powerful terminal environment for developers on macOS.
- Dual Theme System - Cyberpunk (neon) & Pastel (soft) themes with instant switching
- nvm - Node Version Manager with lazy-loading (50-60% faster startup)
- Git - Fully configured with delta, difftastic, and 40+ aliases
- Oh My Zsh - 8 powerful plugins
Perfetto is super useful for understanding interactions between the kernel and applications. Outside of Android and ChromeOS, though it's use isn't as common. This doc tries to provide a basic walk through to get started using perfetto for upstream kernel development with classic linux distros, potentially running under qemu.
Grab the latest linux- tarball: https://github.com/google/perfetto/releases
Often the tests I’m tracing need to run as root, so because of this, I copied the
binaries in the tarball to /usr/local/bin/ and chmod +x the binaries to make
This is a full guide for people who wanted to set up Windows 10/11 VM with QEMU/KVM hypervisor enhancements for a laptop that is configured with hybrid graphics card like Intel/AMD + NVIDIA. This process will take about 1 to 2 hours, depending on your system's performance and your patience =)
There is another comprehensive guide you can follow here (shoutout to asus-linux team who made supergfxctl which is a very important tool for this guide). It is more up-to-date than mine. I would probably incorporate those information into my guide, but you are welcome to use this one as a reference!
- This guide is exclusively for Fedora users because this distro is quite different to set up than other distro such as Arch. I would say Arch is easier to setup than Fedora, but sometimes you like to use Fedora than Arc
Download the miniroot tarball from the Alpine website and then add it to a Docker image:
FROM scratch
ENV ALPINE_ARCH x86_64
ENV ALPINE_VERSION 3.9.1
ADD alpine-minirootfs-${ALPINE_VERSION}-${ALPINE_ARCH}.tar.gz /
CMD ["/bin/sh"]
aws:CurrentTime—To check for date/time conditions.aws:EpochTime—To check for date/time conditions using a date in epoch or UNIX time.aws:TokenIssueTimeThis is the date and time that temporary security credentials were issued and can be used with date/time conditions. (Note: This key is only available in requests that are signed using temporary security credentials. For more information about temporary security credentials, see Temporary Security Credentials.)aws:principaltype—To check the type of principal (user, account, federated user, - etc.) for the current request.aws:SecureTransport—To check whether the request was sent using SSL. For services - that use only SSL, such as Amazon RDS and Amazon Route 53, the aws:SecureTransport - key has no meaning.aws:SourceArn—To check the source of the request, using the Am
| #!/bin/bash | |
| #kcpasswordEncode (20220610) Copyright (c) 2021 Joel Bruner (https://github.com/brunerd) | |
| #Licensed under the MIT License | |
| #given a string creates data for /etc/kcpassword | |
| function kcpasswordEncode () ( | |
| #ascii string | |
| thisString="${1}" |