Skip to content

Instantly share code, notes, and snippets.

View tevaum's full-sized avatar

Estêvão Samuel Procópio Amaral tevaum

View GitHub Profile
@rikatz
rikatz / eventexporter.yml
Created November 5, 2018 18:21
Kubernetes Events Export with Metricbeat + Logstash
---
apiVersion: v1
kind: ConfigMap
metadata:
name: metricbeat-config
namespace: kube-system
labels:
k8s-app: metricbeat
data:
metricbeat.yml: |-
@luisfc
luisfc / Install Vagrant on Ubuntu 16.04 LTS
Created October 18, 2018 07:02
Install Vagrant on Ubuntu 16.04 LTS (Xenial Xerus)
# Remove the older version of vagrant.
sudo apt-get remove --auto-remove vagrant
rm -r ~/.vagrant.d
#Download Vagrant package and install it manually.
#Vagrant download page provides the latest version of Vagrant
https://www.vagrantup.com/downloads.html
#This example used debian package x86_64
1. wget https://releases.hashicorp.com/vagrant/2.2.0/vagrant_2.2.0_x86_64.deb
@DanielKucal
DanielKucal / Fastlint.md
Last active March 24, 2021 05:16
Run tslint in pre-commit with good performance and auto fixer

Fast lint with autofixer

for pre-commit hook

In order to run linter in a pre-commit hook you can check changed files only for performance reasons.

package.json:

{
  "scripts": [
    "fastlint": "git diff --cached --name-only | grep .ts$ |  xargs -L1 \"./node_modules/.bin/tslint\" --fix"
 ],