Example Secret:
apiVersion: kubernetes-client.io/v1
kind: ExternalSecret
metadata:
name: my-k8s-secret
Suppose you want the default branch name created by git init (or tools that shell out to it, like cargo new) to be something other than master. In this example, I'll call it develop.
Add the following to your .gitconfig:
[init]
templateDir = ~/.config/git/template/
| # Use Google Cloud Platform stackdriver with python structlog | |
| from google.cloud.logging import Client | |
| from google.cloud.logging import _helpers | |
| from google.cloud.logging.handlers import CloudLoggingHandler | |
| from google.cloud.logging.handlers.transports.background_thread import _Worker | |
| # pip install python-json-logger | |
| from pythonjsonlogger import jsonlogger |
| # Put this function to your .bashrc file. | |
| # Usage: mv oldfilename | |
| # If you call mv without the second parameter it will prompt you to edit the filename on command line. | |
| # Original mv is called when it's called with more than one argument. | |
| # It's useful when you want to change just a few letters in a long name. | |
| # | |
| # Also see: | |
| # - imv from renameutils | |
| # - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste) |
| #!/usr/bin/env ruby | |
| require 'date' | |
| require 'xml' | |
| def htmlit(infile) | |
| lines = File.readlines(infile) | |
| /<!--\s+(.+)\s+-->/.match lines.shift | |
| lines.unshift('<h2>%s</h2>' % $1) | |
| html = '' | |
| lines.each do |line| |
| # All of your normal .gdbinit commands, functions, and setup tasks | |
| # Update GDB's Python paths with the `sys.path` values of the local Python installation, | |
| # whether that is brew'ed Python, a virtualenv, or another system python. | |
| # Convert GDB to interpret in Python | |
| python | |
| import os,subprocess,sys | |
| # Execute a Python using the user's shell and pull out the sys.path (for site-packages) | |
| paths = subprocess.check_output('python -c "import os,sys;print(os.linesep.join(sys.path).strip())"',shell=True).decode("utf-8").split() |
| #!/usr/bin/env ruby | |
| # if limiting to one chapter, ./audiobook.rb 05 | |
| LIMIT = (ARGV[0] =~ /\A[0-9][0-9]\Z/) ? ARGV[0] : false | |
| BASE = Dir.pwd + '/' | |
| NUMS = BASE + 'ChapterNums/' | |
| DRUM = BASE + 'DrumFills/' | |
| GUIT = BASE + 'GuitarChords/' | |
| URLS = BASE + 'URLs/' |
| -------------------------- MODULE multi_user_wire -------------------------- | |
| EXTENDS Integers, Sequences | |
| CONSTANTS Users, Servers, Accounts | |
| MAX_MONEY == 20 | |
| AtMostOneAdminPerOrg(users, orgs) == {roles \in [users -> {"user","admin"}]: | |
| \A x,y \in users: (roles[x] = "admin" /\ roles[y] = "admin") => x = y} |
| default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam' | |
| default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes' | |
| default['sshd']['sshd_config']['PasswordAuthentication'] = 'no' |