The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.
Send messages to iframe using iframeEl.contentWindow.postMessage
Recieve messages using window.addEventListener('message')
#!/usr/bin/env bash | |
# | |
# gh-dl-release! It works! | |
# | |
# This script downloads an asset from latest or specific Github release of a | |
# private repo. Feel free to extract more of the variables into command line | |
# parameters. | |
# | |
# PREREQUISITES | |
# |
curl --header 'Authorization: token INSERTACCESSTOKENHERE' \ | |
--header 'Accept: application/vnd.github.v3.raw' \ | |
--remote-name \ | |
--location https://api.github.com/repos/owner/repo/contents/path | |
# Example... | |
TOKEN="INSERTACCESSTOKENHERE" | |
OWNER="BBC-News" | |
REPO="responsive-news" |
I hereby claim:
To claim this, I am signing this object:
class ShouldNotUpdate extends React.Component { | |
constructor(props) { | |
super(props); | |
this.counter = 0; | |
} | |
shouldComponentUpdate(nextProps, nextState) { | |
return this.props.children !== nextProps.children; | |
} | |
( find . -type d -name ".git" && find . -name ".gitignore" && find . -name ".gitmodules" ) | xargs rm -rf |
server { | |
listen 80; | |
listen [::]:80; | |
server_name matrix.tristor.ro; | |
location '/.well-known/acme-challenge' { | |
default_type "text/plain"; | |
allow all; | |
root /var/www/matrix.tristor.ro/public/; | |
} |
There are two main modes to run the Let's Encrypt client (called Certbot
):
Webroot is better because it doesn't need to replace Nginx (to bind to port 80).
In the following, we're setting up mydomain.com
.
HTML is served from /var/www/mydomain
, and challenges are served from /var/www/letsencrypt
.