Skip to content

Instantly share code, notes, and snippets.

View vilaca's full-sized avatar
🎯
Focusing

João Vilaça vilaca

🎯
Focusing
View GitHub Profile
https://www.wired.com/story/nuclear-power-plants-struggling-to-stay-cool/
https://www.nature.com/articles/d41586-022-01390-y
https://amp.theguardian.com/world/2022/aug/20/yakama-nation-nuclear-waste-cleanup
https://www.latimes.com/nation/la-na-new-mexico-nuclear-dump-20160819-snap-story.html
https://en.wikipedia.org/wiki/EPR_(nuclear_reactor)#Flamanville_3_(France)
https://en.wikipedia.org/wiki/Olkiluoto_Nuclear_Power_Plant#Incidents
https://en.wikipedia.org/wiki/Virgil_C._Summer_Nuclear_Generating_Station
https://en.wikipedia.org/wiki/Vogtle_Electric_Generating_Plant
https://en.wikipedia.org/wiki/Hinkley_Point_C_nuclear_power_station
CTRL-L Clears the screen
CTRL-D Exits the current shell
CTRL-Z Puts the current process into suspended background
CTRL-C Kills the current process
CTRL-H Works the same as backspace
CTRL-A Goes to the beginning of the line
CTRL-W Deletes the word before the cursor
CTRL-U Deletes from beginning of line to cursor position
CTRL-E Goes to the end of the line
@vilaca
vilaca / dict.txt
Last active December 6, 2023 02:56
X-as-a-service
A - Analytics / API
B - Backend
C - Containers
D - Desktop
E - Environments
F - Financial / Function
G - Games
H - Hardware
I - Infrastructure
J -
@vilaca
vilaca / create-cluster.sh
Last active July 16, 2022 23:32
Auto-scaling EKS with Karpenter
#!/bin/bash
set -eou pipefail
export KARPENTER_VERSION=v0.13.2
export CLUSTER_NAME="my-cluster"
export AWS_DEFAULT_REGION="us-east-2"
export AWS_ACCOUNT_ID="$(aws sts get-caller-identity --query Account --output text)"
# use --profile when required
#!/bin/bash
set -eou pipefail
#prometheus-community https://prometheus-community.github.io/helm-charts
#loki https://grafana.github.io/loki/charts
kubectl create ns monitoring
helm install prometheus prometheus-community/kube-prometheus-stack -n monitoring
helm upgrade --install loki loki/loki-stack -n monitoring
#kubectl create ns utils
#helm repo add twuni https://helm.twun.io -n utils
@vilaca
vilaca / readme.md
Last active August 14, 2022 20:02
Vilacas Awesome list of K8S and container tools
package main
import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"strings"
@vilaca
vilaca / docker-compose.yaml
Created August 3, 2021 16:12
AlertManager cluster (3x)
---
version: "3.1"
services:
am-01:
command:
- '--cluster.listen-address=0.0.0.0:9094'
- '--cluster.peer=am-02:9094'
- '--config.file=/etc/alertmanager/config.yaml'
- '--log.level=error'
- '--storage.path=/alertmanager'
@vilaca
vilaca / docker-compose.yaml
Last active July 28, 2021 16:35
VictoriaMetrics w/ lx sensor data
---
version: "3.1"
services:
grafana:
depends_on:
- victoriametrics
image: "grafana/grafana:8.0.5"
ports:
- "80:3000"
restart: always
package main
// to run:
// launch mongodb container: docker run -p 27017:27017 --name local-dev-mongodb -d mongo:latest
// start service: go run main.go
import (
"context"
"log"
"net/http"