Skip to content

Instantly share code, notes, and snippets.

View zuhairkareem's full-sized avatar
🏠
Working from home

zuhairkareem

🏠
Working from home
View GitHub Profile
@zuhairkareem
zuhairkareem / node_publishable.md
Created December 15, 2020 08:35
Make node publishable in certain language in Drupal 8

Goto admin/config/regional/content-language and add "Publication Status" as translatable field

@zuhairkareem
zuhairkareem / connect-hd.md
Created November 8, 2020 22:04
Connect Seinheisser 4.5BTNC to Windows 10
@zuhairkareem
zuhairkareem / http_seq_ang8.md
Last active March 3, 2020 07:38
Sequential HTTP calls using RxJS in Angular 8

Make sequential HTTP requests using RxJS in Angular 8

http1$, http2$, http3$, http4$ are API requests made using angular HTTP client library

this.apiService
      .http1$
      .pipe(
        concatMap((http1Result: any) => {
 // I have status property returned in response if there is any error,
@zuhairkareem
zuhairkareem / angular_tips.md
Last active August 4, 2020 10:40
Angular Tips

To analyze the bundle

npm install -g webpack-bundle-analyzer
ng build --stats-json
webpack-bundle-analyzer path/to/your/stats.json

Generate component in a path

@zuhairkareem
zuhairkareem / rsa_angular.md
Last active June 11, 2021 09:30
Angular RSA

To fix "export 'ɵɵinject' was not found in '@angular/core' warnings after compilation

Change in package.json

"@agm/core": "^1.0.0-beta.5",

to

"@agm/core": "1.0.0",
@zuhairkareem
zuhairkareem / vscode_wsl.md
Last active November 24, 2019 14:05
VS Code in WSL debugging
@zuhairkareem
zuhairkareem / win10_wsl_fixes.md
Last active December 15, 2019 12:19
Windows 10 - WSL Ubuntu fixes

Drush issue - ../vendor/bin/drush: Syntax error: end of file unexpected (expecting "then")

Checkout the changes if any in the repo. The issue is due to EOF between Ubuntu & Windows. We can use the below command to change the EOL

dos2unix vendor/bin/drush

To solve below error

@zuhairkareem
zuhairkareem / img_style_issue.md
Last active September 8, 2019 12:39
Image styles not created - Server
@zuhairkareem
zuhairkareem / business_rules_d8.md
Created June 20, 2019 06:45
D8 Business Rules
IMPORTANT NOTE FOR BUSINESS RULES "VARIABLES"
For users using Drupal 8.7.x version, the Dev version released on 27-Mar-2019 & the beta version 8.x-1.0-beta7 won't work well when using variables inside your actions.
Please do apply the patch #24 in this issue #3016888: Variables are broken and returning NULL values for Drupal 8.7.x Assigned to: yuriseki until the next beta release.