Skip to content

Instantly share code, notes, and snippets.

View vjpandian's full-sized avatar
🏠

Vijay Pandian vjpandian

🏠
  • CircleCI
  • Toronto, ON
  • 17:55 (UTC -04:00)
View GitHub Profile
@vjpandian
vjpandian / team-map.html
Last active September 18, 2025 16:53
team-map html test
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Team Map</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Leaflet CSS (no SRI) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet@1.9.4/dist/leaflet.css" />
<!-- MarkerCluster CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet.markercluster@1.5.3/dist/MarkerCluster.css" />
echo "Installing Helm..."
curl -LO https://get.helm.sh/helm-v3.11.2-linux-amd64.tar.gz
tar -zxvf helm-v3.11.2-linux-amd64.tar.gz
sudo mv linux-amd64/helm /usr/local/bin/helm
helm version
echo "Installing Helm Diff..."
helm plugin install https://github.com/databus23/helm-diff
@vjpandian
vjpandian / public-url-orb.yml
Created March 25, 2025 19:50
Sample workflow
version: 2.1
jobs:
my_job:
docker:
- image: cimg/base:stable
steps:
- checkout
- run: echo "hello"
@vjpandian
vjpandian / check_k8s.sh
Last active March 19, 2025 17:54
Terraform check k8s svc
#!/bin/bash
if kubectl get svc circleci-proxy-acm -n "$NAMESPACE" > /dev/null 2>&1; then
echo '{"exists": "true"}' # Return string "true"
else
echo '{"exists": "false"}' # Return string "false"
fi
@vjpandian
vjpandian / confluence-api.md
Last active February 26, 2025 16:19
Useful Confluence APIs

Verify if Environment Variables are set

nano ~/.bash_profile

Refresh them after making changes

source ~/.bash_profile

@vjpandian
vjpandian / k8s-cheatsheet.md
Last active August 22, 2025 20:00
K8s Cheatsheet

Prerequisite

Set the context to the CircleCI namespace as all the commands in this cheatsheet assume that this it has been set.

kubectl config set-context --current --namespace=circleci-server

Fetch regcred secret for verification

@vjpandian
vjpandian / 1pass.sh
Created November 2, 2024 18:27
Handy 1password CLI commands
#!/bin/bash
### For signing in
eval $(op account add --signin)
### List All accounts
op account list
### List Vaults
op vault list
@vjpandian
vjpandian / packer.sh
Last active November 2, 2024 17:39
install packer
#!/bin/bash
PACKER_VERSION=${1:-1.10.3} # Default to 1.10.3 if no version is provided
wget "https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_amd64.zip"
unzip "packer_${PACKER_VERSION}_linux_amd64.zip"
sudo mv packer /usr/local/bin/
packer version
@vjpandian
vjpandian / vagrant-scp.sh
Last active September 16, 2015 19:50 — forked from colindean/vagrant-scp.sh
A quick way to transfer a file to the home directory on a Vagrant VM
#!/bin/sh
OPTIONS=`vagrant ssh-config | awk -v ORS=' ' '{print "-o " $1 "=" $2}'`
scp ${OPTIONS} "$@" || echo "Transfer failed. Did you use 'default:' as the target?"
import java.util.ArrayList;
import java.util.List;
/* root with three children
O
/ | \
O O O
/ / \ \ | \
O O O O O O