From: Andreas Gerler Date: Tue, 2 Feb 2016 16:37:53 +0000 (+0100) Subject: whole bunch of new snippets X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=29aed038886bc56d2e07bb8b2d50986020b2e754;p=emacsconfig.git whole bunch of new snippets - aws elb snippets - snippet-mode header - org mode srcshtable and srcshlist --- diff --git a/snippets/eshell-mode/aws-elb-describe-instance-health b/snippets/eshell-mode/aws-elb-describe-instance-health new file mode 100644 index 00000000..12ad4030 --- /dev/null +++ b/snippets/eshell-mode/aws-elb-describe-instance-health @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: aws-elb-describe-instance-health +# 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 diff --git a/snippets/eshell-mode/aws-elb-describe-load-balancer b/snippets/eshell-mode/aws-elb-describe-load-balancer new file mode 100644 index 00000000..30d1229b --- /dev/null +++ b/snippets/eshell-mode/aws-elb-describe-load-balancer @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: aws-elb-describe-load-balancer +# 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 diff --git a/snippets/eshell-mode/aws-elb-describe-load-balancer-attributes b/snippets/eshell-mode/aws-elb-describe-load-balancer-attributes new file mode 100644 index 00000000..a4921ba3 --- /dev/null +++ b/snippets/eshell-mode/aws-elb-describe-load-balancer-attributes @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: aws-elb-describe-load-balancer-attributes +# 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 diff --git a/snippets/eshell-mode/aws-elb-get-list b/snippets/eshell-mode/aws-elb-get-list new file mode 100644 index 00000000..294ddc92 --- /dev/null +++ b/snippets/eshell-mode/aws-elb-get-list @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: aws-elb-get-list +# key: aws-elb-get-list +# -- +aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} elb describe-load-balancers --query "reverse(sort_by(LoadBalancerDescriptions, &CreatedTime)[].[LoadBalancerName, CreatedTime])" --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file diff --git a/snippets/org-mode.org b/snippets/org-mode.org index 36856f04..8f670ddc 100644 --- a/snippets/org-mode.org +++ b/snippets/org-mode.org @@ -3,12 +3,14 @@ |--------------+-------------+------------------------------------------------------| | babel-sh | babel-shell | skeleton to generate a sh file out of an org file | | blog | blog | skeleton for a blog entry | +| results | :res | add results parameter. for src block. | | sqlmysql | sqlmysql | properties to connect to MySQL via org | | sqlora | sqlora | properties to connect to Oracle via org and Perl DBI | -|