Skip to content

Instantly share code, notes, and snippets.

View meysam81's full-sized avatar
📝
Learning

Meysam meysam81

📝
Learning
View GitHub Profile

You are a senior frontend engineer building a free tool that will serve as a lead magnet. Your mission: create an exceptional user experience that makes users go "wow" and naturally want to subscribe to learn more.

Core Constraints

  • Stack: Astro (static-first), Tailwind CSS, Vue components for interactivity
  • Location: Same repo as landing page (root or ./landing-page/)
  • URL: /tools/[tool-slug]
  • CTA: Newsletter subscription only (newsletter.meysam.io via Listmonk)
  • Analytics: Pirsch (no cookie banner needed)
  • Mobile: Fully responsive — not "works on mobile," but "delightful on mobile"
# Unbind default prefix
unbind C-b
# Set new prefix to C-v
set-option -g prefix C-v
# Bind C-v C-v to send prefix to application
bind-key C-v send-prefix
# Split panes using current directory
@meysam81
meysam81 / influence-summary. md
Created October 6, 2025 13:33
Claude Sonnet 4.5 summary of Influence: The Psychology of Persuasion
# Influence: The Psychology of Persuasion - Robert Cialdini
## Core Premise
Humans use mental shortcuts (heuristics) to make decisions efficiently. These automatic response patterns can be exploited by “compliance practitioners” to trigger desired behaviors without conscious deliberation.
## The Six Principles of Influence
### 1. **Reciprocity**
@meysam81
meysam81 / domain-checker.sh
Created August 19, 2025 09:11
Check for availability of a given product name and its possible TLD domains using DNS check and WHOIS API call; use at your own discretion!
#!/bin/bash
# Unified Domain Generator & Availability Checker
# Can accept either raw names to generate domains or a list of domains to check
# Usage: ./domain_tool.sh --names names.txt [options]
# ./domain_tool.sh --domains domains.txt [options]
# Color codes
RED='\033[0;31m'
GREEN='\033[0;32m'
#!/bin/bash
set -e
if [ $# -eq 0 ]; then
echo "Usage: $0 <go_version>"
echo "Example: $0 1.25.0"
exit 1
fi
#!/bin/bash
URL="${1:-https://api.example.com/endpoint}"
OUTPUT_FILE="${2:-}"
CURL_CMD="curl \
--retry 3 \
--retry-delay 2 \
--retry-max-time 30 \
@meysam81
meysam81 / email.jsonnet
Created August 6, 2025 05:09
Ory Kratos JSONNET
function(ctx) {
email: ctx.identity.traits.email,
}
#!/bin/bash
set -eux
cat >> /etc/network/interfaces << 'EOF'
# VLAN interface configuration
auto enp98s0f0.4000
iface enp98s0f0.4000 inet static
vlan-raw-device enp98s0f0
vlan-id 4000
@meysam81
meysam81 / logsql-tutorial.md
Last active May 18, 2025 03:55
VictoriaMetrics LogsQL | Courtesy of Grok

Comprehensive LogQL Commands Tutorial

Introduction

LogQL (LogsQL) is a query language used within VictoriaMetrics to search, filter, and analyze log data. It is designed for efficient log retrieval, enabling users to extract specific log entries based on time, content, metadata, or numeric calculations. This tutorial provides a detailed overview of LogQL commands—primarily filters and mathematical operations—along with examples to help you construct effective queries. The content is structured for both beginners and advanced users, serving as a reference for future use.

Basic Structure of a LogQL Query

A LogQL query consists of:

  • Filters: Criteria to select logs, such as time ranges, words, or field values. At least one filter is required.
  • Optional Actions: Operations like stats, fields, or eval applied to filtered logs, separated by the pipe (|) operator.
#!/bin/bash
# Function to display help message
usage() {
echo "Usage: $0 --email <email> [--name <name>] [--passphrase <passphrase>]"
echo "Generate an Ed25519 GPG private key non-interactively."
echo ""
echo "Options:"
echo " --email Email address for the GPG key (required)"
echo " --name Name for the GPG key (optional, defaults to email)"