Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

Deploying Django with Gunicorn, Nginx and MySQl on Ubuntu 18.04

Setting up software

  1. Update ubuntu software repository
  2. Install
    1. nginx - Serve our website
    2. mysql-server and libmysqlclient-dev - For database
    3. Python 3
  3. ufw - Firewall for our system
@indrawanalghifary
indrawanalghifary / react-native-ubuntu-20.04.md
Created April 4, 2022 16:06 — forked from JuniYadi/react-native-ubuntu-20.04.md
Install React Native in Ubuntu 20.04

Install React Native in Ubuntu 20.04

1. Install NodeJS

  • For Development Purpose using NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
@indrawanalghifary
indrawanalghifary / django_deploy.md
Created April 1, 2022 14:14 — forked from bradtraversy/django_deploy.md
Django Deployment - Digital Ocean

Django Deployment to Ubuntu 18.04

In this guide I will go through all the steps to create a VPS, secure it and deploy a Django application. This is a summarized document from this digital ocean doc

Any commands with "$" at the beginning run on your local machine and any "#" run when logged into the server

Create A Digital Ocean Droplet

Use this link and get $10 free. Just select the $5 plan unless this a production app.

@indrawanalghifary
indrawanalghifary / Install.md
Created March 28, 2022 08:59 — forked from genomics-geek/Install.md
Deploying django application with gunicorn nginx mysql

Step One: Update Packages

sudo apt-get update
sudo apt-get upgrade

Step Two: Install and Create Virtualenv

sudo apt-get install python-virtualenv
sudo virtualenv /opt/myenv
/**
* HmacSHA512
*
* @see <http://drumcoder.co.uk/blog/2011/apr/21/calculate-hmac-hash-java/>
* @param String value
* @param String secret
* @return String
*/
private String buildHmacSignature(String value, String secret) {
String result;