This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ag "$@" | peco | awk -F ':' '{print $1 ":" $2}' | xargs pstorm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ts := $(shell /bin/date "+%Y%m%d%H%M%S") | |
root_domain := example.com | |
archive_file := ${root_domain}-archive-$(ts) | |
all: clean generate | |
clean: | |
rm -rf *o archive; | |
rm -rf *o ${root_domain}-archive*.tar.gz; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen [::]:8080; | |
listen 8080; | |
server_name unifi.shomeyabuild.space; | |
access_log /var/log/nginx/unifi-access.log; | |
error_log /var/log/nginx/unifi-error.log; | |
location / { | |
gzip on; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen [::]:6789; | |
listen 6789; | |
server_name unifi.shomeyabuild.space; | |
access_log /var/log/nginx/unifi-access.log; | |
error_log /var/log/nginx/unifi-error.log; | |
location / { | |
gzip on; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class WaitingQueueSignalHandler { | |
/** | |
* Flag indicating that a restart is necessary. | |
* | |
* @var bool | |
*/ | |
protected $rebootRequired = FALSE; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$map = \Drupal::entityManager()->getFieldMap(); | |
dsm($map); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$queue = DrupalQueue::get('versioncontrol_reposync'); | |
while ($item = $queue->claimItem()) { | |
try { | |
versioncontrol_reposync_run_worker($item->data); | |
$queue->deleteItem($item); | |
} | |
catch (Exception $e) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Install, update and uninstall functions for mymodule. | |
*/ | |
/** | |
* Update the schema for my entity. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <http://example.com:8888>, URI of the drupal site to use (only needed in multisite environments or when running on an alternate port). | |
--uri=<http://example.com:8888> |