Skip to content

Instantly share code, notes, and snippets.

View SyzBeats's full-sized avatar
🏠
Working from home

Simeon Zimmermann SyzBeats

🏠
Working from home
View GitHub Profile
@SyzBeats
SyzBeats / upalod-download.js
Last active August 29, 2021 21:39
Google cloud storage gist
/**
* @file this script provides functions
* that upload and then download a file
* via google cloud storage - a .env file with a key is required for this to work!
*
* @version 0.1
*/
require('dotenv').config();
const path = require("path");
@SyzBeats
SyzBeats / webdev_online_resources.md
Created February 19, 2020 14:48 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@SyzBeats
SyzBeats / make_bare_repo.sh
Last active January 9, 2020 23:12
Git(hub)
git config --bool core.bare true
@SyzBeats
SyzBeats / add_sku_woo_search.php
Last active February 1, 2022 22:20
Wordpress & Woocommerce Collection
<?php
/** ___ ADD THIS TO functions.php ____
* ENHANCE THE STANDARD SEARCH
* Join posts and postmeta tables
* and include SKU in standard Search
* http://codex.wordpress.org/Plugin_API/Filter_Reference/posts_join
*/
function sku_search_join( $join ) {
global $wpdb;
@SyzBeats
SyzBeats / node_nginx_ssl.md
Created September 26, 2019 11:32 — 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