- create Docker droplet via digitalocean one-click-app-docker
- log into it
- generate SSH key
ssh-keygen -t rsa -N "" -f /root/.ssh/id_rsa
- Copy it
#!/bin/sh | |
# @author: Alexandre Plennevaux | |
# @description: MIRROR DISTANT FOLDER TO LOCAL FOLDER VIA FTP | |
# | |
# FTP LOGIN | |
HOST='sftp://ftp.domain.com' | |
USER='ftpusername' | |
PASSWORD='ftppassword' | |
# DISTANT DIRECTORY |
ssh-keygen -t rsa -N "" -f /root/.ssh/id_rsa
<?php | |
/* | |
@name Server Logs Viewer | |
@description Emulates the tail() function. View the latest lines of your LAMP server logs in your browser. | |
@author Alexandre Plennevaux (pixeline.be) | |
@team Oleg Basov (olegeech@sytkovo.su) | |
@date 16.12.2015 | |
*/ |
# 1. Install brew --> http://brew.sh/ | |
# 2. run the following commands in your Terminal | |
brew tap homebrew/dupes | |
brew tap homebrew/versions | |
brew tap homebrew/homebrew-php | |
brew install --with-openssl curl | |
brew install --with-homebrew-curl --with-apache php71 | |
brew install php71-mcrypt php71-imagick | |
# 3. Follow these instructions to make Apache and php-cli use the newer php executable and make the change persist after reboot. | |
brew info php71 |
Date: [4 Septembre 2013], [ville du prestataire], [pays du prestataire]
Entre moi, [Nom du prestataire] et vous [Nom de la société client]
Notre volonté est de toujours donner notre maximum pour répondre à vos besoins et attentes, mais il est important que nous couchions sur papier les modalités de notre relation commerciale afin que chacun de nous partagions le même cadre de référence; qui doit faire quoi et à quel moment, et ce qui se passera si quelque chose ne se passait pas comme prévu. Vous ne trouverez aucun jargon juridique compliqué ou de longs passages de texte incompréhensibles dans ce contrat. Nous n’avons aucune volonté de vous amener à signer quelque chose que vous pourriez regretter par après. Nous souhaitons que le meilleur intérêt des deux parties prévale, dès aujourd’hui et pour la durée de ce contrat.
# This is a template .gitignore file for git-managed WordPress projects. | |
# | |
# Fact: you don't want WordPress core files, or your server-specific | |
# configuration files etc., in your project's repository. You just don't. | |
# | |
# Solution: stick this file up your repository root (which it assumes is | |
# also the WordPress root directory) and add exceptions for any plugins, | |
# themes, and other directories that should be under version control. | |
# | |
# See the comments below for more info on how to add exceptions for your |
<?php | |
/* | |
WORDPRESS SPECIFIC AJAX HANDLER (because admin-ajax.php does not render plugin shortcodes). | |
by alexandre@pixeline.be | |
credits: Raz Ohad https://coderwall.com/p/of7y2q/faster-ajax-for-wordpress | |
*/ | |
//mimic the actual admin-ajax | |
define('DOING_AJAX', true); | |
if (!isset( $_REQUEST['action'])) |
# https://docs.docker.com/compose/yml/ | |
# Each service defined in docker-compose.yml must specify exactly one of | |
# image or build. Other keys are optional, and are analogous to their | |
# docker run command-line counterparts. | |
# | |
# As with docker run, options specified in the Dockerfile (e.g., CMD, | |
# EXPOSE, VOLUME, ENV) are respected by default - you don't need to | |
# specify them again in docker-compose.yml. | |
# | |
service_name: |
server { | |
root template.webroot; | |
server_name template.url; | |
index index.php index.html index.htm; | |
# HTTP Caching of static assets | |
location ~* \.(css|gif|jpg|js|png|ico|otf|sng|xls|doc|exe|jpeg|tgx)$ { |
<?php | |
/* | |
Fetch a quote from http url for a https site (avoids the insecure network error). | |
usage: this-script.php?url=http://johndoe.com | |
*/ | |
/** | |
* Get a web file (HTML, XHTML, XML, image, etc.) from a URL. Return an |