name: Hook Development description: >- This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "implement agent hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", "frontmatter hooks", "scoped hooks", "once: true", or mentions hook events (PreToolUse, PostToolUse, Stop,
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| bold() { printf "\033[1m%s\033[0m\n" "$*"; } | |
| info() { printf "• %s\n" "$*"; } | |
| warn() { printf "\033[33m! %s\033[0m\n" "$*"; } | |
| err() { printf "\033[31m✗ %s\033[0m\n" "$*" >&2; } | |
| ok() { printf "\033[32m✓ %s\033[0m\n" "$*"; } | |
| require_macos() { |
| /** | |
| * Returns Market Value From Coingecko api | |
| * Function accepts ranges as well, please use it to reduce server lookups, so it fetches data only once. | |
| * Update: 17.02.2020 | |
| * | |
| * @param {string} symbol pair (required) | |
| * @param {string} Default Value Missing Data (optional) | |
| * @return {number} ticker price | |
| * @customfunction | |
| **/ |
This guide provides instructions for an Arch Linux installation featuring full-disk encryption via LVM on LUKS, booting a signed unified kernel image with systemd-boot on UEFI systems.
Following the main installation are further instructions to harden against Evil Maid attacks via UEFI Secure Boot custom key enrollment and a self-signed boot loader and kernel image.
Tested in October 2026 on an HP ZBook Ultra G1a and in a QEMU/OVMF virtual machine: systemd 262, mkinitcpio 42.2, cryptsetup 2.8.8, linux 7.2.9, sbctl 0.18.
You will find most of this information pulled from the Arch Wiki and other resources linked thereof.
| chcp 65001 | |
| @echo fix adb unauthorized issue, can only fix one PC, run it in recovery mode | |
| @echo 用于修复nexus6p不能连接adb的问题,在recovery模式下运行此脚本。 | |
| set currentDir=%~dp0 | |
| @echo add local fastboot to PATH variable | |
| @set PATH=%currentDir%lib\platform-tools;%PATH% | |
| adb devices 2>nul | findstr /r /c:"recovery" || @echo "error : device not in recovery mode" && pause && exit /B 1 | |
| @echo off |
| { | |
| "Badge Text" : "", | |
| "Custom Directory" : "No", | |
| "Working Directory" : "\/Users\/sarthaksharma", | |
| "Prompt Before Closing 2" : false, | |
| "Selected Text Color" : { | |
| "Green Component" : 1, | |
| "Blue Component" : 1, | |
| "Red Component" : 1 | |
| }, |
To use media keys on the Ducky One 2 Skyline, you must record a macro to bind the media function to a hotkey combination, i.e. Fn plus some key.
Important: In the instructions below, "Press X+Y+Z" means press and hold key X, press and hold key Y, press and hold key Z in that order, and then release all three.
As an example, to bind Fn+PgUp to the play/pause media function:
This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.
While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.
| # Create all variables used in this Terraform run | |
| variable "aws_access_key" {} | |
| variable "aws_access_secret_key" {} | |
| variable "aws_bucket_name" {} | |
| variable "aws_region_main" { | |
| default = "eu-west-1" | |
| } | |
| variable "aws_region_replica" { | |
| default = "eu-central-1" | |
| } |

