This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get upgrade -y | |
RUN apt-get -y install git curl | |
RUN curl https://dl.google.com/go/go1.10.1.linux-amd64.tar.gz -o /usr/local/go1.10.1.linux-amd64.tar.gz | |
RUN cd /usr/local/ && tar -xvf go1.10.1.linux-amd64.tar.gz | |
RUN mkdir -p /data/goapp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { render } from 'react-dom'; | |
class App extends Component { | |
constructor(props) { | |
super(props) | |
} | |
render() { | |
return ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
/srv/letsencrypt/letsencrypt-auto --no-self-upgrade renew && service nginx reload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo iptables --table nat --append POSTROUTING --out-interface usb0 -j MASQUERADE | |
sudo iptables --append FORWARD --in-interface eth0 -j ACCEPT | |
echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward |