Directories on host machine:
-
/data/certbot/letsencrypt
-
/data/certbot/www
-
Nginx server in docker container
docker run -d --name nginx \
Directories on host machine:
/data/certbot/letsencrypt
/data/certbot/www
Nginx server in docker container
docker run -d --name nginx \
#!/usr/bin/env bash | |
set -x # uncomment to debug | |
# required for Homebrew | |
xcode-select —-install | |
sudo xcodebuild -license accept | |
# install https://brew.sh/ | |
which brew || (/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" ) |
# Read more here: https://docs.sheetsu.com/?shell#create | |
curl "https://sheetsu.com/apis/v1.0/{your_api_id}" \ | |
-X POST \ | |
-H "Content-Type: application/json" \ | |
-d ' | |
{ | |
"rows": [ | |
{ "link": "https://google.com" }, | |
{ "link": "https://www.apple.com/" }, | |
{ "link": "https://sheetsu.com" }, |
String pro_domain = '2017.drupalcamp.es' | |
String dev_domain = 'dev.drupalcamp.es' | |
String drush_pro = "drush -l ${pro_domain} -r /var/www/${pro_domain}/current/web" | |
String drush_dev = "drush -l ${dev_domain} -r /var/www/${dev_domain}/current/web" | |
String files_pro = "/var/www/${pro_domain}/shared/web/sites/default/files/" | |
String files_dev = "/var/www/${dev_domain}/shared/web/sites/default/files/" | |
String rsyncOpts = '-azv --delete --exclude .php --exclude php --exclude styles' | |
String deploySshKeyId = 'some-key-id' | |
lock(resource: "dev.drupalcamp.es") { |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/dimitar.danailov/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
# ZSH_THEME="robbyrussell" | |
ZSH_THEME="agnoster" |
Dockerfile
that is based on your production image and
simply install xdebug
into it. Exemple:FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
#Spider Websites with Wget – 20 Practical Examples | |
Wget is extremely powerful, but like with most other command line programs, the plethora of options it supports can be intimidating to new users. Thus what we have here are a collection of wget commands that you can use to accomplish common tasks from downloading single files to mirroring entire websites. It will help if you can read through the wget manual but for the busy souls, these commands are ready to execute. | |
1. Download a single file from the Internet | |
wget http://example.com/file.iso | |
2. Download a file but save it locally under a different name | |
wget ‐‐output-document=filename.html example.com |
# Taxonomy terms: | |
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_taxonomy_term-php | |
# Menu links: | |
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_menu_link-php | |
# File items: | |
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_file-php | |
# Nodes: |
# This gist is compatible with Ansible 1.x . | |
# For Ansible 2.x , please check out: | |
# - https://gist.github.com/dmsimard/cd706de198c85a8255f6 | |
# - https://github.com/n0ts/ansible-human_log | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |