Skip to content

Instantly share code, notes, and snippets.

View coachben's full-sized avatar

Benard Ochang - @Coachben coachben

View GitHub Profile
@coachben
coachben / node_nginx_ssl.md
Created December 26, 2019 14:40 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@coachben
coachben / deployment_guide.md
Created December 29, 2019 22:01 — forked from vicgonvt/deployment_guide.md
Deployment Guide for Ubuntu Server from Scratch with Laravel
@coachben
coachben / custom_csv_import.php
Created November 13, 2023 01:32 — forked from jbscarbrough/custom_csv_import.php
Primer for importing WordPress content that includes ACF fields, using Really Simple CSV Importer plugin.
<?php
// Import function
function custom_csv_import($meta, $post, $is_update) {
// Create containers
$meta_array = array();
$repeater_array = array();
/* It may help to list out the ACF fields you are populating
Table Heading ACF Key Repeater Fields