Skip to content

Instantly share code, notes, and snippets.

Michael Prasuhn mikeyp

Block or report user

Report or block mikeyp

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
mikeyp /
Created Oct 4, 2019
keybase verification

Keybase proof

I hereby claim:

  • I am mikeyp on github.
  • I am mikey_p ( on keybase.
  • I have a public key ASAgV94YdqtQYImyx-wLC26un9olZsODy9fs_BIenRbNKgo

To claim this, I am signing this object:

View drush-help.txt
Global options (see `drush topic core-global-options` for the full list):
-d, --debug Display even more information, including internal messages.
-h, --help This help system.
-n, --no Assume 'no' as answer to all prompts.
-r <path>, --root=<path> Drupal root directory to use (default: current directory).
-s, --simulate Simulate all relevant actions (don't actually change the system).
-l <>, URI of the drupal site to use (only needed in multisite environments or when running on an alternate port).
mikeyp / mymodule.install
Created Mar 1, 2017
Update a Drupal 8 entity definition without uninstall/reinstalling the module.
View mymodule.install
* @file
* Install, update and uninstall functions for mymodule.
* Update the schema for my entity.
View cron-queue.php
$queue = DrupalQueue::get('versioncontrol_reposync');
while ($item = $queue->claimItem()) {
try {
catch (Exception $e) {
View check-field-map.php
$map = \Drupal::entityManager()->getFieldMap();
View ProcessWaitingQueueCommand.php
namespace Drupal\waiting_queue\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Shared\ContainerAwareCommandTrait;
use Drupal\Console\Core\Style\DrupalStyle;
use Drupal\Console\Annotations\DrupalCommand;
View pc-test-working.php
class WaitingQueueSignalHandler {
* Flag indicating that a restart is necessary.
* @var bool
protected $rebootRequired = FALSE;
View nginx.conf
server {
listen [::]:6789;
listen 6789;
access_log /var/log/nginx/unifi-access.log;
error_log /var/log/nginx/unifi-error.log;
location / {
gzip on;
View nginx.conf
server {
listen [::]:8080;
listen 8080;
access_log /var/log/nginx/unifi-access.log;
error_log /var/log/nginx/unifi-error.log;
location / {
gzip on;
View makefile
ts := $(shell /bin/date "+%Y%m%d%H%M%S")
root_domain :=
archive_file := ${root_domain}-archive-$(ts)
all: clean generate
rm -rf *o archive;
rm -rf *o ${root_domain}-archive*.tar.gz;
You can’t perform that action at this time.