/home/ubuntu/afterRestart /usr/bin/dotnet /home/ubuntu/path_to_dll
- nano /etc/supervisor/supervisord.conf
- and type at the end this:
[program:kai_worker]
var d = document; | |
var l=console.log; | |
/** foreach with adding event to each element **/ | |
var fe=(arr,func=(e)=>console.log(e),eventName='onclick')=>{ | |
for(var z = 0; z < arr.length; z++) { | |
var elem = arr[z]; | |
elem[eventName]=()=>func(elem) | |
} | |
}; |
[spoiler]
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -p tcp --dport ssh -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -m limit --limit 25/minute --limit-burst 100 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
git clone https://github.com/wmnnd/nginx-certbot.git
cd nginx-certbot/
ll
nano init-letsencrypt.sh
nano data/nginx/app.conf