Skip to content

Instantly share code, notes, and snippets.

@chrismccoy
chrismccoy / gutenberg.txt
Last active May 20, 2022
Gutenberg Resources
View gutenberg.txt
How to create a scrollable image gallery block
https://gutenberghub.com/create-scrollable-image-gallery-block/
Turning Off Reusable Blocks
https://tomjn.com/2021/04/05/turning-off-reusable-blocks/
Turning Off The Block Directory
https://tomjn.com/2021/03/31/turning-off-the-block-directory/
How to Disable the WordPress Block Directory
@chrismccoy
chrismccoy / restapi.txt
Last active Apr 7, 2022
WordPress REST API Resources
View restapi.txt
Add featured image & alt text to WP REST API
https://allisontarr.com/2021/10/13/add-featured-image-alt-text-to-wp-rest-api/
Allow ALL cross origin requests to WordPress REST API
https://github.com/Shelob9/rest-all-cors
WordPress theme using Rest API and Vue.js
https://github.com/rtCamp/VueTheme
WordPress Post from Front End using REST API and Vue.js
View gitcheats.txt
# get list of all author's emails of the repo
git log --format="%ae" | uniq
# shortform git commands
alias g='git'
# show contents of all git objects in a git repo
find .git/objects/ -type f \| sed 's/\.git\/objects\/\///' | sed 's/\///g' | xargs -n1 -I% echo echo "%" \$\(git cat-file -p "%"\) \0 | xargs -n1 -0 sh -c
# push all branches to all remotes