This file contains hidden or 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
# the different stages of this Dockerfile are meant to be built into separate images | |
# https://docs.docker.com/compose/compose-file/#target | |
ARG PHP_VERSION=7.3 | |
ARG NODE_VERSION=10 | |
ARG NGINX_VERSION=1.16 | |
FROM php:${PHP_VERSION}-fpm-alpine AS sylius_php | |
# persistent / runtime deps |
This file contains hidden or 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
import {request} from 'https'; | |
function errore(msg) { | |
console.log(msg) | |
process.exit(-1); | |
} | |
if (process.argv.length < 3) { | |
errore("Richiamare lo script passando il token di accesso per le API Tesla"); | |
} |
This file contains hidden or 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
import {request} from 'https'; | |
function errore(msg) { | |
console.log(msg) | |
process.exit(-1); | |
} | |
if (process.argv.length < 4) { | |
errore("Richiamare lo script passando username e password tesla separati da spazio"); | |
} |
This file contains hidden or 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
function delTree($dir) { | |
$files = array_diff(scandir($dir), array('.','..')); | |
foreach ($files as $file) { | |
(is_dir("$dir/$file")) ? delTree("$dir/$file") : unlink("$dir/$file"); | |
} | |
return rmdir($dir); | |
} |