Skip to content

Instantly share code, notes, and snippets.

View devlim's full-sized avatar
💡
Githubing....

devlim devlim

💡
Githubing....
View GitHub Profile
@devlim
devlim / 000-default.conf
Last active September 13, 2023 15:03
Apache default virtual host file, default ssl conf file. /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/default-ssl.conf
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
@devlim
devlim / How to Docker without sudo.md
Created December 21, 2019 13:58
How to Docker without sudo

Run Docker commands without sudo

1. Add the docker group if it doesn't already exist
$ sudo groupadd docker
2. Add the connected user $USER to the docker group
@devlim
devlim / php-docker-ext
Created September 29, 2019 09:11 — forked from hoandang/php-docker-ext
Complete list of php docker ext
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN docker-php-ext-install mcrypt
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/