I hereby claim:
- I am Kgaut on github.
- I am kgaut (https://keybase.io/kgaut) on keybase.
- I have a public key whose fingerprint is 4D6A C712 BC98 60F0 F60B 84BA 34EA E8B1 EB25 7C40
To claim this, I am signing this object:
## db-dump : Dump the database in a dated gzip file within ./db folder | |
.PHONY: db-dump | |
dump: | |
docker exec $(shell docker ps --filter name='^/$(PROJECT_NAME)_php' --format "{{ .ID }}") drush -r $(DRUPAL_ROOT) $(filter-out $@,$(MAKECMDGOALS)) sql-dump --gzip --result-file="../db/`date +%Y-%m-%d_%H-%M-%S`-$(PROJECT_BASE_URL)-DEV.sql" | |
## db-import : Supprime la base de données | |
## Recrée la base de données | |
## importe le dump le plus récent du dossier db/, | |
## vide le cache | |
## réimporte la configuration |
# Installation de docker | |
sudo apt-get install docker.io | |
# Installation de docker compose | |
curl -L https://github.com/docker/compose/releases/download/1.25.3/docker-compose-`uname -s`-`uname -m` > docker-compose | |
sudo mv docker-compose /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
# On s'ajoute au groupe « docker » | |
sudo usermod -a -G docker $(id -un) |
#################### | |
# Config dnsmasq | |
#################### | |
# SEE : https://askubuntu.com/questions/1029882/how-can-i-set-up-local-wildcard-127-0-0-1-domain-resolution-on-18-04 | |
sudo apt-get install dnsmasq | |
sudo vim /etc/NetworkManager/NetworkManager.conf | |
# Add the line dns=dnsmasq to the end of [main] section | |
sudo rm /etc/resolv.conf ; sudo ln -s /var/run/NetworkManager/resolv.conf /etc/resolv.conf | |
echo 'address=/test/127.0.0.1' | sudo tee /etc/NetworkManager/dnsmasq.d/dot.test-wildcard.conf | |
echo 'address=/localhost/127.0.0.1' | sudo tee /etc/NetworkManager/dnsmasq.d/dot.localhost-wildcard.conf |
créer un fichier de conf avec login et password sur ligne distict | |
dans le fichier .ovpn ajouter à la ligne `auth-user-pass NOMFICHIERCONF` | |
source : https://my.hostvpn.com/knowledgebase/22/Save-Password-in-OpenVPN-for-Automatic-Login.html | |
http://askubuntu.com/questions/426211/auto-start-openvpn-with-one-ovpn-file/426217 | |
http://askubuntu.com/questions/464264/starting-openvpn-client-automatically-at-boot |
cd /etc/gitlab/ssl/ | |
ln -s /etc/letsencrypt/live/mattermost.EXAMPLE.net/fullchain.pem ./mattermost.EXAMPLE.net.crt | |
ln -s /etc/letsencrypt/live/mattermost.EXAMPLE.net/privkey.pem ./mattermost.EXAMPLE.net.key |
# -*- mode:python -*- | |
from __future__ import unicode_literals | |
__license__ = 'GPL v3' | |
__copyright__ = '2016, Daniel Bonnery ? (contact: DanielBonnery sur mobileread.com) 2009, Mathieu Godlewski <mathieu at godlewski.fr>; 2010-2012, Louis Gesbert <meta at antislash dot info>' | |
''' | |
Mediapart | |
''' | |
__author__ = '2016, Daniel Bonnery (contact: DanielBonnery sur mobileread.com), 2009, Mathieu Godlewski <mathieu at godlewski.fr>; 2010-2012, Louis Gesbert <meta at antislash dot info>' |
; À placer dans le dossier /etc/php/7.0/apache2/conf.d | |
display_errors = On | |
html_errors = On | |
log_errors = On | |
max_execution_time = 60 | |
max_input_time = 120 | |
memory_limit = 512M | |
error_reporting = E_ALL |
version: "2" | |
services: | |
web: | |
image: kgaut/runner-drupal-php:php-5.6 # OR kgaut/runner-drupal-php:php-7 | |
ports: | |
- 3012:80 | |
environment: | |
DRUPAL_URI: 'http://127.0.0.1:3012/' | |
MYSQL_ENV_MYSQL_USER: drupal | |
MYSQL_ENV_MYSQL_PASSWORD: test |
I hereby claim:
To claim this, I am signing this object: