Skip to content

Instantly share code, notes, and snippets.

View azamara's full-sized avatar

William Kim azamara

View GitHub Profile
@azamara
azamara / agent loop
Created March 11, 2025 05:39 — 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
@azamara
azamara / machine.js
Last active February 11, 2021 03:16
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
#!/bin/bash
ETCD_VERSION=${ETCD_VERSION:-v3.4.3}
curl -L https://github.com/coreos/etcd/releases/download/$ETCD_VERSION/etcd-$ETCD_VERSION-linux-amd64.tar.gz -o etcd-$ETCD_VERSION-linux-amd64.tar.gz
tar xzvf etcd-$ETCD_VERSION-linux-amd64.tar.gz
rm etcd-$ETCD_VERSION-linux-amd64.tar.gz
cd etcd-$ETCD_VERSION-linux-amd64
@azamara
azamara / machine.js
Created December 27, 2019 11:28
Counter Machine
const increment = context => context.count + 1;
const decrement = context => context.count - 1;
const isNotMax = max => context => context.count < max;
const isNotMin = min => context => context.count > min;
const counterMachine = Machine({
id: "counter",
initial: "active",
context: {
count: 0
@azamara
azamara / weave-docker-compose.yml
Created October 25, 2019 02:26
weave-docker-compose.yml
scope:
environment:
- ENABLE_BASIC_AUTH=true
- BASIC_AUTH_USERNAME=admin
- BASIC_AUTH_PASSWORD=123qwe
image: weaveworks/scope:1.11.6
net: "host"
pid: "host"
privileged: true
labels:
@azamara
azamara / kubedump.sh
Last active January 7, 2020 12:12 — forked from negz/kubedump.sh
Dump Kubernetes cluster resources as YAML
#!/usr/bin/env bash
set -e
NAMESPACES=$(kubectl --kubeconfig $1 get -o json namespaces|jq '.items[].metadata.name'|sed "s/\"//g")
RESOURCES="configmap secret daemonset deployment service hpa"
for ns in ${NAMESPACES};do
for resource in ${RESOURCES};do
rsrcs=$(kubectl --kubeconfig $1 -n ${ns} get -o json ${resource}|jq '.items[].metadata.name'|sed "s/\"//g")
@azamara
azamara / keystone.service
Last active October 8, 2019 12:25
vi /lib/systemd/system/keystone.service
[Unit]
Description=OpenStack Identity service
After=mysql.service postgresql.service slapd.service rabbitmq-server.service ntp.service
[Service]
User=keystone
Group=keystone
Type=simple
WorkingDirectory=/var/lib/keystone
@azamara
azamara / helm-cheatsheet.md
Created March 20, 2019 14:23 — forked from tuannvm/argo.md
#Helm #Kubernetes #cheatsheet, happy helming!
@azamara
azamara / mac.md
Created March 20, 2019 14:23 — forked from lornajane/mac.md
Keyboard Only OS X

Keyboard-only Mac Cheatsheet

Hi, I'm Lorna and I don't use a mouse. I have had RSI issues since a bad workstation setup at work in 2006. I've tried a number of extra hardware modifications but what works best for me is to use the keyboard and only the keyboard, so I'm in a good position and never reaching for anything else (except my coffee cup!). I rather unwisely took a job which required me to use a mac (I've been a linux user until now and also had the ability to choose my tools carefully) so here is my cheatsheet of the apps, tricks and keyboard shortcuts I'm using, mostly for my own reference. Since keyboard-only use is also great for productivity, you may also find some of these ideas useful, in which case at least something good has come of this :)

Apps List

There's more detail on a few of these apps but here is a quick overview of the tools I've installed and found helpful

Tool Link Comments
@azamara
azamara / markdown-cheatsheet.md
Created March 20, 2019 14:23 — forked from jonschlinkert/markdown-cheatsheet.md
A better markdown cheatsheet.