Skip to content

Instantly share code, notes, and snippets.

View majiix's full-sized avatar
🏠
Working from home

Majix majiix

🏠
Working from home
View GitHub Profile
class Hello extends React.Component {
constructor(){
super();
this.state = {
message: "my friend (from state)!"
};
this.updateMessage = this.updateMessage.bind(this);
}
updateMessage() {
class Hello extends React.Component {
constructor(){
super();
this.state = {
message: "my friend (from state)!"
};
}
render() {
class Hello extends React.Component {
render() {
return <h1>Hello {this.props.message}!</h1>;
}
}
ReactDOM.render(
<Hello message="my friend" />,
document.getElementById("root")
);
ReactDOM.render(
<Hello />,
document.getElementById("root")
);
class Hello extends React.Component {
render() {
return <h1>Hello world!</h1>;
}
}
<html>
<head>
<script src="https://unpkg.com/react@15/dist/react.min.js"> </script><script src="https://unpkg.com/react-dom@15/dist/react-dom.min.js">
</script>
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
sudo apt-get update
sudo apt-get install python-certbot-apache
sudo certbot --apache -d example.com -d www.example.com
Output
Status: active
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere
Apache Full ALLOW Anywhere
OpenSSH (v6) ALLOW Anywhere (v6)
Apache Full (v6) ALLOW Anywhere (v6)