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:
#!/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:
;; -*- coding: utf-8; lexical-binding: t; -*- | |
;; | |
;; My frequently used commands are listed here | |
;; enable evil-mode | |
(evil-mode 1) | |
(defvar my-use-m-for-matchit nil | |
"If t, use \"m\" key for `evil-matchit-mode'. | |
And \"%\" key is also retored to `evil-jump-item'.") |
;; 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]