Skip to content

Instantly share code, notes, and snippets.

@wimleers
wimleers / ama-manual-cloud-deploy.md
Created Jun 10, 2020 — forked from balsama/ama-manual-cloud-deploy.md
Instructions to manually deploy Migrate Assistant to an Acquia Cloud environment
View ama-manual-cloud-deploy.md

Manually deploy a newly created migrate project to Acquia Cloud

@TODO

Updated 10 June

  • Manually test again
  • Add instructions on scp-ing files directory too

Prerequisites

  1. Admin access to an Acquia Cloud hosting environment.
  2. A Drupal 7 site running locally
View state-of-jsonapi-2018-10.md

Mateu, Gabe and I just released the first RC of JSON API 2, so time for an update!

It's been three months since the previous "state of JSON API" blog post, where we explained why JSON API didn't get into Drupal 8.6 core.

What happened since then? In a nutshell:

  • We're now much closer to getting JSON API into Drupal core!
  • JSON API 2.0-beta1, 2.0-beta2 and 2.0-rc1 were released
  • Those three releases span 84 fixed issues. (Not counting support requests.)
  • includes are now 3 times faster, 4xx responses are now cached!
View json 82 vs 83 work around.patch
modules/json82/json82.info.yml | 5 +++++
modules/json82/json82.services.yml | 5 +++++
modules/json82/src/Json82Encoder.php | 14 ++++++++++++++
modules/json82/src/Json82ServiceModifier.php | 28 ++++++++++++++++++++++++++++
4 files changed, 52 insertions(+)
diff --git a/modules/json82/json82.info.yml b/modules/json82/json82.info.yml
new file mode 100644
index 0000000..3eabde8
--- /dev/null
@wimleers
wimleers / dcon-vienna-api-first.md
Last active Sep 25, 2017 — forked from e0ipso/api-first-priorities.md
DrupalCon Vienna API-First Sprints
View dcon-vienna-api-first.md
View ping.txt
$ ping google.com
PING google.com (216.58.211.110): 56 data bytes
64 bytes from 216.58.211.110: icmp_seq=0 ttl=53 time=19.736 ms
64 bytes from 216.58.211.110: icmp_seq=1 ttl=53 time=21.182 ms
64 bytes from 216.58.211.110: icmp_seq=2 ttl=53 time=91.430 ms
64 bytes from 216.58.211.110: icmp_seq=3 ttl=53 time=21.584 ms
Request timeout for icmp_seq 4
Request timeout for icmp_seq 5
Request timeout for icmp_seq 6
Request timeout for icmp_seq 7
@wimleers
wimleers / sphp.sh
Created Oct 17, 2016 — forked from w00fz/sphp.sh
PHP switcher
View sphp.sh
#!/bin/bash
# Check if command was ran as root.
if [[ $(id -u) -eq 0 ]]; then
echo "The command \"sphp\" should not be executed as root or via sudo directly."
echo "When a service requires root access, you will be prompted for a password as needed."
exit 1
fi
# Usage
View drupal.org-is-down-terminal.txt
HTTP/1.1 200 OK
Accept-Ranges: bytes
Age: 96
Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 26
Content-Security-Policy: frame-ancestors 'self'
Content-Type: text/html; charset=utf-8
Date: Sat, 13 Feb 2016 11:06:49 GMT
View Renderer.php
<?php
class Renderer {
// unchanged relative to HEAD
public function renderRoot(&$elements) {
return $this->render($elements, TRUE);
}
View berdir_wim_drupal_render_root_discussion.txt
11:27:10 berdir: WimLeers: ping
11:27:25 WimLeers: berdir: pong
11:28:38 berdir: WimLeers: did you see my e-mail? ;)
11:28:47 WimLeers: I did not
11:28:56 WimLeers: I'm very far behind on both personal and Acquia e-mail.
11:29:04 WimLeers: sorry :(
11:29:17 berdir: WimLeers: np, I just asked if I can ask you a question :p
11:29:28 WimLeers: haha
11:29:32 WimLeers: oh there it is
11:29:37 WimLeers: shoot!
View assets-sdboyer-diagram.txt
+--------------------------+ extends +-----------------------+ implements +------------------+
+--------------------------------->| AssetCollectionInterface +---------->| AsseticAssetInterface |<------------ + AsseticBaseAsset |
ASSETIC | +--------------------------+ +-----------------------+ +------------------+
| ^ ^
+-----------------------------|---------------------------------------------------------------------------------------------|-------------------------|-----------------------------+
+-----------------------------|---------------------------------------------------------------------------------------------|-------------------------|-----------------------------+
You can’t perform that action at this time.