Skip to content

Instantly share code, notes, and snippets.

View houstondapaz's full-sized avatar

Houston da Paz houstondapaz

View GitHub Profile
@houstondapaz
houstondapaz / kubernetes_commands.md
Last active March 24, 2023 01:42
comandos de ajuda para trabalhar com kubernets

Deletar evicted pods

kubectl get pods -n NAMESPACE | grep Evicted | awk '{print $1}' | xargs kubectl delete pod -n NAMESPACE

Deletar pods em crash

kubectl delete pod -n NAMESPACE `kubectl get pods -n NAMESPACE | awk '$3 == "CrashLoopBackOff" {print $1}'`

Deletar pods de um deploy

@houstondapaz
houstondapaz / mongodb-cross-servers.js
Created September 26, 2019 01:48
access another db on mongodb shell
conn2 = new Mongo( "desitination_server:port")
desti_db = conn2.getDB( "destination_db_name" )
@houstondapaz
houstondapaz / mimetype-extension.json
Created September 5, 2019 17:58
Collection of mimetype and respective file extension
{
'application/andrew-inset': '/A',
'application/vnd.handheld-entertainment+xml': 'zmm',
'application/vnd.zul': 'zir',
'application/zip': 'zip',
'application/vnd.zzazz.deck+xml': 'zaz',
'application/yin+xml': 'yin',
'application/yang': 'yang',
'text/yaml': 'yaml',
'chemical/x-xyz': 'xyz',
@houstondapaz
houstondapaz / Dockerfile
Created August 16, 2019 22:30
Example of multi stage build for vue
# build stage
FROM node:9.11.1-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# production stage
FROM nginx:1.13.12-alpine as production-stage
@houstondapaz
houstondapaz / launch.json
Created June 12, 2018 17:26
Vscode launch for debug async/await
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",