Skip to content

Instantly share code, notes, and snippets.

View bgarcial's full-sized avatar

Bernardo García bgarcial

View GitHub Profile
@mcmaur
mcmaur / docker_mint18.sh
Created February 25, 2018 10:03
Install Docker on Linux Mint 18 Sylvia
#remove old
sudo apt-get remove docker docker-engine docker.io
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
@psxvoid
psxvoid / delete-evicted-pods-all-namespaces.sh
Created August 6, 2018 14:41
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
@robinmanuelthiel
robinmanuelthiel / azuredevops-editorconfig.yaml
Last active April 3, 2020 20:40
EditorConfig Check with Azure DevOps
pool:
vmImage: 'Ubuntu 16.04'
steps:
- bash: |
npm install -g eclint
eclint check eclint check $(git ls-files)
failOnStderr: true
displayName: 'Check EditorConfig violations'
@ianmiell
ianmiell / git-remote-url
Created April 1, 2021 08:05
Script to get git repo link
#!/bin/bash
# based on: https://stackoverflow.com/questions/47524709/how-to-get-the-full-path-of-a-file-in-a-git-remote-repo
#set -o xtrace
set -o errexit
set -o nounset
set -o pipefail
function usage {
echo "$0 [ -h/--help ] [ FILENAME ]"
@wiggitywhitney
wiggitywhitney / gist:a534fddae5e2b629d3c46977693f0c3b
Created June 9, 2025 09:55
Lightboard notes from 'Monitoring Kubernetes' ⚡️ Enlightning & 🌩️Thunder episodes
🌩️Thunder Recap: https://youtu.be/AwwhHW4Ev38
⚡️Enlightning Long Form: https://youtu.be/LRXU-cj6CDA
Observability is about better understanding what is happening in a system
✶ fix problems
✶ find issues
✶ build confidence
Common data types in observability