Skip to content

Instantly share code, notes, and snippets.

View georgepence's full-sized avatar

George (Mac) Pence georgepence

View GitHub Profile
@georgepence
georgepence / random_number
Created May 29, 2023 09:22 — forked from 5c0tt/random_number
Generate random numbers in Mac OS X using /dev/random or /dev/urandom using a shell script
# Make sure to `chmod u+x random_number` in order to make this file go
#!/bin/bash
# Generate random strings on Mac OS X
# the `tr` uses a regex to decide which characters you want to include
# This is very slow as a bash script, random seems faster than urandom
# though I have been told that one just symblinks the other so that would
# then not be possible to be faster.
# Here is some sample output from the below:
@georgepence
georgepence / node_nginx_ssl.md
Created April 14, 2022 18:58 — 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

@georgepence
georgepence / .bash_profile
Created June 25, 2021 11:45 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management