Skip to content

Instantly share code, notes, and snippets.

View 0hsn's full-sized avatar
☑️
Building chkware/cli

HSN 0hsn

☑️
Building chkware/cli
View GitHub Profile
@0hsn
0hsn / .php-cs-fixer.php
Last active April 5, 2022 23:25
PHP-CS-Fixer v3.x migration guide for custom configuration
<?php
$config = new \PhpCsFixer\Config();
$config->setRules([
'@PSR2' => true,
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'combine_consecutive_unsets' => true,
'class_attributes_separation' => ['elements' => ['method' => 'one']],
'multiline_whitespace_before_semicolons' => true,
@0hsn
0hsn / docker-compose.yml
Last active August 25, 2020 04:39
docker-compose.yml for metabase/metabaes v0.35.4
version: "3.7"
services:
metabase:
container_name: metabase
image: metabase/metabase:v0.35.4
ports:
- "80:3000"
environment:
- MB_DB_FILE=/metabase-data/metabase.db
volumes:
@0hsn
0hsn / Dockerfile
Last active May 2, 2019 02:47
Docker starter for Lumen.
FROM debian:stretch
RUN apt-get update --fix-missing && apt-get upgrade -y && apt-get install -y \
vim build-essential gcc curl wget make lsb-release apt-transport-https ca-certificates
RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
RUN echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php7.3.list
RUN apt-get update --fix-missing
@0hsn
0hsn / install.sh
Last active June 13, 2018 19:38
Apache 2.4, PHP 7.2, and Mysql 5.7 on Ubuntu 16.04 install script to be used with vagrant as provision script
# Variables
APPENV=local
DBHOST=localhost
DBNAME=discussion_forum
DBUSER=root
DBPASSWD=root123
apt-get -qq update --fix-missing > /dev/null 2>&1
echo -e "\n--- Install base packages ---\n"
apt-get -y install vim curl mcrypt build-essential python-software-properties git software-properties-common zip > /dev/null 2>&1