:echo @% def/my.txt directory/name of file (relative to the current working directory of /abc)
:echo expand('%:t') my.txt name of file ('tail')
:echo expand('%:p') /abc/def/my.txt full path
:echo expand('%:p:h') /abc/def directory containing file ('head')
:echo expand('%:p:h:t') def First get the full path with :p (/abc/def/my.txt), then get the head of that with :h (/abc/def), then get the tail of that with :t (def)
:echo expand('%:r') def/my name of file less one extension ('root')
:echo expand('%:e') txt name of file's extension ('extension')
-
https://vim.fandom.com/wiki/Get_the_name_of_the_current_fileservice check : pour envoyer un status (0,1,2) et un message à la mode Nagios
https://docs.datadoghq.com/developers/service_checks/
-
https://docs.datadoghq.com/fr/api/latest/service-checks/#submit-a-service-checkUn soft pour avoir son feed de subscription dans l'ordre chronologique (et pas dans l'ordre "algo youtube")
Seul probleme, c'est un client lourd :-(
Il doit surement exister la meme chose en web
-
http://alfalis.de/YTSubBox/#xl_TutorialTime to move from Freenode to Libera
-
https://en.wikipedia.org/wiki/Libera_Chat# filter out all elements not with x > 5
a = [el for el in data if el['x'] > 5]
# get all the 'c' attributes as a list
b = [el['c'] for el in data]
# get all the 'c' attributes for the elements with x > 5
c = [el['c'] for el in data if el['x'] > 5]
In Jinja2:
a: {{ data | selectattr('x', 'gt', 5) | list }}
b: {{ data | map(attribute='c') | list }}
c: {{ data | selectattr('x', 'gt', 5) | map(attribute='c') | list }}
-
https://github.com/pallets/jinja/issues/1068kms different accounts : permissions on both side (policy key side and user/role side)
-
https://aws.amazon.com/premiumsupport/knowledge-center/s3-bucket-access-default-encryption/