This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- Do not edit this file, it will be overwritten on install. | |
| Copy the file to $HOME/.config/openbox/ instead. --> | |
| <openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude"> | |
| <resistance> | |
| <strength>10</strength> | |
| <screen_edge_strength>20</screen_edge_strength> | |
| </resistance> | |
| <focus> | |
| <focusNew>yes</focusNew> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| terraform { | |
| required_version = ">= 1.0.0" | |
| required_providers { | |
| aws = { | |
| source = "hashicorp/aws" | |
| version = "~> 3.0" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| get-ecr-image(){ | |
| # Split URI in shell | |
| splittedUri=(${1//./ }) | |
| # Get needed positions (account & region) | |
| ACCOUNT=${splittedUri[0]} # account | |
| REGION=${splittedUri[3]} # region | |
| # Get ECR password & Login in ECR | |
| aws ecr get-login-password --region ${REGION} | docker login --username AWS --password-stdin "${ACCOUNT}.dkr.ecr.${REGION}.amazonaws.com" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kubectl get configmap -o json -n namespace | jq '.items[] | [.metadata.namespace, .metadata.name, .data ]' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| namespaces=(namespace1 namespace2) | |
| env='dev.' | |
| for namespace in "${namespaces[@]}"; do | |
| echo '################################' | |
| echo "# Namespace: ${namespace}" | |
| echo '################################' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: my-service | |
| namespace: default | |
| spec: | |
| type: ExternalName | |
| externalName: google.com | |
| --- | |
| apiVersion: networking.k8s.io/v1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias k=kubectl | |
| alias kubectx='kubectl ctx' | |
| alias kctx='kubectl ctx' | |
| alias kubens='kubectl ns' | |
| alias kns='kubectl ns' | |
| complete -F __start_kubectl k | |
| export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias tp='terraform plan -out=plan.out' | |
| alias tv='terraform show -json plan.out > plan.json && terraform-visual --plan plan.json && xdg-open terraform-visual-report/index.html' | |
| alias tpv='terraform plan -out=plan.out && terraform show -json plan.out > plan.json && terraform-visual --plan plan.json && xdg-open terraform-visual-report/index.html' | |
| alias tap='terraform apply plan.out' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| x(){ | |
| if [ -f $1 ] ; then | |
| case $1 in | |
| *.tar.bz2) tar xvjf $1 ;; | |
| *.tar.gz) tar xvzf $1 ;; | |
| *.bz2) bunzip2 $1 ;; | |
| *.rar) unrar x $1 ;; | |
| *.gz) gunzip $1 ;; | |
| *.tar) tar xvf $1 ;; | |
| *.tbz2) tar xvjf $1 ;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data "aws_eks_cluster" "eks_cluster" { | |
| name = var.eks_name | |
| } | |
| locals { | |
| oidcprovider =replace(data.aws_eks_cluster.eks_cluster.identity[0].oidc[0].issuer,"/(https://)/","") | |
| } |