- To create ssh secret:
oc create secret generic sshsecret \
--from-file=ssh-privatekey=$HOME/.ssh/id_rsa
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): |
# .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 |
" 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. |
alias kube='sudo k0s kubectl' |
<# | |
.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/ | |
___,------, | |
_,--.---. __,--' / | |
,' _,'_`._ \ _,-' ___,| | |
;--' `^-. ,' __,---' || | |
,' \ ,' _,-' || | |
/ \ _,' ,-' || | |
: . ,' _,' |: | |
| : `. ,' |: | |
| _,- | `-,' :: |
# v1.2 | |
# ################################################################################################# | |
# Java defaults | |
# ################################################################################################# | |
*.class | |
*.jar | |
*.war | |
*.ear |