Skip to content

Instantly share code, notes, and snippets.

@JadiaelFC
JadiaelFC / externalCodeSetup.json
Last active March 18, 2024 14:53
externalCodeSetup object from the basic buddyboss app template
{
"externalCodeSetup": {
"shakeManagerApi": {
"menuItems": []
},
"pushNotificationApi": {
"awsEnabled": false
},
"sqliteApi": {
"enabled": true
@JadiaelFC
JadiaelFC / upload-a-file.MD
Created November 28, 2022 19:02 — forked from ahmadawais/upload-a-file.MD
Upload a file using the WordPress REST API

Upload files

Using the REST API to upload a file to WordPress is quite simple. All you need is to send the file in a POST-Request to the wp/v2/media route.

There are two ways of sending a file. The first method simply sends the file in the body of the request. The following PHP script shows the basic principle:

@JadiaelFC
JadiaelFC / sc.bat
Created September 16, 2022 19:18
show full windows 11 context menu
reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve