Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Tsegaselassie Tadesse tsega

🏠
Working from home
View GitHub Profile
@tsega
tsega / rector.yml
Created May 23, 2020
Sample Drupal Rector configuration file
View rector.yml
imports:
- { resource: "vendor/palantirnet/drupal-rector/config/drupal-8/drupal-8-all-deprecations.yml" }
# includes:
# - { resource: "vendor/palantirnet/drupal-rector/config/drupal-8/drupal-8.0-deprecations.yml" }
# - { resource: "vendor/palantirnet/drupal-rector/config/drupal-8/drupal-8.4-deprecations.yml" }
# - { resource: "vendor/palantirnet/drupal-rector/config/drupal-8/drupal-8.5-deprecations.yml" }
# - { resource: "vendor/palantirnet/drupal-rector/config/drupal-8/drupal-8.6-deprecations.yml" }
# - { resource: "vendor/palantirnet/drupal-rector/config/drupal-8/drupal-8.7-deprecations.yml" }
parameters:
@tsega
tsega / d9_porting_weekend_setup.md
Last active Jun 7, 2020
How to contribute to Drupal 9 Porting Weekend
View d9_porting_weekend_setup.md

How to prepare for Drupal 9 Porting Weekend

If you haven't heard about it, there is an important event scheduled for May 22 & 23, 2020 to do mass porting of Drupal 8 modules and themes to Drupal 9.

The following a set of instructions will show you how to contribute to that effort.

For a more detailed detailed account please see Kristen Pol's blog post, Preparing yourself for Drupal 9 porting weekend.

1. Install Drupal 8 + Helper Modules

  1. First thing to do, of course, is to install Drupal 8 - the recommended way is to use composer. For alternative setups, see @mradcliffe comment below.
@tsega
tsega / Ahad Hotel Booking API setting.json
Last active Jan 3, 2020
The restaculous settings.json file for Ahad Platform Hotel Booking API
View Ahad Hotel Booking API setting.json
{
"name": "Ahad Hotel Booking API",
"description": "Ahad Platform Hotel Booking API.",
"author": "Tsegaselassie Tadesse <tsegaselassi@gmail.com>",
"directory": "../ahad-hotel-booking-api",
"repository": {
"type": "git",
"url": "https://github.com/tsega/ahad-hotel-booking-api.git"
},
"authentication": true,
View settings.json
{
"name": "Movies",
"description": "A REST API endpoint for a Movie streaming app.",
"author": "Tsegaselassie Tadesse <tsegaselassi@gmail.com>",
"directory": "./movies-api-tmp",
"repository": {
"type": "git",
"url": "http://git.gebeya.com/tsega/movie-api.git"
},
"config": [
View temp.txt
Upgrade Status report
--------------------------------------------------------------------------------
Custom modules and themes
--------------------------------------------------------------------------------
RSVP List 1
--------------------------------------------------------------------------------
Scanned on Sat, 08/17/2019 - 09:12.
--------------------------------------------------------------------------------
2 errors found. Items categorized "Fix now" are uses of deprecated APIs in
View temp.md

Upgrade Status report

Custom modules and themes

RSVP List 1

Scanned on Sat, 08/17/2019 - 09:12.


2 errors found. Items categorized "Fix now" are uses of deprecated APIs in

@tsega
tsega / Working-with-GitHub-Wiki.md
Last active May 7, 2019
Working with GitHub Wiki
View Working-with-GitHub-Wiki.md

Cloning the Wiki

You can clone you GitHub Wiki as git repository, simply use:

git clone git@github.com:YOUR_GITHUB_USERNAME/YOUR_PROJECT_NAME.wiki.git

Notice the .wiki before the git extension at the end.

Structure

You can structure your Wiki files into any directory of your choice. However, a few things to remember:

  • The file names need to be unique
@tsega
tsega / instructions.md
Created Jun 25, 2018 — forked from sveggiani/instructions.md
Configure XDebug, Visual Studio Code for a Vagrant VM
View instructions.md

Configure XDebug, Visual Studio Code for a Vagrant VM

1. Assumptions

  • Project (Drupal) is served on /var/www/html in the Vagrant box
  • Local project files location: c:\Users\username\Work\projects\my-project\repo\html
  • Guest machine IP is 10.0.2.2 (if this doesn't work, run route -nee in the VM and look for the gateway address)

2. Configuration

@tsega
tsega / settings.local.php
Created May 12, 2018
Lando Local Settings File Drupal 8
View settings.local.php
<?php
// @codingStandardsIgnoreFile
/**
* @file
* Drupal site-specific configuration file.
*
* IMPORTANT NOTE:
* This file may have been set to read-only by the Drupal installation program.
View aliases.drushrc.php
<?php
// To be placed at ~/.drush folder
// drush sql-sync @PROJECT.dev @PROJECT.local
// drush rsync @PROJECT.dev:%files/ @PROJECT.local:%files
// local alias
$local_sites = '/var/www/html/';
// development alias
$dev_sites = '/var/www/html/';
You can’t perform that action at this time.