Skip to content

Instantly share code, notes, and snippets.

@Stoyvo
Stoyvo / Demac | PlayBook: Vagrant-LAMP Resize.md
Last active April 26, 2019 16:35
[LINUX] [VAGRANT] Demac PlayBook - Vagrant-LAMP Resize
@Stoyvo
Stoyvo / password-generator.php
Created April 26, 2019 15:56
[PHP] Password Generator
<?php
// Allowed characters
$passChars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_-=+!@#$%^&*()~?><.,';
// Pre-Define length to 32 characters
$pwLength = 32;
// User defined password length for CLI and web request
if (!empty($argv[1]) && is_numeric($argv[1]) && $argv[1] >= 6) { // CLI
@Stoyvo
Stoyvo / DockerFile
Last active January 3, 2023 09:56
GCP App Engine PHP 8.1 Flexible Environment
FROM php:8.1.1-fpm-alpine
# HEAVILITY INFLUENCED BY https://github.com/TrafeX/docker-php-nginx
# Without TrafeX repository, I'd still be doing this.
LABEL maintainer="Stoyvo"
# No interative terminals
ENV DEBIAN_FRONTEND noninteractive
# Set timezone to UTC. Just easier that way with most cloud services.