Skip to content

Instantly share code, notes, and snippets.

View tsega's full-sized avatar
🏰
Working from home

Tsegaselassie Tadesse tsega

🏰
Working from home
View GitHub Profile
@tsega
tsega / restaculous.md
Last active June 11, 2021 12:17
Restaculous

What?

A Node.js + Express REST API generator, that produces a highly structured application with the following features:

  • Fully tested API endpoints with CRUD operations
  • Express-Validator Integration
  • Automatically generate API documentation
  • Linting of source to ensure proper code formatting
  • Authentication
  • .env Integration
@tsega
tsega / rector.yml
Created May 23, 2020 05:55
Sample Drupal Rector configuration file
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 June 7, 2020 13:05
How to contribute to Drupal 9 Porting Weekend

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 January 3, 2020 07:04
The restaculous settings.json file for Ahad Platform Hotel Booking API
{
"name": "Ahad Hotel Booking API",
"description": "Ahad Platform Hotel Booking API.",
"author": "Tsegaselassie Tadesse <[email protected]>",
"directory": "../ahad-hotel-booking-api",
"repository": {
"type": "git",
"url": "https://github.com/tsega/ahad-hotel-booking-api.git"
},
"authentication": true,
@tsega
tsega / settings.json
Created December 27, 2019 11:54
Rest-a-culous - https://github.com/tsega/restaculous, sample settings file
{
"name": "Movies",
"description": "A REST API endpoint for a Movie streaming app.",
"author": "Tsegaselassie Tadesse <[email protected]>",
"directory": "./movies-api-tmp",
"repository": {
"type": "git",
"url": "http://git.gebeya.com/tsega/movie-api.git"
},
"config": [
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 / temp.md
Created August 17, 2019 13:52
Temp

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 March 21, 2024 15:21
Working with GitHub Wiki

Cloning the Wiki

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

git clone [email protected]: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 June 25, 2018 13:15 — forked from sveggiani/instructions.md
Configure XDebug, Visual Studio Code for a Vagrant VM

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 05:10
Lando Local Settings File Drupal 8
<?php
// @codingStandardsIgnoreFile
/**
* @file
* Drupal site-specific configuration file.
*
* IMPORTANT NOTE:
* This file may have been set to read-only by the Drupal installation program.