Answer to SO question 48693420
Demonstrates substitution in properties file with system variables.
Execute with
username=user1 password=pass1 mvn resources:resources && cat target/classes/development.properties
Expected output:
function errexit() { | |
local err=$? | |
set +o xtrace | |
local code="${1:-1}" | |
echo "Error in ${BASH_SOURCE[1]}:${BASH_LINENO[0]}. '${BASH_COMMAND}' exited with status $err" | |
# Print out the stack trace described by $function_stack | |
if [ ${#FUNCNAME[@]} -gt 2 ] | |
then | |
echo "Call tree:" | |
for ((i=1;i<${#FUNCNAME[@]}-1;i++)) |
#!/usr/bin/env bash | |
#from https://gist.github.com/dvishniakov/86c83ef891d200674522c791589d42b3 | |
# Provides stack trace when error occurs or when manually called | |
# $1 is message | |
# $2 is command | |
# ${ContinueOnErrors} controls whether to continue or stop script if error is catched. | |
# it helps during batch processing. -o errexit/errtrace also affects this | |
errexit() { | |
local errno=$? # non-zero when this function is called via trap |
- Specific Notmuch filters (and saved-searches) for: | |
+ The Feed (newsletters, blogs) | |
+ The Paper trail (receipts, ledger) | |
+ Screened Inbox (mail from folks you actually want to read) | |
+ Previously Seen (important mail that you've already read) | |
+ Unscreened Inbox (potential spam / stuff you don't want) | |
- Elisp Functions to move / categorize emails from a particular sender. | |
+ Adds tags needed by filters defined above to all email sent by a particular sender | |
+ Creates an entry in a DB file, which is used by the Notmuch post-new script when indexing new email, to auto-add the relevant tags. |
#!/usr/bin/python | |
import os | |
import sys | |
import requests | |
schema_registry_url = sys.argv[1] | |
topic = sys.argv[2] | |
schema_file = sys.argv[3] |
Answer to SO question 48693420
Demonstrates substitution in properties file with system variables.
Execute with
username=user1 password=pass1 mvn resources:resources && cat target/classes/development.properties
Expected output:
;; Stuff for exporting formatted code snippets using Pygments | |
;; <http://pygments.org/>. Install pygments (e.g. pip install | |
;; pygments) to use. | |
(setq pygmentize-lexers (make-hash-table)) | |
(puthash 'emacs-lisp-mode "common-lisp" pygmentize-lexers) | |
(puthash 'scala-mode "scala" pygmentize-lexers) | |
(puthash 'java-mode "java" pygmentize-lexers) | |
(puthash 'ruby-mode "rb" pygmentize-lexers) | |
(puthash 'python-mode "py" pygmentize-lexers) |
People
![]() :bowtie: |
๐ :smile: |
๐ :laughing: |
---|---|---|
๐ :blush: |
๐ :smiley: |
:relaxed: |
๐ :smirk: |
๐ :heart_eyes: |
๐ :kissing_heart: |
๐ :kissing_closed_eyes: |
๐ณ :flushed: |
๐ :relieved: |
๐ :satisfied: |
๐ :grin: |
๐ :wink: |
๐ :stuck_out_tongue_winking_eye: |
๐ :stuck_out_tongue_closed_eyes: |
๐ :grinning: |
๐ :kissing: |
๐ :kissing_smiling_eyes: |
๐ :stuck_out_tongue: |
Listing pods with kubectl get pods
, then select a pod name and copy paste it into kubectl logs [pod name]