sudo apt update
sudo apt install lsb-release ca-certificates apt-transport-https software-properties-common -y
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /web; | |
index index.html; | |
location / { | |
try_files $uri $uri/ @rewrites; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Math.area = Math.area || function(polygon){ | |
const length = polygon.length; | |
let sum = 0; | |
for(let i = 0; i < length; i += 2){ | |
sum += polygon[i ] * polygon[(i + 3) % length] | |
- polygon[i + 1] * polygon[(i + 2) % length]; | |
} |
-
git clone https://github.com/dockerwest/compose-pimcore.git && cd compose-pimcore
-
./environment
-
run up
-
New shell window and
./environment shell
-
create_db pimcore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Livewire; | |
use App\Models\Event; | |
use Livewire\Component; | |
use Illuminate\Support\Str; | |
use Illuminate\Support\Carbon; | |
use Illuminate\Support\Facades\Cache; |
mkdir ~/source
cd ~/source
git clone https://github.com/arzzen/git-quick-stats.git
mkdir ~/bin
ln -s ~/source/git-quick-stats/git-quick-stats ~/bin/git-quick-stats
chmod +x ~/bin/git-quick-stats
export PATH=${PATH}:~/bin
sudo apt update
sudo apt-get install fonts-powerline
sudo apt install zsh
zsh --version
sudo chsh -s $(which zsh) $(whoami)
This is a detailed runbook for setting up a production server on an Ubuntu 16.04 cloud VPS for automated deployment of static web content to be served by an NGINX web server and Node.js web application behind an NGINX reverse-proxy, both with SSL/TLS (https) support.
The steps are as follows: