- download images to our computer
$ docker pull <image-name>
- builds an image from a Dockerfile
$ docker build <path>
# My Django Project | |
# Version: 1.0 | |
# FROM - Image to start building on. | |
FROM python:3 | |
# PROJECT SETUP | |
# ---------------- |
$ docker pull <image-name>
$ docker build <path>
#!/bin/sh | |
############################################################# | |
# Bash script to install LEMP Stack (+ some other tools) | |
# Target Machine : Ubuntu 16.04 @ AWS EC2 | |
# Written by Talha Ibne Imam (@cse031sust02) | |
############################################################# | |
HC='\033[0;32m' # Heading Color | |
WC='\033[0;33m' # Warning Color |
#!/bin/sh | |
######################################################## | |
# Bash script to install HeavyGari Laravel App | |
# Written by Talha Ibne Imam | |
######################################################## | |
HC='\033[0;32m' # Heading Color | |
WC='\033[0;33m' # Warning Color | |
NC='\033[0m' # No Color |
<?php | |
use GuzzleHttp; | |
$access_token = 'FIREBASE CLOUD MESSAGING SERVER KEY'; | |
$reg_id = 'DEVICE REGISTRATION ID'; | |
$message = [ | |
'notification' => [ |
☐ Start | |
- sudo apt-get update | |
☐ Install nginx | |
- sudo apt-get install nginx | |
☐ Install PHP (PHP7) | |
- sudo add-apt-repository ppa:ondrej/php | |
- sudo apt-get update |
server { | |
server_name domain.tld; | |
root /var/www/codeignitor; | |
index index.html index.php; | |
# set expiration of assets to MAX for caching | |
location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ { | |
expires max; | |
log_not_found off; |
server { | |
server_name domain.tld; | |
root /var/www/codeignitor; | |
index index.html index.php; | |
# set expiration of assets to MAX for caching | |
location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ { | |
expires max; | |
log_not_found off; |