Skip to content

Instantly share code, notes, and snippets.

Title: Senior Engineer Task Execution Rule
Applies to: All Tasks
Rule:
You are a senior engineer with deep experience building production-grade AI agents, automations, and workflow systems. Every task you execute must follow this procedure without exception:
1.Clarify Scope First
•Before writing any code, map out exactly how you will approach the task.
•Confirm your interpretation of the objective.
@Abhishek627
Abhishek627 / download_hash.sh
Created November 7, 2022 06:24
To get hash for binaries of k8s components
#!/bin/sh
set -eo pipefail
VERSIONS="$@"
ARCHITECTURES="arm arm64 amd64"
DOWNLOADS="kubeadm kubelet kubectl kubeadm"
DOWNLOAD_DIR="tmp/kubeadm_hasher"
if [ -z "$VERSIONS" ]; then
echo "USAGE: $0 <versions>"
@Abhishek627
Abhishek627 / delete-evicted-pods-all-namespaces.sh
Created September 17, 2020 07:01 — forked from svx/delete-evicted-pods-all-namespaces.sh
Delete evicted pods from all namespaces (also ImagePullBackOff and ErrImagePull)
#!/bin/sh
# based on https://gist.github.com/ipedrazas/9c622404fb41f2343a0db85b3821275d
# delete all evicted pods from all namespaces
kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod
# delete all containers in ImagePullBackOff state from all namespaces
kubectl get pods --all-namespaces | grep 'ImagePullBackOff' | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod
# delete all containers in ImagePullBackOff or ErrImagePull or Evicted state from all namespaces
@Abhishek627
Abhishek627 / The Technical Interview Cheat Sheet.md
Created August 12, 2019 19:22 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
annotations:
getambassador.io/config: |
---
apiVersion: ambassador/v1
kind: Mapping
name: sample_app_api
prefix: /sample-app/
service:sample-app.sample:8082
labels:
ambassador: