Skip to content

Instantly share code, notes, and snippets.

View dejangeorgiev's full-sized avatar

Dejan Georgiev dejangeorgiev

View GitHub Profile

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@dejangeorgiev
dejangeorgiev / docker-compose up -d {containers}
Created July 16, 2019 09:14
docker-compose up -d {containers}
docker-compose up -d nginx mysql phpmyadmin redis beanstalkd
@dejangeorgiev
dejangeorgiev / docker-compose exec php-fpm bash
Created July 4, 2019 09:13
docker-compose exec php-fpm bash
call php-fpm bash with docker
@dejangeorgiev
dejangeorgiev / php artisan tinker
Created July 4, 2019 09:10
Laravel call php tinker
For testing php functions in the console
1. public function boot()
{
Schema::defaultStringLength(191);
}
2. php artisan key:generate
3. php artisan migrate
@dejangeorgiev
dejangeorgiev / composer-proxy-define
Created June 19, 2019 10:04
Using Composer behind a proxy
#Define the proxy in the CLI :
export http_proxy='10.185.0.131:3128'
export https_proxy='10.185.0.131:3128'
@dejangeorgiev
dejangeorgiev / GIT change Language
Created February 18, 2019 14:48
GIT set Language
Add these lines to your ~/.bashrc or ~/.bash_profile to force git to display all messages in English:
# Set Git language to English
#alias git='LANG=en_US git'
alias git='LANG=en_GB git'
The alias needs to override LC_ALL on some systems, when the environment variable LC_ALL is set, which has precedence over LANG. See the UNIX Specification - Environment Variables for further explanation.
# Set Git language to English
#alias git='LC_ALL=en_US git'
alias git='LC_ALL=en_GB git'
@dejangeorgiev
dejangeorgiev / htaccess ErrorDocument 404.txt
Created July 26, 2018 09:30
.htaccess Page not found. ErrorDocument 404
ErrorDocument 404 htpps://www.domain.com
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect to HTTPS
@dejangeorgiev
dejangeorgiev / Composer install without platform requirements
Created July 26, 2018 09:12
Composer install without platform requirements
composer install --ignore-platform-reqs
@dejangeorgiev
dejangeorgiev / Docker stop all containers
Last active July 26, 2018 09:13
Docker stop all containers
docker stop $(docker ps -q)