Skip to content

Instantly share code, notes, and snippets.

View velppa's full-sized avatar
🎯
Focusing

Pavel Popov velppa

🎯
Focusing
View GitHub Profile
name html-creator
description Create a standalone HTML page on a user-requested topic, upload it as a private GitHub gist via the local Emacs `gist-files` function, and open it through gisthost.github.io in the browser. Use when the user asks to "make an HTML page", "build a webpage about X", "share an HTML demo", or otherwise wants a one-off self-contained HTML artifact published as a gist.
compatibility Requires a running Emacs server with the `gist` package loaded and a working GitHub auth token for the gist API. Browser launching uses `browse-url`.
allowed-tools Bash(emacsclient:*), Write
metadata
author version
velppa
1.0.0
name datadog-metrics-analyser
description Analyse Datadog metrics using the pup CLI — query time-series data, list and search metrics, inspect metadata and tags, and identify anomalies or trends. Use when the user asks about Datadog metrics, wants to investigate metric behaviour, compare metric values across environments, or troubleshoot metric-related issues.
compatibility Requires pup CLI (Datadog API CLI) authenticated via `pup auth login` or DD_API_KEY + DD_APP_KEY environment variables.
allowed-tools Bash(pup:*)
metadata
author version
velppa
1.0.0
@velppa
velppa / seal_safari_tabs.lua
Last active June 24, 2025 13:59
Hammerspoon - Safari Tabs fuzzy-finder search spoon for Seal
--
local obj = {}
obj.__index = obj
-- Metadata
obj.__name = "seal_safari_tabs"
obj.name = "safari_tabs"
obj.description = "Safari tabs plugin for Seal"
obj.keyword = "safari"
This file has been truncated, but you can view the full file.
PK
WVDynamoDBLocal_lib/PK
XV5pT\DynamoDBLocal.jar\T|uTI5n]_ Ak wwwwA~7y}uYN:TD^

5Z
o~ dDh%dE } X
_hW~D*vF,8
dXB Iwj+
LZ:Wf~ee\XW*bWAn<@~pmxkeRX477K!`k?OX}Vf()"9vy|HTl iL,!vysSztbeon%Mge/Md~~Pkw%Vo:c?ie@
@velppa
velppa / doverennost.org
Created July 27, 2022 22:29
Генеральная доверенность на родителей

Доверенность на родителей

доверенность Город Москва.

Двадцать пятого мая две тысячи восемнадцатого года.

Я, гражданин Российской Федерации ХХХ УУУ ААААич, дд.мм.гггг года рождения,

@velppa
velppa / DefaultKeyBinding.dict
Created April 28, 2021 16:58
macOS keybindings
{
/* Keybindings for Emacs emulation.
*
* Place this file to ~/Library/KeyBindings/DefaultKeyBinding.dict,
* then log out / log in to the system.
*
* This is a pretty good set, especially considering that many emacs bindings
* such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and
* perhaps a few more, are already built into the system.
*
#!/bin/bash
set -eu
api_key=$DD_API_KEY
app_key=$DD_APP_KEY
set_unit() {
metric_name=$1
unit=$2
echo
@velppa
velppa / README.org
Created February 8, 2021 19:59
Various Babashka scripts

Various Babashka scripts

Each script is supposed to be runnable as bb -f filename.

aws_cognitect_sdk.clj
get latest version of Cognitect AWS SDK
@velppa
velppa / gist:4204077a9fef4fca89b73c25b588eac1
Created January 26, 2021 18:33 — forked from cdown/gist:1163649
Bash urlencode and urldecode
urlencode() {
# urlencode <string>
old_lc_collate=$LC_COLLATE
LC_COLLATE=C
local length="${#1}"
for (( i = 0; i < length; i++ )); do
local c="${1:$i:1}"
case $c in
package main
import (
"fmt"
"strings"
)
func CompareTwoStrings(stringOne, stringTwo string) float32 {
removeSpaces(&stringOne, &stringTwo)