Skip to content

Instantly share code, notes, and snippets.

View andresjz's full-sized avatar
🏠
Working from home

Luis Juárez andresjz

🏠
Working from home
View GitHub Profile
@andresjz
andresjz / sumo_logic.config
Created April 27, 2023 18:43 — forked from jorihardman/sumo_logic.config
Elastic Beanstalk Sumo Logic Config
# This will automatically install the Sumo Logic collector on AWS Elastic
# Beanstalk instances. Add this to the .ebextensions folder in your app root
# and edit L24-25 to match your Sumo Logic accessid and accesskey. To add or
# remove tracked files, simply add or remove source hashes to the sources
# array on L36.
packages:
rpm:
SumoCollector: https://collectors.sumologic.com/rest/download/rpm/64
services:
# Run a container with the AWS CLI on a specific node:
kubectl run -it debug --image amazon/aws-cli --command bash --overrides='{ "apiVersion": "apps/v1beta1", "spec": { "template": { "spec": { "nodeSelector": { "kubernetes.io/hostname": "<node-name>" } } } } }'
# Configure KIAM role:
kubectl run -it debug --image amazon/aws-cli --overrides='{"spec": {"template": {"metadata": {"annotations": {"iam.amazonaws.com/role": "my-cool-role"}}}}}' -- bash
@andresjz
andresjz / Kubernetes - Tips.md
Created November 30, 2022 04:58 — forked from savishy/Kubernetes - Tips.md
Kubernetes Cheatsheet

About kubeconfig and Sharing kubeconfigs

When you create a Google Cloud Container cluster with gcloud container clusters create it also generates a kubeconfig entry. See the output below:

Creating cluster petclinic...done.
Created [https://container.googleapis.com/v1/projects/gcloud-testing-vish/zones/asia-east1-a/clusters/petclinic].
kubeconfig entry generated for petclinic.
NAME       LOCATION      MASTER_VERSION  MASTER_IP       MACHINE_TYPE   NODE_VERSION  NUM_NODES  STATUS
@andresjz
andresjz / sync.sh
Created April 14, 2022 19:02
sync branch
git checkout
# Note: This will create a detached head.
git merge remotes/origin/master
git merge remotes/origin/main
git merge remotes/origin/develop
@andresjz
andresjz / cleanup-docker.md
Created January 22, 2021 07:14 — forked from F21/cleanup-docker.md
Commands to clean up docker

Remove dangling images

docker images -qf dangling=true | xargs docker rmi

Remove dangling volumes

docker volume ls -qf dangling=true | xargs -r docker volume rm
@andresjz
andresjz / vagrant-cheat-sheet.md
Created January 15, 2021 05:02 — forked from wpscholar/vagrant-cheat-sheet.md
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
@andresjz
andresjz / README.md
Created October 14, 2020 03:05
How to install docker in linux aws

Install Docker Engine

$ sudo yum update -y

$ sudo yum install -y docker

$ sudo service docker start Starting cgconfig service: [ OK ] Starting Docker: [ OK ]

@andresjz
andresjz / PART-ONE.md
Created August 24, 2020 06:05 — forked from roachhd/PART-ONE.md
Trello API - the full docs.

Getting Started — Trello documentation

Introduction

Trello provides a simple [RESTful][1] web API where each type of resource (e.g. a card, a board, or a member) has a URI that you can interact with.

For example, if you'd like to use the API to get information about the [Trello Development board][2], you'd use the following URI:

https://api.trello.com/1/boards/4d5ea62fd76aa1136000000c
@andresjz
andresjz / Docker
Created August 21, 2020 00:00 — forked from mitchwongho/Docker
Docker 'run' command to start an interactive BaSH session
# Assuming an Ubuntu Docker image
$ docker run -it <image> /bin/bash
@andresjz
andresjz / mitmproxy cheat sheet
Created August 11, 2020 18:10 — forked from 2bard/mitmproxy cheat sheet
mitmproxy cheat sheet
Movement:
j, k down, up
h, l left, right (in some contexts)
space page down
pg up/down page up/down
arrows up, down, left, right