Skip to content

Instantly share code, notes, and snippets.

View geodis's full-sized avatar

geodis geodis

View GitHub Profile
@geodis
geodis / examples.sh
Last active April 25, 2023 20:43
awk
sintaxis
awk options program file
# Especificar el separador de archivos
-F fs
# file: programa awk
-f file
@geodis
geodis / k8s.md
Last active July 8, 2025 10:41
kubernetes examples

Pod with volumes

cat <<EOF |  kubectl apply -f -
apiVersion: v1
kind: Pod
metadata:
  name: restore
  namespace: monitoring
spec:
 securityContext:
@geodis
geodis / nginx-deploy_full_example
Last active July 23, 2023 10:53
nginx-ingress-svc-deploy-certificate_full_example
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: staging
name: nginx
labels:
name: nginx
spec:
selector:
matchLabels:
@geodis
geodis / deploy_volume_mount.yaml
Last active January 27, 2026 08:52
aws-examples
k apply -f - <<EOF
apiVersion: apps/v1
kind: Deployment
metadata:
name: tools
spec:
replicas: 1
selector:
matchLabels:
app: tools
@geodis
geodis / kubernetes_add_service_account_kubeconfig.sh
Last active March 9, 2021 21:00 — forked from innovia/kubernetes_add_service_account_kubeconfig.sh
Create a service account and generate a kubeconfig file for it - this will also set the default namespace for the user
#!/bin/bash
set -e
set -o pipefail
# Add user to k8s using service account, no RBAC (must create RBAC after this script)
if [[ -z "$1" ]] || [[ -z "$2" ]]; then
echo "usage: $0 <service_account_name> <namespace>"
exit 1
fi
@geodis
geodis / nmap_examples.md
Created July 17, 2020 11:30 — forked from rsperl/nmap_examples.md
nmap examples
@geodis
geodis / .gitconfig
Created June 28, 2020 23:08 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls