Skip to content

Instantly share code, notes, and snippets.

View mharmuth's full-sized avatar

Matthias Harmuth mharmuth

View GitHub Profile
@mharmuth
mharmuth / error.log
Last active October 4, 2017 09:11
pip install error
$ curl -sS https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python get-pip.py
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
Collecting setuptools
Downloading setuptools-36.5.0-py2.py3-none-any.whl (478kB)
Collecting wheel
Downloading wheel-0.30.0-py2.py3-none-any.whl (49kB)
Installing collected packages: pip, setuptools, wheel
Successfully installed pip-9.0.1 setuptools-36.5.0 wheel-0.30.0
$ pip install fabric
@mharmuth
mharmuth / CreateUserHandler.php
Last active January 21, 2021 17:12
Custom Webform Handler for Drupal 8 Webform module
<?php
namespace Drupal\your_custom_module\Plugin\WebformHandler;
use Drupal\user\Entity\User;
/**
* Create a new user entity from a webform submission.
*
* @WebformHandler(
@mharmuth
mharmuth / migrate_plus.migration.artikel_einstieg.yml
Last active March 13, 2017 16:40
Migration from another CMS to Drupal 8
id: artikel_einstieg
status: true
label: Artikel Einstieg
migration_group: phlexible
migration_tags:
- artikel
source:
plugin: url
data_fetcher_plugin: http
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
<?php // src/Application/UserBundle/Controller/SecurityController.php
namespace Application\UserBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller,
Symfony\Component\Security\SecurityContext;
class SecurityController extends Controller
{
public function loginAction()