Standard Search form
SASS watch without gulp
sass --watch _modernization.scss ../css/modernization-page.css
Fix sql dump, Unknown collation: utf8mb4_0900_ai_ci
sed -i '' 's/utf8mb4_0900_ai_ci/utf8_general_ci/g' backup.sql sed -i '' 's/CHARSET=utf8mb4/CHARSET=utf8/g' backup.sql
https://tecadmin.net/resolved-unknown-collation-utf8mb4_0900_ai_ci/
or this worked https://meetanshi.com/blog/error-1273-unknown-collation-utf8mb4-0900-ai…
just open the file and do %s/utf8mb4_0900_ai_ci/utf8mb4_unicode_ci/g
Connect Acquia pipelines to a github account repository
* Install pipelines cli
* configure pipelines https://docs.acquia.com/pipelines/cli/install/
* connect to the github account https://docs.acquia.com/pipelines/cli/github/connect/
Freeze screen in chrome debugger to CSS hover states, etc
https://stackoverflow.com/questions/17931571/freeze-screen-in-chrome-de…
Get the hover state in play on the screen while debugger tools are open, then on a mac hit fn f8.
Working mutation observer
function waitForElm(selector) { return new Promise(resolve => { if (document.querySelector(selector)) { return resolve(document.querySelector(selector)); } const observer = new MutationObserver(mutations => { if (document.querySelector(selector)) { resolve(document.querySelector(selector)); observer.disconnect(); } }); observer.observe(document.body, { childList: true, subtree: true }); }); } waitForElm('.ief-entity-submit').then((elm) => { console.log('Element is ready'); console.log(elm.textContent); });
Using personal access tokens with github
The format is the following:
git remote set-url origin https://USERID:PERSONAL_ACCESS_TOKEN@github.cms.gov/CMCS/MedicaidDrupal.git
Personal access token you generate from github under settings->developer settings->Personal access tokens
your .git/config should have a section that looks like this:
Delete all content of a given content type
lando drush genc 0 --kill --bundles=survey_2021
or, this actually worked for me:
drush entity-delete node --bundle=survey_2021
git get the history of a line of code
git get the history of a line of code, in this case line 1427 of wr_investor.module
git log -L1427,+1:'wr_investor.module'