Skip to content

Instantly share code, notes, and snippets.

apt-get update && apt-get upgrade && apt-get autoremove
apt-get install git nodejs nginx ufw python3 python3-pip curl
pip3 install jinja2-cli
ufw allow 22 && ufw logging off && ufw enable && ufw status
npm install yarn
apt-get install rng-tools # Apparently: https://stackoverflow.com/questions/37501596/random-nonblocking-pool-initialization-taking-a-long-time-on-ubuntu-16-04-ser
# USER
echo "Enter your app name (note: this will double as your default username)"
read APP_NAME
upstream {{APP_NAME}} {
server unix:/home/{{APP_NAME}}/app/shared/unicorn.sock fail_timeout=0;
}
server {
listen 80;
server_name example.com;
root /home/{{APP_NAME}}/app/current/public;
{ 16:07:21
data: {
story: {
name: 'sales',
created_at: '2019-08-02T07:22:25.416Z',
published_at: '2019-08-14T08:32:10.635Z',
alternates: [],
id: 1800973,
uuid: '22cf19a8-1f48-4c24-bd22-28a2e8d44243',
content: [Object],
create table referendum
(
id INTEGER not null
constraint referendum_pk
primary key autoincrement,
name text
);
create table questions
(