$ openssl genrsa -des3 -out root.key 4096
$ openssl genrsa -aes256 -out root.key 4096
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
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " | |
| " ██╗ ██╗██╗███╗ ███╗██████╗ ██████╗ | |
| " ██║ ██║██║████╗ ████║██╔══██╗██╔════╝ | |
| " ██║ ██║██║██╔████╔██║██████╔╝██║ | |
| " ╚██╗ ██╔╝██║██║╚██╔╝██║██╔══██╗██║ | |
| " ╚████╔╝ ██║██║ ╚═╝ ██║██║ ██║╚██████╗ | |
| " ╚═══╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ | |
| " | |
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
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
| #!/usr/bin/env bash | |
| PLATFORM="linux" | |
| ARCH="x64" | |
| VERSION="8.0.25" | |
| INSTALLER="xampp-${PLATFORM}-${ARCH}-${VERSION}-0-installer.run" | |
| cmd(){ | |
| if [[ "$($1 &>/dev/null; echo $?)" == "0" ]]; then | |
| logger "info" "$2" |
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
| #!/usr/bin/env bash | |
| # Author: Lucho00Cuba (JustMe) | |
| # VARS | |
| FTP_USER="ftpuser" | |
| CFG="/etc/vsftpd.conf" | |
| SSL_ENABLED="true" | |
| SSL_CRT="" | |
| SSL_KEY="" |
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
| #!/usr/bin/env python | |
| """Cloudflare API code - example""" | |
| import os | |
| import sys | |
| import requests | |
| from time import sleep | |
| sys.path.insert(0, os.path.abspath('..')) | |
| import CloudFlare |
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
| #!/usr/bin/env bash | |
| function chartmuseum { | |
| # Funcs | |
| function http { | |
| FILTER="" | |
| if [[ ! -z ${map['filter']} ]]; then | |
| FILTER='.[] | to_entries | map(. | select (.key == "'${map['filter']}'" ) | {(.key): .value} ) | .[]' |
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
| # Log | |
| lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
| lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all | |
| lg = !"git lg1" |
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
| import json | |
| import logging | |
| import subprocess | |
| from os import environ | |
| class Helm: | |
| def __init__( | |
| self, helm='helm', kubeconfig=environ.get('KUBECONFIG', None), | |
| default_namespace='default', default_chart_dir='', raise_ex_on_err=False ): |
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
| import requests | |
| import argparse | |
| import os.path | |
| import json | |
| HOST = "chartmuseum.dev" | |
| PORT = "8080" | |
| PATH = "api/charts" | |
| def __get(**kwargs): |
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
| # | |
| # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS | |
| # | |
| include /etc/squid/conf.d/* | |
| auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwd | |
| auth_param basic realm proxy | |
| acl authenticated proxy_auth REQUIRED | |
| # Example rule allowing access from your local networks. | |
| acl localnet src proxy.safehome.local | |
| # Adapt localnet in the ACL section to list your (internal) IP networks |