]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
snippets all over the place
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Thu, 1 Sep 2016 12:55:28 +0000 (14:55 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Thu, 1 Sep 2016 12:55:28 +0000 (14:55 +0200)
- modified ec2-console, aws-filters and sqlvertica

bba.org
snippets/eshell-mode/aws-ec2-get-console-output
snippets/eshell-mode/aws-filters
snippets/org-mode/sqlvertica

diff --git a/bba.org b/bba.org
index 5a7f4e5fe53c8c4a4adb37e4926d3f2c4c3132d9..2d8c58b197cc3634e920a60d8872da38e882d9b8 100644 (file)
--- 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.
index 425da98172755da7474fd812a821953611e59876..e823d6afe998a4666e55fc0db9752ba76a5b2d2b 100644 (file)
@@ -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)`} >#<buffer *$4-console-output*> $0
\ No newline at end of file
index 42755bd4fa7c9710c4cbd9463db97ce8c2cc210c..0a775d96c67d9333b3b9928742d37665b73f9e67 100644 (file)
@@ -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
index 46570dfde38a925f104bdd61335fae0e4665af5c..ea2480aeb556214a3e90f884585c507800426899 100644 (file)
 :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