More snippets!
This commit is contained in:
parent
d33a8cac3b
commit
06b7219f94
4 changed files with 28 additions and 0 deletions
7
snippets/ansible-mode/ifdef
Normal file
7
snippets/ansible-mode/ifdef
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: ifdef
|
||||||
|
# key: ifdef
|
||||||
|
# --
|
||||||
|
{% if $1 is defined %}
|
||||||
|
$2 = {{ $1 }}
|
||||||
|
{% endif %}
|
7
snippets/conf-unix-mode/ifdef
Normal file
7
snippets/conf-unix-mode/ifdef
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: ifdef
|
||||||
|
# key: ifdef
|
||||||
|
# --
|
||||||
|
{% if $1 is defined %}
|
||||||
|
$2 = {{ $1 }}
|
||||||
|
{% endif %}
|
5
snippets/eshell-mode/for-loop
Normal file
5
snippets/eshell-mode/for-loop
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
#name : Eshell for loop
|
||||||
|
#key : for
|
||||||
|
# --
|
||||||
|
for f in ${1:*} { ${2:echo} "$f"; $3} $0
|
9
snippets/org-mode/http
Normal file
9
snippets/org-mode/http
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# key: <h
|
||||||
|
# name: org-mode http client
|
||||||
|
# --
|
||||||
|
#+begin_src http
|
||||||
|
${1:GET} https://grafana.dev.wdpharos.io/api/${2:dashboards/uid/klbJ6Rrnk}
|
||||||
|
Authorization: Bearer \$\{auth-key\}
|
||||||
|
Content-Type: application/json
|
||||||
|
$0
|
||||||
|
#+end_src
|
Loading…
Reference in a new issue