Skip to content

Instantly share code, notes, and snippets.

View taras-d's full-sized avatar

Taras Datsenko taras-d

View GitHub Profile
@taras-d
taras-d / index.html
Created December 12, 2018 10:38
Minimal template for HTML page
<!DOCTYPE html>
<html lang="en">
<head>
<title>Title</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
</body>
@taras-d
taras-d / docker-node-example.md
Last active April 25, 2018 13:15
Dockerfile example for Node

Dockerfile example for Node

# Step 1
# Use Node 8 as base image
FROM node:8

# Step 2
# Create app directory (next steps will be executed relative to this directory)
WORKDIR /usr/src/app
@taras-d
taras-d / django-on-apache.md
Created December 11, 2017 20:23
Deploying Django on Apache web server

Deploying Django on Apache web server

(Tested on Ubuntu 14.04 and Apache 2.4.7)

1. Install and enable mod_wsgi

  • sudo apt-get install libapache2-mod-wsgi
  • sudo a2enmod wsgi

2. Static files

Go to project folder and collect static files (setting STATIC_ROOT must be specified) - python manage.py collectstatic

@taras-d
taras-d / ubuntu-apache-site.md
Last active January 27, 2024 20:47
Add site to Apache web server on Ubuntu

Add site to Apache web server on Ubuntu

(tested on Ubuntu 14.04 and Apache 2.4.7)

1. Add site configration

  • Go to /etc/apache2/sites-available, open terminal and execute sudo cp 000-default.conf MySite.conf.
  • Open site config sudo gedit MySite.conf and change content to:
Listen 8022
<VirtualHost *:8022>
@taras-d
taras-d / react-native-on-vs-emulator-and-win10.md
Last active September 1, 2021 08:20
React native on VS Emulator and Windows 10