Skip to content

Instantly share code, notes, and snippets.

View sean-e-dietrich's full-sized avatar

Sean Dietrich sean-e-dietrich

View GitHub Profile
@sean-e-dietrich
sean-e-dietrich / dabblet.css
Created May 2, 2016 18:41
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
<?php
if (isset($_POST['environment'])){
$req = pantheon_curl('https://api.live.getpantheon.com/sites/self/settings', NULL, 8443);
$meta = json_decode($req['body'], true);
if($meta['allow_cacheserver'] != 1){
$req = pantheon_curl('https://api.live.getpantheon.com/sites/self/settings', '{"allow_cacheserver":true}', 8443, 'PUT');
}
}
From 9eb964fec6dde4eb0ed19a94e99f2cf1947a183c Mon Sep 17 00:00:00 2001
From: Sean Dietrich <sean.dietrich@inresonance.com>
Date: Thu, 3 Mar 2016 17:36:35 -0800
Subject: [PATCH] Issue with Plupload on pantheon. Converted tokens to
session_id https://www.drupal.org/node/2135195
---
.../modules/contrib/node_gallery/node_gallery_api.pages.inc | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
Desktop $curl -I -k -v https://www.falkschool.pitt.edu/
* Trying 161.47.10.79...
* TCP_NODELAY set
* Connected to www.falkschool.pitt.edu (161.47.10.79) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
* Server certificate: *.sites.schoolyard.com
* Server certificate: COMODO RSA Domain Validation Secure Server CA
* Server certificate: COMODO RSA Certification Authority
> HEAD / HTTP/1.1
> Host: www.falkschool.pitt.edu
Desktop $traceroute www.falkschool.pitt.edu
traceroute to live-falk-school.sites.schoolyard.com (161.47.10.79), 64 hops max, 52 byte packets
1 homeportal (192.168.1.254) 3.248 ms 1.807 ms 3.319 ms
2 107-222-28-2.lightspeed.frokca.sbcglobal.net (107.222.28.2) 25.924 ms 27.204 ms 44.461 ms
3 * * 75.29.64.134 (75.29.64.134) 32.323 ms
4 12.83.77.153 (12.83.77.153) 26.902 ms
12.83.77.157 (12.83.77.157) 28.375 ms 32.059 ms
5 gar23.sffca.ip.att.net (12.122.114.5) 30.068 ms 30.631 ms 31.443 ms
6 * * *
7 ae-1-3515.ear2.chicago2.level3.net (4.69.134.46) 75.164 ms 81.897 ms 74.467 ms
~ $curl "http://mavensalons.com/checkout.php"
<html>
<head>
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
@sean-e-dietrich
sean-e-dietrich / install.sh
Last active June 19, 2017 22:05
Install Docksal and Pantheon Scripts
#!/usr/bin/env bash
FIN=$(which fin)
if [ -z $FIN ]; then
echo "Docksal not installed. Installing now..."
curl -fsSL get.docksal.io | sh
fi
diff --git a/core-new_textarea_typedata-2409059-37-8.0.patch b/core-new_textarea_typedata-2409059-37-8.0.patch
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/lib/Drupal/Core/TypedData/Plugin/DataType/TextAreaData.php b/lib/Drupal/Core/TypedData/Plugin/DataType/TextAreaData.php
new file mode 100644
index 0000000000..b9177c94bd
--- /dev/null
+++ b/lib/Drupal/Core/TypedData/Plugin/DataType/TextAreaData.php
@@ -0,0 +1,28 @@
+<?php
@sean-e-dietrich
sean-e-dietrich / refresh
Created October 24, 2017 16:11
D7 Docksal Refresh
#!/usr/bin/env bash
## Refresh database, files, and import configuration
##
## Usage: fin d7-refresh
# Abort if anything fails
set -e
while getopts 'a:s:e:' flag; do
@sean-e-dietrich
sean-e-dietrich / README.md
Created October 25, 2017 16:13
Getting File Proxy to Work with Docksal

File Proxy with Docksal