Skip to content

Instantly share code, notes, and snippets.

View killua99's full-sized avatar
🎯
Focusing

Luigi killua99

🎯
Focusing
View GitHub Profile
@killua99
killua99 / .lando.yml
Created December 6, 2019 19:55
lando php lemp
name: ex-backend
recipe: lemp
config:
webroot: public
php: 7.3
database: postgres:11
xdebug: true
config:
php: config/lando/xdebug.ini
@killua99
killua99 / class-clientbuilder.php
Created February 9, 2018 09:20
Phprp/soap-client ClientBuilder
<?php
/**
* Client Build SoapClient.
*
* @package WooCommerceSageX3
*/
namespace WooCommerceSageX3\Resources;
use Http\Adapter\Guzzle6\Client as GuzzleClient;
@killua99
killua99 / make_package.log
Created September 24, 2017 12:18
KeePassXC build on mac 79a582a19f1db
[ 1%] Automatic MOC and UIC for target autotype
[ 2%] Automatic MOC and UIC for target qhttp
[ 10%] Built target translations
[ 11%] Automatic MOC and UIC for target zxcvbn
[ 11%] Automatic MOC and UIC for target cli
[ 12%] Automatic MOC and UIC for target testsupport
[ 12%] Built target autotype_autogen
[ 12%] Built target qhttp_autogen
[ 12%] Built target zxcvbn_autogen
[ 12%] Built target cli_autogen
$ drupal list
TypeError: Argument 3 passed to Drupal\Console\Command\Config\DeleteCommand::__construct() must be an instance of Drupal\Core\Config\FileStorage, instance of Drupal\config_split\Config\StorageWrapper given in /www/conventus/docroot/vendor/drupal/console/src/Command/Config/DeleteCommand.php on line 48 #0 [internal function]: Drupal\Console\Command\Config\DeleteCommand->__construct(Object(Drupal\Core\Config\ConfigFactory), Object(Drupal\Core\Config\CachedStorage), Object(Drupal\config_split\Config\StorageWrapper))
#1 phar:///usr/local/bin/drupal/vendor/symfony/dependency-injection/ContainerBuilder.php(928): ReflectionClass->newInstanceArgs(Array)
#2 phar:///usr/local/bin/drupal/vendor/symfony/dependency-injection/ContainerBuilder.php(468): Symfony\Component\DependencyInjection\ContainerBuilder->createService(Object(Symfony\Component\DependencyInjection\Definition), 'console.config_...')
#3 /www/conventus/docroot/vendor/drupal/console/src/Application.php(179): Symfony\Component\DependencyInjection\
@killua99
killua99 / MySyncResource.php
Created December 19, 2016 11:34
Rest Resource Plugin
<?php
namespace Drupal\ssync_client\Plugin\rest\resource;
use Drupal\file\Entity\File;
use Drupal\rest\Plugin\ResourceBase;
use Drupal\rest\ResourceResponse;
/**
* Manipulate the image creation.
echo '' >> $HOME/.bashrc
echo 'function composer() { COMPOSER="$(which composer)" || { echo "Could not find composer in path" >&2 ; return 1 ; } && sudo phpdismod -s cli xdebug ; $COMPOSER "$@" ; STATUS=$? ; sudo phpenmod -s cli xdebug ; return $STATUS ; }' >> $HOME/.bashrc
echo 'function drush() { DRUSH="$(which drush)" || { echo "Could not find drush in path" >&2 ; return 1 ; } && sudo phpdismod -s cli xdebug ; $DRUSH "$@" ; STATUS=$? ; sudo phpenmod -s cli xdebug ; return $STATUS ; }' >> $HOME/.bashrc
echo 'function drupal() { DRUPAL="$(which drupal)" || { echo "Could not find drupal in path" >&2 ; return 1 ; } && sudo phpdismod -s cli xdebug ; $DRUPAL "$@" ; STATUS=$? ; sudo phpenmod -s cli xdebug ; return $STATUS ; }' >> $HOME/.bashrc
echo '' >> $HOME/.bashrc
[09:18 AM]-[vagrant@local]-[/www/project/docroot/web]
$ which drupal
/home/vagrant/.config/composer/vendor/bin/drupal
[09:29 AM]-[vagrant@local]-[/www/project/docroot/web]
$ drupal -vvv
[09:29 AM]-[vagrant@local]-[/www/project/docroot/web]
$
{#
/**
* @file
* Default theme implementation for a page wrapper.
*
* For consistent wrapping to {{ page }} render in all themes.
*
* Available variables:
* - children: Contains the child elements of the page.
*
#!/bin/bash
# Get the system architecture
UNAME=`uname`
ARCH=`uname -m`
export LD_DEBUG=files
export LD_DEBUG_OUTPUT=./ld_debug.txt
# optional flags
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
gladiabots.x86_64: xcb_io.c:274: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Preloaded type GtkListStore
Preloaded type GtkWindow
Preloaded type GtkVBox
Preloaded type GtkImage
Preloaded type GtkNotebook
Preloaded type GtkHBox