From: Andreas Gerler Date: Thu, 1 Sep 2016 12:55:28 +0000 (+0200) Subject: snippets all over the place X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=5d3bf67ae7dcc462e87442545fa70be61da20fcc;p=emacsconfig.git snippets all over the place - modified ec2-console, aws-filters and sqlvertica --- diff --git a/bba.org b/bba.org index 5a7f4e5f..2d8c58b1 100644 --- a/bba.org +++ b/bba.org @@ -597,6 +597,7 @@ Single pipes interfere with org tables. Just go double. (add-hook 'org-mode-hook 'hidepw-mode) (setq hidepw-pattern "||\\(.*\\)||") #+END_SRC + * latex Use [[http://orgmode.org/manual/A-LaTeX-example.html#A-LaTeX-example][orgtbl]] to create tables. diff --git a/snippets/eshell-mode/aws-ec2-get-console-output b/snippets/eshell-mode/aws-ec2-get-console-output index 425da981..e823d6af 100644 --- a/snippets/eshell-mode/aws-ec2-get-console-output +++ b/snippets/eshell-mode/aws-ec2-get-console-output @@ -1,5 +1,5 @@ # -*- mode: snippet -*- # name: aws-ec2-get-console-output (yank) -# key: aws-ec2-get-console-output +# key: ec2-console # -- -aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 get-console-output --instance-id ${4:`(yank)`} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 get-console-output --output text --instance-id ${4:`(yank)`} ># $0 \ No newline at end of file diff --git a/snippets/eshell-mode/aws-filters b/snippets/eshell-mode/aws-filters index 42755bd4..0a775d96 100644 --- a/snippets/eshell-mode/aws-filters +++ b/snippets/eshell-mode/aws-filters @@ -2,4 +2,4 @@ # name: aws-filters # key: awsfil # -- ---filters "Name=${1:$$(yas-choose-value '("tag:Name" "tag:Project" "tag:Type" "tag:Cluster" "instance.group-id" "private-ip-address"))},Values=$2" $0 \ No newline at end of file +--filters "Name=${1:$$(yas-choose-value '("tag:Name" "tag:Project" "tag:Type" "tag:Cluster" "instance.group-id" "private-ip-address" "description"))},Values=$2" $0 \ No newline at end of file diff --git a/snippets/org-mode/sqlvertica b/snippets/org-mode/sqlvertica index 46570dfd..ea2480ae 100644 --- a/snippets/org-mode/sqlvertica +++ b/snippets/org-mode/sqlvertica @@ -10,11 +10,11 @@ :dbpassword: (concat ${3:bba-db}) :database: ${4:$2} :exports: both -:prologue: "\a" +:dbprologue: "\\a" :END: (setq $3 "$5")$0 #+BEGIN_SRC sql -\a + #+END_SRC