Skip to content

Instantly share code, notes, and snippets.

View yousefdergham's full-sized avatar
🎯
Focusing

Yousef Dergham yousefdergham

🎯
Focusing
View GitHub Profile
@gabrielmerovingi
gabrielmerovingi / mycred-log-to-bp-notification
Last active November 24, 2023 02:59
This is an example how you can add BuddyPress notifications for users when they gain / lose myCRED points.
/**
* Register Custom BP Notifications
* Inform BuddyPress about our custom myCRED related notifications.
* @since 1.0
* @version 1.0
*/
function mycredpro_register_custom_bp_notifications() {
buddypress()->mycred_notifications = new stdClass;
buddypress()->mycred_notifications->notification_callback = 'mycredpro_render_bp_notification';
@bradtraversy
bradtraversy / mern-server-setup.md
Last active July 10, 2024 11:13
Setup Ubuntu & Deploy MERN app

Linux Server Setup & MERN App Deployment

These are the steps to setup an Ubuntu server from scratch and deploy a MERN app with the PM2 process manager and Nginx. We are using Linode, but you could just as well use a different cloud provider or your own machine or VM.

Create an account at Linode

Click on Create Linode

Choose your server options (OS, region, etc)

SSH Keys