Skip to content

Instantly share code, notes, and snippets.

View preda-bogdan's full-sized avatar
:octocat:

Bogdan Preda preda-bogdan

:octocat:
View GitHub Profile
@preda-bogdan
preda-bogdan / Dockerfile
Last active June 18, 2024 11:10
Neve Debian 10 Nginx Debug
# Use the official Debian 10 base image
FROM debian:10
# Set environment variables
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y wget curl tar unzip
RUN apt -y install lsb-release apt-transport-https ca-certificates
RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
@preda-bogdan
preda-bogdan / greeter.php
Created June 8, 2017 09:08
A greeting Class
<?php
class Greeter {
private $greeting;
public function __construct() {
$this->greeting = 'Hello';
}
public function greet( $subject = '' ) {
return $this->greeting . ' ' . $subject . '!' . PHP_EOL;