Skip to content

Instantly share code, notes, and snippets.

@xshot9011
xshot9011 / allad
Last active June 19, 2025 02:54
.debug
kubectl debug node/<node> -it --image=ubuntu
apt-get update
apt-get install htop --yes
apt-get install psmisc --yes
# htop
# pstree -p
getpods() {
if [ -z "$1" ]; then
watch -n 1 'kubectl get pods -A'
else
result=""
sep="|"
for arg in "$@"; do
if [ -z "$result" ]; then
result="$arg"
@xshot9011
xshot9011 / NextJS Dockerfile
Last active September 22, 2022 18:19
NextJS Dockerfile
FROM node:16.17-alpine AS base
ENV PORT 3000
WORKDIR /base
COPY package.json ./
COPY yarn.lock ./
RUN npm install --global [email protected] --force
RUN yarn install --frozen-lockfile
COPY . .
FROM base AS builder
@xshot9011
xshot9011 / NestJS Dockerfile
Last active September 22, 2022 18:19
NestJS Dockerfile
# ----------------------------------- Build ---------------------------------- #
FROM node:16.17-alpine as builder
WORKDIR /app
RUN apk add --no-cache g++ make python3
COPY package*.json yarn.lock /app/
RUN npm install --global [email protected] --force
RUN yarn install --frozen-lockfile
@xshot9011
xshot9011 / list.txt
Created August 16, 2022 16:21 — forked from shortjared/list.txt
List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com