Skip to content

Instantly share code, notes, and snippets.

@zapashcanon
zapashcanon / defer.sh
Last active April 13, 2020 23:22 — forked from cedws/defer.sh
Go-like defer 'keyword' for shell
#!/bin/sh
DEFER=
defer() {
DEFER="$*; ${DEFER}"
trap "{ $DEFER }" EXIT
}
GIF89a�X�Z��Z��1!u)#d��k��c���JR��Z��k�笍~�b��y�ؗh̥�۷��h-���,8}�ɲO\��xӽè����ɼ�����s��!� NETSCAPE2.0!� �,�X@�`��H�嘞*�0+��;�u��:��@�pG�
��`�D:�P�tI}N��h���z�`�xK����p��F��p�|M���x������|�{�������������������������������������������������������������»Ŀ����������������������������������������������������������� �G��@�&<�!* ��H"�ʼn+b�H��Æ �\H��Ɍ8N�rT��%˗a��Is�M�G�ĩL�˚��IhQ�#��T���R>wJ
�S���?ob�j��D�M�j��,֩V�V%I��W�&�ʝK��ݻr����n���rL�w�G�h�&Z�,_�a%F|L��˘3�
|���cW
6�x1�ӳXr&-���װc��<t�ոi�-�������fݒ�`Ԋ��-�j�Jz~*�5��h��a�w ��K�0����C�˼�����q����կ�����v_ux�e�]ׁ�x�w
>�`��'A8���z�(�s���_r��"���{�a��Ԙ�6���D��@�x�7F0��F�x#���;:�@Rn��V^���q)c��]@/N����鞋n
�np��t�!Fgq:��:�eX����V��]��fp���!$�`���V�c�;Ri�M>��RJ9験�J��>��*Y���m{����)��w:�k�QU�]��n���d���R��5�x!��RF�-�RR i��b�鶘��i��JI�����+�΂��E�m������ �IW��[�o��0��5R0�N<� }}����r �,��9%�R:)��l2�8�,���뀦��������S:���Ѽn�4 $���.ީl���*p��J�@�*Opu�RB���
���76}��*�.a�
@zapashcanon
zapashcanon / peertube.conf
Created November 27, 2018 00:04 — forked from rigelk/peertube.conf
An opinionated httpd/Apache vhost to run PeerTube, following Mozilla's modern security practices as of https://mozilla.github.io/server-side-tls/ssl-config-generator/?server=apache-2.4.28&openssl=1.0.1e&hsts=yes&profile=modern | don't forget to enable WebSockets with `a2enmod proxy_wstunnel`
# It's generally not a good idea to broadcast the version of Apache you run
ServerSignature Off
ServerTokens Prod
# Security configuration
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
SSLHonorCipherOrder on
# Requires Apache >= 2.4
SSLCompression off