Skip to content

Instantly share code, notes, and snippets.

g3r4

Block or report user

Report or block g3r4

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@g3r4
g3r4 / docker-ce-elementary-juno.sh
Created Nov 11, 2019
Install Docker-ce on Elementary OS Juno
View docker-ce-elementary-juno.sh
#!/bin/bash
set -e
##########################################################
# Install script for Docker-CE on ElementaryOS Juno
# Had to update the repository to point to bionic instead
# of using 'lsb_release -cs' because there's no juno
# repository at download.docker.com.
##########################################################
@g3r4
g3r4 / hero_image.patch
Created Feb 8, 2018
Hero image patch for Open Social
View hero_image.patch
diff --git a/modules/social_features/social_core/social_core.module b/modules/social_features/social_core/social_core.module
index 8e35646..e523b32 100644
--- a/modules/social_features/social_core/social_core.module
+++ b/modules/social_features/social_core/social_core.module
@@ -94,11 +94,28 @@ function template_preprocess_page_hero_data(array &$variables) {
if (!empty($node->{$image_field}->entity)) {
$variables['hero_styled_image_url'] = ImageStyle::load('social_xx_large')
->buildUrl($node->{$image_field}->entity->getFileUri());
+ } else { // If machine name too long or using another image field
+ $node_fields = $node->getFields();
@g3r4
g3r4 / DrupalCon2018SessionProposal.md
Last active Jan 18, 2018
Session proposal for DrupalCon 2018
View DrupalCon2018SessionProposal.md

Identifying module contribution oportunities for Drupal 8 while leveraging the PHP community with a practical example

Please give us a detailed overview of your session and why attendees will be excited to hear about it.  

In this session, I will share my experience with attendees about a very common situation most of us encounter while performing our daily tasks on our jobs: Adding custom functionality for a Drupal 8 project.

I was recently in this predicament, where you can just add the specific functionality for your client, or go the contribution path: Making the use case more universal, so other people can benefit from the code that you are about to write.

The requirement was the following: One of our clients wanted to allow his users to create support tickets using the JIRA platform using a form seamlessly integrated within the website.

View how-to-setup.md

Contribution setup instructions

Fork DrupalConsole

Fork your own copy of the DrupalConsole repository to your account

Clone

Get a copy of your recently cloned version of console in your machine.

$ git clone git@github.com:[your-git-user-here]/drupal-console.git
You can’t perform that action at this time.