Skip to content

Instantly share code, notes, and snippets.

Avatar

Vijaya Chandran Mani vijaycs85

View GitHub Profile
View drupal-check.sh
➜ drupal8 git:(8.8.x) ✗ drupal-check -vvv modules/contrib/cloudflare
Current working directory: /www/drupal8
Using Drupal root: /www/drupal8
Using vendor root: /www/drupal8/vendor
Using autoloader: /www/drupal8/vendor/autoload.php
/www/drupal8/modules/contrib/cloudflare/tests/modules/cloudflare_form_tester/src/Mocks/ComposerDependenciesCheckMock.php
/www/drupal8/modules/contrib/cloudflare/tests/modules/cloudflare_form_tester/src/Mocks/ZoneMock.php
/www/drupal8/modules/contrib/cloudflare/tests/modules/cloudflare_form_tester/src/CloudflareFormTesterServiceProvider.php
/www/drupal8/modules/contrib/cloudflare/tests/src/Unit/StateTest.php
/www/drupal8/modules/contrib/cloudflare/tests/src/Unit/ClientIpRestoreTest.php
View gist:7dc4b5cde5bd9e7bedc15c62310dad4c
https://slides.com/vijaycs85/basic-web-development?token=EflSOVT1
View composer-patch-user-agent.md

Code

$options['http']['header'][] = sprintf(
                'User-Agent: Composer/%s (%s; %s; %s%s)',
                Composer::getVersion(),
                function_exists('php_uname') ? php_uname('s') : 'Unknown',
                function_exists('php_uname') ? php_uname('r') : 'Unknown',
                $phpVersion,
                getenv('CI') ? '; CI' : ''
            );
View 1. policy.data_type.schema.yml
# Basic data types for policy.
policy_plugin:
type: mapping
mapping:
plugin_id:
type: string
plugin_name:
type: label
@vijaycs85
vijaycs85 / 1.dynamic-links-action.md
Last active Jun 24, 2020
Drupal 8 snippets for different functionality
View 1.dynamic-links-action.md
View BrowserTestBase.uml
<?xml version="1.0" encoding="UTF-8"?>
<Diagram>
<ID>PHP</ID>
<OriginalElement>\Drupal\Tests\BrowserTestBase</OriginalElement>
<nodes>
<node x="0.0" y="696.0">\Drupal\Tests\hal\Functional\EntityResource\Comment\CommentHalJsonTestBase</node>
<node x="10585.0" y="696.0">\Drupal\Tests\views\Functional\Wizard\WizardTestBase</node>
<node x="13984.0" y="696.0">\Drupal\Tests\system\Functional\Database\DatabaseTestBase</node>
<node x="238.0" y="770.0">/www/htdocs/drupal8/core/modules/media/tests/src/FunctionalJavascript</node>
<node x="638.0" y="696.0">\Drupal\Tests\rest\Functional\EntityResource\ResponsiveImageStyle\ResponsiveImageStyleResourceTestBase</node>
@vijaycs85
vijaycs85 / gist:9a3d3917af1fa8536581bfcbfbf02c70
Created Sep 22, 2017 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:9a3d3917af1fa8536581bfcbfbf02c70

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
View composer.json
{
"name": "mycompany/myproject",
"description": "My project description",
"type": "project",
"license": "GPL-2.0+",
"authors": [
{
"name": "",
"role": ""
}
View keybase.md

Keybase proof

I hereby claim:

  • I am vijaycs85 on github.
  • I am vijaycs85 (https://keybase.io/vijaycs85) on keybase.
  • I have a public key ASAiMcpQFdsDgDBg_a9SknC5H_HrK5DM543XXZz-Av-pDwo

To claim this, I am signing this object:

View fieldItemBase.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.