Note à moi même : il faut faire attention aux headers qu'on forward à l'origine dans ce cas précis car ça peut poser des problemes d'authent' entre cloudfront et le bucket s3
-
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html#private-content-origin-access-identity-signature-version-4django template does not like defaultdict, 2 solutions:
1) set default_factory to None
or
2) cast defaultdict to a simpledict
"The template variable resolution algorithm in Django will attempt to resolve new_data.items as new_data['items'] first, which resolves to an empty list when using defaultdict(list)."
-
https://stackoverflow.com/questions/4764110/django-template-cant-loop-defaultdictJ'adore le concept, recréer des locaux virtuels où on peut aller tape sur l'épaule d'un collègue, se réunir dans une salle de réunion, devant un tableau blanc.. excellent !
-
https://www.gather.town/: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/1068