]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
more on yasnippets.
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Mon, 29 Feb 2016 15:39:30 +0000 (16:39 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Mon, 29 Feb 2016 15:41:12 +0000 (16:41 +0100)
snippets/eshell-mode/aws-ec2-describe-instance-status
snippets/eshell-mode/aws-ec2-get-console-output
snippets/eshell-mode/aws-ec2-get-instance-details
snippets/eshell-mode/aws-ec2-start-stop-instance
snippets/eshell-mode/aws-elb-describe-instance-health
snippets/eshell-mode/aws-elb-describe-load-balancer
snippets/eshell-mode/aws-elb-describe-load-balancer-attributes
snippets/eshell-mode/aws-rds-describe-parameters
snippets/eshell-mode/aws-route53-list-resource-record-sets
snippets/rhtml-mode/if [new file with mode: 0644]

index bc09cd40ea87ac578d71912fb190c26d3cf99be7..f977daf8d5455cc847b8457190498b07a6fb137e 100644 (file)
@@ -1,5 +1,5 @@
 # -*- mode: snippet -*-
-# name: aws-ec2-describe-instance-status
+# name: aws-ec2-describe-instance-status (yank)
 # key: aws-ec2-describe-instance-status
 # --
 aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 describe-instance-status --instance-ids ${4:`(yank)`} $0
\ No newline at end of file
index ac12128bab5993e4e167bafe8f6c7b1a70852158..425da98172755da7474fd812a821953611e59876 100644 (file)
@@ -1,5 +1,5 @@
 # -*- mode: snippet -*-
-# name: aws-ec2-get-console-output
+# name: aws-ec2-get-console-output (yank)
 # key: aws-ec2-get-console-output
 # --
 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
index 808e4bdaed2b158760ac1dc7ad1af68c2ca9ebde..8cad2fede9c12c6bf8141e02c19956a35ed76a14 100644 (file)
@@ -1,5 +1,5 @@
 # -*- mode: snippet -*-
-# name: aws-ec2-get-instance-details
+# name: aws-ec2-get-instance-details (yank)
 # key: aws-ec2-get-instance-details
 # --
 aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 describe-instances --instance-ids ${4:`(yank)`} $0
\ No newline at end of file
index 194b4d59f9a1896290480024f06be6df46e47a7a..56546997732bb394b512d685b1190416bb483e69 100644 (file)
@@ -1,5 +1,5 @@
 # -*- mode: snippet -*-
-# name: aws-ec2-start-stop-instance
+# name: aws-ec2-start-stop-instance (yank)
 # key: aws-ec2-start_stop-instance
 # --
 aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 ${4:$$(yas-choose-value '("start-instances" "stop-instances"))} --instance-ids ${5:`(yank)`} $0
\ No newline at end of file
index 12ad4030f9c1757584d1180deef3fb94937827a8..3bc7f82639d9522619eb6b3964d337ec1c6a6ba2 100644 (file)
@@ -1,5 +1,5 @@
 # -*- mode: snippet -*-
-# name: aws-elb-describe-instance-health
+# name: aws-elb-describe-instance-health (yank)
 # key: aws-elb-describe-instance-health
 # --
 aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} elb describe-instance-health --load-balancer-name ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
index 30d1229b902c5dc6c5833de1e0a59a30544fd806..65a65bdd8f55b90078bc70aa0439798939593970 100644 (file)
@@ -1,5 +1,5 @@
 # -*- mode: snippet -*-
-# name: aws-elb-describe-load-balancer
+# name: aws-elb-describe-load-balancer (yank)
 # key: aws-elb-describe-load-balancer
 # --
 aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} elb describe-load-balancers --load-balancer-name ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
index a4921ba35665ab82d1626c15e2d54faf4745c07b..6a5ce089459ba4c1cead67eb61fc1d1c12f8ca98 100644 (file)
@@ -1,5 +1,5 @@
 # -*- mode: snippet -*-
-# name: aws-elb-describe-load-balancer-attributes
+# name: aws-elb-describe-load-balancer-attributes (yank)
 # key: aws-elb-describe-load-balancer-attributes
 # --
 aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} elb describe-load-balancer-attributes --load-balancer-name ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
index 1b7bb2757f1169ce6b7e3b8a96118c7ca70feeef..9264b7348d8b0765d8e685d47d7a75e0c300c269 100644 (file)
@@ -1,5 +1,5 @@
 # -*- mode: snippet -*-
-# name: aws-rds-describe-parameters
+# name: aws-rds-describe-parameters (yank)
 # key: aws-rds-describe-parameters
 # --
 aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} rds describe-db-parameters --db-parameter-group-name ${4:`(yank)`} --query "Parameters[*][ParameterName, ParameterValue]" --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
index 0692c3507604bf5d4f442f74f7ce08cbaea71328..61a6559de8cf15c7cef2f0517c2d7780334a2dff 100644 (file)
@@ -1,5 +1,5 @@
 # -*- mode: snippet -*-
-# name: aws-route53-list-resource-record-sets
+# name: aws-route53-list-resource-record-sets (yank)
 # key: aws-route53-list-resource-record-sets
 # --
 aws --profile=${1:$$(yas-choose-value '("prod" "test"))} route53 list-resource-record-sets --hosted-zone-id ${2:`(yank)`} --query \"ResourceRecordSets[?contains(Name, '$3')].Name\" --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
diff --git a/snippets/rhtml-mode/if b/snippets/rhtml-mode/if
new file mode 100644 (file)
index 0000000..24cb496
--- /dev/null
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: if
+# key: <if
+# --
+<% if $1 -%>
+$0
+<% end -%>
\ No newline at end of file