Skip to content

Instantly share code, notes, and snippets.

View akamalov's full-sized avatar

Alex Kamalov akamalov

View GitHub Profile
#!/usr/bin/env bash
# !!! This script may overwrite your current config. Don't blindly execute !!!
# Script to automate Claude Code after installation
# install via `npm install -g @anthropic-ai/claude-code`
# Key features:
# - gets the onboarding wizard out of the way
# - configure API keys
#!/usr/bin/env bash
# !!! This script may overwrite your current config. Don't blindly execute !!!
# Script to automate Claude Code after installation
# install via `npm install -g @anthropic-ai/claude-code`
# Key features:
# - gets the onboarding wizard out of the way
# - configure API keys
@akamalov
akamalov / agent loop
Created March 10, 2025 16:28 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@akamalov
akamalov / 00 - Cursor AI Prompting Rules.md
Created March 5, 2025 17:15 — forked from aashari/00 - Cursor AI Prompting Rules.md
Cursor AI Prompting Rules - This gist provides structured prompting rules for optimizing Cursor AI interactions. It includes three key files to streamline AI behavior for different tasks.

Cursor AI Prompting Rules

This gist provides structured prompting rules for optimizing Cursor AI interactions. It includes three key files to streamline AI behavior for different tasks.

Files and Usage

core.md

  • Purpose: Defines the foundational rules for Cursor AI behavior across all tasks.
  • Usage: Add this to .cursorrules in your project root or configure it via Cursor settings:
@akamalov
akamalov / 1. Install python3.7 & pip3.md
Created May 21, 2021 14:18 — forked from alyssaq/1. Install python3.7 & pip3.md
Python3.7 setup on Mac 10.14 (Mojave)
  1. Install Python 3.7.x from https://www.python.org/downloads/ or via homebrew.
$ brew install python3   # Installed at /usr/local/Cellar/python3

Check that python3 has been installed by running it at the terminal:

$ python3
>>> Python 3.7.2
  1. Download get-pip.py from https://bootstrap.pypa.io/get-pip.py and install (this should already be installed if python was installed from python.org or homebrew):
# Cluster management tools.
# See https://github.com/grampelberg/k8s-clusters for updates and documentation.
export CLUSTER_NAME ?= $(shell cat tmp/current 2>/dev/null || echo $$(whoami)-dev)
export MACHINE_TYPE ?= n1-standard-2
export DISK_SIZE ?= 100
export MAX_NODES ?= 10
export NETWORK ?= dev
export PROJECT ?= foobar
export VERSION ?= latest

I've been working with Kafka for over 7 years. I inevitably find myself doing the same set of activities while I'm developing or working with someone else's system. Here's a set of Kafka productivity hacks for doing a few things way faster than you're probably doing them now. 🔥

Get the tools

@akamalov
akamalov / kms_commands.md
Created June 25, 2019 18:16 — forked from ramesh-lingappan/kms_commands.md
KMS Common Commands

Create Key Ring

gcloud kms keyrings create [KEYRING_NAME] --location [LOCATION] --project [PROJECT_ID]

Create Crypto Key

gcloud kms keys create [KEY_NAME] 
  --location [LOCATION] \
  --keyring [KEYRING_NAME] \
@akamalov
akamalov / main.yml
Created March 19, 2019 17:07 — forked from rothgar/main.yml
Generate /etc/hosts with Ansible
# Idempotent way to build a /etc/hosts file with Ansible using your Ansible hosts inventory for a source.
# Will include all hosts the playbook is run on.
# Inspired from http://xmeblog.blogspot.com/2013/06/ansible-dynamicaly-update-etchosts.html
- name: "Build hosts file"
lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present
when: hostvars[item].ansible_default_ipv4.address is defined
with_items: groups['all']