Skip to content

Instantly share code, notes, and snippets.

Avatar

Juampy NR juampynr

View GitHub Profile
@juampynr
juampynr / deployment.log
Created Jul 7, 2017
Jenkins dev deployment success
View deployment.log
Started by GitHub push by juampynr
Ejecutando.en el espacio de trabajo /var/lib/jenkins/jobs/DrupalCampSpain-dev-deploy/workspace
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url git@github.com:AsociacionDrupalES/DrupalCampSpain.git # timeout=10
Cleaning workspace
> git rev-parse --verify HEAD # timeout=10
Resetting working tree
> git reset --hard # timeout=10
> git clean -fdx # timeout=10
@juampynr
juampynr / deployment.log
Last active Jul 7, 2017
DrupalCamp Spain - Dev deployment failure Jenkins log.
View deployment.log
Started by GitHub push by juampynr
Started by GitHub push by juampynr
Ejecutando.en el espacio de trabajo /var/lib/jenkins/jobs/DrupalCampSpain-dev-deploy/workspace
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url git@github.com:AsociacionDrupalES/DrupalCampSpain.git # timeout=10
Cleaning workspace
> git rev-parse --verify HEAD # timeout=10
Resetting working tree
> git reset --hard # timeout=10
@juampynr
juampynr / log.txt
Created Jul 6, 2017
DrupalCamp Spain 2.2.2 deployment Jenkins log
View log.txt
Lanzada por el usuario Juampy NR
Ejecutando.en el espacio de trabajo /var/lib/jenkins/jobs/DrupalCampSpain-prod-deploy/workspace
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url git@github.com:AsociacionDrupalES/DrupalCampSpain.git # timeout=10
Cleaning workspace
> git rev-parse --verify HEAD # timeout=10
Resetting working tree
> git reset --hard # timeout=10
> git clean -fdx # timeout=10
@juampynr
juampynr / db-download.sh
Last active Sep 24, 2018
Downloads a Drupal database dump from a Docker container
View db-download.sh
#!/usr/bin/env bash
# Downloads a database dump from a docker container
#
# Usage:
# sh db-download.sh [hostname] [user] [container]
set -x
HOST=$1
@juampynr
juampynr / setup.sh
Created Sep 7, 2016
Drupal & Docker
View setup.sh
# Based on https://blog.wodby.com/6-reasons-to-deploy-drupal-8-with-docker-how-to-guide-b2f073e61672#.ie28tqlgw
docker pull mariadb
docker pull drupal:8.1
docker run -e MYSQL_ROOT_PASSWORD=admin -e MYSQL_DATABASE=drupal8 -e MYSQL_USER=drupal8 -e MYSQL_PASSWORD=drupal8 -v mariadb:/var/lib/mysql -d --name mariadb mariadb
docker run --name drupal8 --link mariadb:mysql -p 81:80 -d drupal:8.1
View gist:97ed19a24ff68a042012b93c1f426b01
" Vdebug bundle and settings.
Bundle 'joonty/vdebug.git'
if !exists('g:vdebug_options')
let g:vdebug_options = {}
endif
let g:vdebug_options['continuous_mode'] = 1
let g:vdebug_options['break_on_open'] = 0
@juampynr
juampynr / guzzle_post.php
Last active Jul 7, 2021
Sample POST request with Guzzle
View guzzle_post.php
<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
$client = new Client([
'base_uri' => 'http://example.com',
]);
@juampynr
juampynr / response.xml
Created Jun 2, 2016
Plain XML response
View response.xml
<?xml version="1.0" encoding="UTF-8"?>
<response>
<nid>
<value>2</value>
</nid>
<uuid>
<value>a626d6e5-84a6-41ec-98e5-480a7c210295</value>
</uuid>
<langcode>
<value>en</value>
@juampynr
juampynr / response.xml
Created Jun 2, 2016
Custom XML Response
View response.xml
<?xml version="1.0" encoding="UTF-8"?>
<response>
<nid>
<value>2</value>
</nid>
<uuid>
<value>a626d6e5-84a6-41ec-98e5-480a7c210295</value>
</uuid>
<langcode>
<value>en</value>
@juampynr
juampynr / README.md
Created May 31, 2016
Run Drupal 8 web tests without installing Drupal
View README.md
  1. Create a MySQL database.
  2. Create a user that has access to that database.
  3. Make sure that you have the PDO_MySQL PHP library (otherwise you will get an error because it is missing).
  4. Run the following script.
  5. Once tests complete, we need to stop PHP's web server.

Note: there seem to be some issues with PHP's built-in web server. Please report them here https://www.drupal.org/node/1543858.