Skip to content

Instantly share code, notes, and snippets.

@etenzy
etenzy / dashboard.json
Created August 17, 2021 14:13
Kubernetes Monitoring Overview
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
### Keybase proof
I hereby claim:
* I am etenzy on github.
* I am etenzy (https://keybase.io/etenzy) on keybase.
* I have a public key ASB7PTj8C1884f5kOnLzJWzjY1OC9g8UYYfp4VdNuP7Ncwo
To claim this, I am signing this object:
cd /Library/Preferences
sudo rm com.sophos.sav.plist

cd /Library/Application\ Support/Sophos/cloud/Installer.app/Contents/MacOS/tools/
sudo ./InstallationDeployer —force_remove
@etenzy
etenzy / docker.tf
Created November 1, 2020 18:47 — forked from phumberdroz/docker.tf
Terraform populate Docker Credentials in all Namespaces
variable "docker_password" {}
data "kubernetes_all_namespaces" "allns" {}
resource "kubernetes_secret" "docker_secrets" {
for_each = toset(data.kubernetes_all_namespaces.allns.namespaces)
metadata {
name = "gitlab-cloud"
namespace = each.value
}
@etenzy
etenzy / home.json
Created October 20, 2020 15:37
Grafana Dashboard
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
@etenzy
etenzy / database.php
Created May 13, 2020 21:56 — forked from tigusigalpa/database.php
Laravel PostgreSQL SSL encryption connection config
<?php
/**
* 1. You have to store your client SSL certificates on your Laravel server, in my case this is /var/certs/mydomain.com/...
* 2. You have to right select SSL mode for PostgreSQL (see https://www.postgresql.org/docs/current/libpq-ssl.html#LIBPQ-SSL-SSLMODE-STATEMENTS), verify-full means your server CA is signed for real domain name for the PostgreSQL server (recommended)
* 3. Go to Laravel config/database.php to the section 'pgsql' and extend it to the following:
*/
return [
/*...*/
'connections' => [
/*'mysql' etc*/
@etenzy
etenzy / minikube.conf
Created May 8, 2020 23:37
minikube + dnsmasq
listen-address=192.168.64.1
@etenzy
etenzy / values_pointers.go
Created April 22, 2020 19:27 — forked from josephspurrier/values_pointers.go
Golang - Asterisk and Ampersand Cheatsheet
/*
********************************************************************************
Golang - Asterisk and Ampersand Cheatsheet
********************************************************************************
Also available at: https://play.golang.org/p/lNpnS9j1ma
Allowed:
--------
p := Person{"Steve", 28} stores the value
@etenzy
etenzy / .bash_aliases
Created April 19, 2020 22:30 — forked from hikiko4ern/.bash_aliases
Pikachu test passed (demo: https://asciinema.org/a/236096)
# /------------------------------------------\
# | don't forget to download the .tp file |
# | and place it in the user's directory :› |
# | |
# | also install lolcat: |
# | https://github.com/busyloop/lolcat |
# \------------------------------------------/
alias test-passed='if [ "$?" -eq "0" ]; then lolcat ~/.tp -a -s 40 -d 2; fi;'

Uninstall brew package and dependencies

Remove package's dependencies (does not remove package):

brew deps [FORMULA] | xargs brew remove --ignore-dependencies

Remove package: