Skip to content

Instantly share code, notes, and snippets.

View alberto56's full-sized avatar

Albert Albala alberto56

View GitHub Profile
@alberto56
alberto56 / script.sh
Created April 28, 2015 14:10
Simple script starter
#!/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
<!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 / gist:e90e8a30dc73c4df8395
Last active August 29, 2015 14:24
Use existing Drupal database
#!/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
@alberto56
alberto56 / set-up-letsencrypt-acquia-stage.sh
Last active August 20, 2021 15:46
Scripts semi-automating settings up LetsEncrypt for Acquia Stage environments (see http://blog.dcycle.com/blog/2018-10-05/https-acquia-stage/)
#!/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 / field_group-8.x-1.x-2787179-26.diff
Created November 5, 2018 22:05
Drupal patch 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