Skip to content

Instantly share code, notes, and snippets.

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
npm install -g @angular/cli
#Creazione del progetto con nome PROJECT_NAME
ng new PROJECT_NAME
#Mi sposto sulla cartella del progetto appena creato
cd PROJECT_NAME
#Eseguo l'applicazione
ng serve
<?php
class test {}
$a = new test();
$b = clone $a;
echo (int) ($a == $b); // TRUE
echo (int) ($a === $b); // FALSE
?>
FROM php:7.2-fpm
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
libmemcached-dev \
libz-dev \
libpq-dev \
libjpeg-dev \
libpng-dev \
FROM postgres:10.2-alpine
ENV POSTGRES_DB laravel_app
EXPOSE 5432
server {
listen 80;
index index.php index.html;
root /var/www/blog/public;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
FROM nginx:latest
WORKDIR /var/www
@lmillucci
lmillucci / docker-compose.yml
Last active February 24, 2018 11:41
docker-compose
version: '3'
services:
web:
build:
context: ./.docker
dockerfile: web.docker
container_name: nginx
ports:
- "8080:80"
<?xml version="1.0"?>
<ruleset name="Blog">
<arg name="encoding" value="UTF-8" />
<!-- Include the whole PSR-2 standard -->
<rule ref="PSR2"/>
<!-- Make it more strict with additional rules -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>