Posts

Create a branch in bitbucket cloud using curl

 Example: curl -X POST \ -H "Authorization: Bearer <access_token>" \ -H "Content-Type: application/json" \ -d '{       "name": "feature/mynewbranch",       "target": {           "hash": "master"       }     }' \ "https://api.bitbucket.org/2.0/repositories/gopiworkspace/gopirepo/refs/branches" <access_token> is generated in the repository where you want to create the branch. https://bitbucket.org/gopiworkspace/gopirepo/admin/access-tokens  Ref: https://community.atlassian.com/t5/Bitbucket-discussions/Create-branch-BitBucket-REST-API-Support/td-p/610927 

Debugging

 devel_kint_extras disable minifyhtml module to take any kind of devel modules take effect.

ClamAV in MAC

Install ClamAV in MAC  > b rew install clamav  >  cp /usr/local/etc/clamav/clamd.conf.sample usr/local/etc/clamav/clamd.conf Uncomment  below TCPSocket 3310 TCPAddr localhost > cp /usr/local/etc/clamav/clamd.conf.sample/ freshclam.conf.sample  /usr/local/etc/clamav/ freshclam.conf .conf Comment below Example > brew services restart clamav   Starting and Verifying ClamAV Start clamd : Start the ClamAV daemon manually to ensure it’s running: sudo clamd Check Status : Verify that clamd is running and listening on the correct port: sudo lsof -i -P -n | grep clamd Start freshclam : Start the FreshClam updater to update the virus definitions: sudo freshclam

Semmai

  சீரக நீரில் சித்தரத்தை: ஒரு பானை நீரினை நன்றாகக் கொத்திக்க விட்டு, சிறு தேக்கரண்டி அளவு சீரகம், எட்டு மிளகுகள், சிறிதளவு சித்தரத்தை ஆகியவற்றைப் போட்டு மூடிவிட வேண்டும். இரவு இவ்வாறு செய்துவிடுங்கள். மறுநாள் காலை முதல் இந்நீரைக் குடிநீராகப் பருகலாம். ஆறிப்போனாலும் சூடேற்றத் தேவையில்லை. சீரகம், மிளகு, சித்தரத்தை ஆகியவற்றை குறிப்பிட்டுள்ள அளவில் மட்டும் பயன்படுத்துங்கள். அளவு மிக வேண்டாம். சித்தரத்தை என்பது கிழங்குவகையைச் சேர்ந்த சிறந்த மூலிகை. நாட்டு மருந்துக் கடைகளில் கிடைக்கும். பூண்டு பாகு நாட்டு சர்க்கரை ஒரு டம்பளர் + பூண்டு நாலு பள்ளு தோலுடன் நசுக்கி

Error with duplicated entry in webform issue in Drupal

Issue:   Drupal\Core\Database\IntegrityConstraintViolationException : SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'my_form-2' for key 'PRIMARY': UPDATE "webform" SET "next_serial"=:db_update_placeholder_0 WHERE "webform_id" = :db_condition_placeholder_0; Array ( [:db_update_placeholder_0] => 2 [:db_condition_placeholder_0] => my_form ) in Drupal\mysql\Driver\Database\mysql\ExceptionHandler->handleExecutionException() (line 45 of core/modules/mysql/src/Driver/Database/mysql/ExceptionHandler.php ). Fix: Delete from webform where webform_id='my_form' and next_serial=1

SSO

1.  IDP (Identity provider) Azure AD 2. SP (service provider) Any of your applications like Joomla, Moodle, Drupal 3. Authentication can be done via OAuth, SAML etc.. between IDP and SP. 4. Microsoft Office 365 uses Azure AD to authenticate users. 5.  OpenID Connect is an identity layer built on top of OAuth 2.0, providing authentication capabilities.

Deployment failure in Drupal

 In case, a config import error is coming because the new module is not installed then we can do the following function somemodule_update_10001() {   if (!\Drupal::service('module_handler')->moduleExists('new_module')) {     \Drupal::service('module_installer')->install(['new_module']);   } }