Skip to content

Instantly share code, notes, and snippets.

Avatar

Albert Albala alberto56

View GitHub Profile
@alberto56
alberto56 / field_group-8.x-1.x-2787179-26.diff
Created Nov 5, 2018
Drupal patch field_group-8.x-1.x-2787179-26.diff
View field_group-8.x-1.x-2787179-26.diff
diff --git a/field_group.libraries.yml b/field_group.libraries.yml
index e09631b..2b9a811 100644
--- a/field_group.libraries.yml
+++ b/field_group.libraries.yml
@@ -11,6 +11,30 @@ field_ui:
- core/drupal
- core/drupalSettings
+details_validation:
+ header: false
@alberto56
alberto56 / set-up-letsencrypt-acquia-stage.sh
Last active Aug 20, 2021
Scripts semi-automating settings up LetsEncrypt for Acquia Stage environments (see http://blog.dcycle.com/blog/2018-10-05/https-acquia-stage/)
View set-up-letsencrypt-acquia-stage.sh
#!/bin/bash
#
# Script semi-automating the process of adding LetsEncrypt certificates to
# serve Acquia staging sites in HTTPS.
# See http://blog.dcycle.com/blog/2018-10-05/https-acquia-stage/
#
set -e
BASE="$PWD"
@alberto56
alberto56 / gist:e90e8a30dc73c4df8395
Last active Aug 29, 2015
Use existing Drupal database
View gist:e90e8a30dc73c4df8395
#!/bin/bash
if [ "$#" -ne "3" ]
then
echo "Please supply exactly three arguments:"
echo ""
echo " (1) the database username"
echo " (2) the database password, or NOPWD if none"
echo " (3) the database name"
else
if [ "$2" == "NOPWD" ]; then
View gist:530d846ce9deb97c5af8
<!DOCTYPE html>
<html>
<body>
<canvas id="myCanvas" width="400" height="400" style="border:1px solid #d3d3d3;"></canvas>
<script>
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
@alberto56
alberto56 / script.sh
Created Apr 28, 2015
Simple script starter
View script.sh
#!/bin/bash
if [ "$#" -eq "0" ]
then
echo "Fetches a branch for a given repo, and then adds a link to it on the index"
echo "of the given repo."
echo ""
echo "Usage:"
echo ""
echo "./fetch-branch.sh -d=/path/to/repo --r=ssh://me@git.example.com/project --b=master"
else