This document has now been incorporated into the uWSGI documentation:
http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html
Steps with explanations to set up a server using:
| sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub | |
| wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin | |
| sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600 # Change this for you device | |
| sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /" | |
| sudo apt-get update | |
| sudo apt install cuda | |
| # Reboot | |
| echo 'export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}' >> ~/.bashrc | |
| source ~/.bashrc | |
| # Should be done now |
| ---- GIT STAT--- | |
| [alias] | |
| # list files which have changed since REVIEW_BASE | |
| # (REVIEW_BASE defaults to 'master' in my zshrc) | |
| files = !git diff --name-only $(git merge-base HEAD \"$REVIEW_BASE\") | |
| # Same as above, but with a diff stat instead of just names | |
| # (better for interactive use) | |
| stat = !git diff --stat $(git merge-base HEAD \"$REVIEW_BASE\") |
| package com.example.menuka.adaptertest; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.os.Bundle; | |
| import android.widget.ListView; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class MainActivity extends AppCompatActivity { |
| ;; -*- mode: emacs-lisp -*- | |
| ;; This file is loaded by Spacemacs at startup. | |
| ;; It must be stored in your home directory. | |
| (defun dotspacemacs/layers () | |
| "Configuration Layers declaration. | |
| You should not put any user code in this function besides modifying the variable | |
| values." | |
| (setq-default | |
| ;; Base distribution to use. This is a layer contained in the directory |
| Russia 16,376,870 6,323,142 10.996 % | |
| China 9,388,211 3,624,807 6.303 % | |
| Unite-tates 9,147,420 3,531,837 6.142 % | |
| Canada 9,093,510 3,511,022 6.105 % | |
| Brazil 8,358,140 3,227,095 5.612 % | |
| Australia 7,682,300 2,966,151 5.158 % | |
| India 2,973,190 1,147,955 1.996 % | |
| Argentina 2,736,690 1,056,641 1.837 % | |
| Kazakhstan 2,699,700 1,042,360 1.813 % | |
| Algeria 2,381,740 919,595 1.599 % |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
| <link href="https://fonts.googleapis.com/css?family=Abel" rel="stylesheet"> | |
| <html> | |
| <head> | |
| <title>EncredX issues</title> | |
| <style> | |
| body{ | |
| font-family:arial; | |
| font-size:1.2em; | |
| } | |
| h1,h2,h3{ | |
| background-color:orange; |
| I should change my password. |
| #!/usr/bin/python3 | |
| import matplotlib.pyplot as plt | |
| import random | |
| #The co-ordinates go in here | |
| # We add one for testing | |
| all_points=[[10,10]] | |
| #generate random points | |
| for point in range(0,10): | |
| X=random.randint(0,60) |