Skip to content

Instantly share code, notes, and snippets.

View Ortega-Dan's full-sized avatar

Dan Ortega Ortega-Dan

View GitHub Profile
@Ortega-Dan
Ortega-Dan / bash_functions.sh
Last active February 26, 2023 05:20 — forked from soxofaan/README.md
Simple pretty CSV and TSV file viewer.
#####################################################
# Bash functions to put in .bashrc or .bash_aliases #
#####################################################
# For Debian/Ubuntu
function pretty_csv {
column -t -s, -n "$@" | less -F -S -X -K
}
function pretty_tsv {
column -t -s $'\t' -n "$@" | less -F -S -X -K
#! /bin/bash
kubectl config view --minify -o yaml|grep current-context
kubectl config view --minify -o yaml|grep namespace
@Ortega-Dan
Ortega-Dan / encrypt_openssl.md
Last active October 11, 2020 04:54 — forked from dreikanter/encrypt_openssl.md
File encryption using OpenSSL

Symmetic encryption

For symmetic encryption, you can use the following:

To encrypt:

openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt

To decrypt: