Skip to content

Instantly share code, notes, and snippets.

@frovere
frovere / react-native-render-html-npm-6.3.4-35624feabf.patch
Last active August 13, 2024 16:22
react-native-render-html 6.3.4 default props patch
diff --git a/src/RenderHTMLConfigProvider.tsx b/src/RenderHTMLConfigProvider.tsx
index 0df5375f7aecf630f1440d0642f84b205b919b22..925062a4f4fca8748480867986906d23f58cd373 100644
--- a/src/RenderHTMLConfigProvider.tsx
+++ b/src/RenderHTMLConfigProvider.tsx
@@ -1,5 +1,4 @@
import React, { PropsWithChildren, ReactElement, useMemo } from 'react';
-import PropTypes from 'prop-types';
import RenderersPropsProvider from './context/RenderersPropsProvider';
import SharedPropsProvider from './context/SharedPropsProvider';
import TChildrenRenderersContext from './context/TChildrenRendererContext';
@frovere
frovere / _modal.scss
Created May 11, 2021 12:51
desktop bulma modals
@import "~bulma/sass/utilities/mixins";
$modal-offset: (2 * $gap);
@include desktop {
.modal.is-fluid-desktop, .modal.is-desktop {
padding: $modal-offset;
.modal-card, .modal-content {
width: 100%;
min-height: 100%;
@frovere
frovere / README.md
Created June 28, 2016 13:17 — forked from renchap/README.md
One-line certificate generation/renews with Letsencrypt and nginx

Prerequisites : the letsencrypt CLI tool

This method allows your to generate and renew your Lets Encrypt certificates with 1 command. This is easily automatable to renew each 60 days, as advised.

You need nginx to answer on port 80 on all the domains you want a certificate for. Then you need to serve the challenge used by letsencrypt on /.well-known/acme-challenge. Then we invoke the letsencrypt command, telling the tool to write the challenge files in the directory we used as a root in the nginx configuration.

I redirect all HTTP requests on HTTPS, so my nginx config looks like :

server {