Skip to content

Instantly share code, notes, and snippets.

View snufkin's full-sized avatar

Balazs Dianiska snufkin

View GitHub Profile
0xD392963Cf6C464f9D32854017D51220748095834
<?php
/**
* @file
* Contains \Drupal\select_or_other\Plugin\Field\FieldWidget\ListWidget.
*/
namespace Drupal\select_or_other\Plugin\Field\FieldWidget;
use Drupal\Core\Entity\FieldableEntityInterface;
use Drupal\Core\Field\FieldItemListInterface;
@snufkin
snufkin / .htaccess
Created February 2, 2016 22:28
Patching D8 htaccess to accept connections to the simplesamlphp library.
diff --git a/.htaccess b/.htaccess
index 974999a..b24f3e0 100644
--- a/.htaccess
+++ b/.htaccess
@@ -150,6 +150,10 @@ AddEncoding gzip svgz
# Copy and adapt this rule to directly execute PHP files in contributed or
# custom modules or to run another PHP application in the same directory.
RewriteCond %{REQUEST_URI} !/core/modules/statistics/statistics.php$
+
+ # Allow access to simplesaml paths
@snufkin
snufkin / commit-msg
Created June 25, 2015 12:16
Prepend JIRA ticket ID from branch name and validate if it is missing
#!/bin/sh
#
# To enable this hook, developers should place it in .git/hooks/.
#
# You may adapt the message length check. Currently checking it's longer than 15 characters.
# First try to populate the ticket prefix based on the active branch
# The current branch worked on
branch=`git symbolic-ref --short HEAD`

Keybase proof

I hereby claim:

  • I am snufkin on github.
  • I am snufkin (https://keybase.io/snufkin) on keybase.
  • I have a public key whose fingerprint is 19F8 D1FE F77C B7BC 10C8 E076 54DF BD75 DC02 954F

To claim this, I am signing this object: