Skip to content

Instantly share code, notes, and snippets.

View jmorenoamor's full-sized avatar
🚀
Software craftsman, Master of nothing. I love space stuff.

Jesús Moreno Amor jmorenoamor

🚀
Software craftsman, Master of nothing. I love space stuff.
View GitHub Profile
@jmorenoamor
jmorenoamor / .gitignore
Last active October 4, 2023 06:14
Mulesoft
# v1.2
# #################################################################################################
# Java defaults
# #################################################################################################
*.class
*.jar
*.war
*.ear
@jmorenoamor
jmorenoamor / Homer.txt
Created July 19, 2023 18:42
ASCII Art
___,------,
_,--.---. __,--' /
,' _,'_`._ \ _,-' ___,|
;--' `^-. ,' __,---' ||
,' \ ,' _,-' ||
/ \ _,' ,-' ||
: . ,' _,' |:
| : `. ,' |:
| _,- | `-,' ::
@jmorenoamor
jmorenoamor / kseal.ps1
Last active March 15, 2023 11:54
Bitnami Sealed Secrets
<#
.SYNOPSIS
Powershell function to seal secrets
.DESCRIPTION
Seals all the secrets in ./<env>/source-secrets and place them in ./<env>/secrets
Remember to add this to your .gitignore file to avoid unintended leaks
**/source-secrets/

Public dashboard ingress route

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  annotations:
    kubernetes.io/ingress.class: traefik-public
  name: traefik-public-dashboard-ingress
  namespace: ingress
@jmorenoamor
jmorenoamor / .bash_aliases
Created March 5, 2023 10:28
Bash aliases
alias kube='sudo k0s kubectl'
@jmorenoamor
jmorenoamor / .vimrc
Created March 5, 2023 10:25
Vim configuration
" Disable compatibility with vi which can cause unexpected issues.
set nocompatible
" Enable type file detection. Vim will be able to try to detect the type of file in use.
filetype on
" Enable plugins and load plugin for the detected file type.
filetype plugin on
" Load an indent file for the detected file type.
# .dircolors
#
# Configure your console file colors.
#
# Author: Micah Elliott http://MicahElliott.com
#
# This file should sit in your $HOME as .dircolors or .dir_colors,
# depending on your distro.
#
# Configuration file for dircolors, a utility to help you set the
@jmorenoamor
jmorenoamor / linux_drive_management.md
Last active March 5, 2023 10:20
Linux drive management

Linux drive management

Show devices

sudo lsblk -f
sudo blkid
@jmorenoamor
jmorenoamor / openshift-cheatsheet.md
Created September 3, 2020 05:28 — forked from rafaeltuelho/openshift-cheatsheet.md
My Openshift Cheatsheet

My Openshift Cheatsheet

Openshift build secrets for cloning git repos using SSH Keys

  • To create ssh secret:
oc create secret generic sshsecret \
    --from-file=ssh-privatekey=$HOME/.ssh/id_rsa
@jmorenoamor
jmorenoamor / python_logging.py
Created June 18, 2020 08:37
Python logging setup
import os
import logging
# Simple ##########################################################################################
logging.basicConfig(level=os.environ.get("LOGLEVEL", "DEBUG"), format=os.environ.get("LOGFORMAT", logging.BASIC_FORMAT))
# One line exceptions #############################################################################
class OneLineExceptionFormatter(logging.Formatter):