Skip to content

Instantly share code, notes, and snippets.

View JasonLMoffit's full-sized avatar

Jason Moffit JasonLMoffit

  • Berwick Insurance, An Integrity Company
  • Remote
View GitHub Profile
@JasonLMoffit
JasonLMoffit / merge-pdf-ghostscript.md
Created May 27, 2025 14:43 — forked from brenopolanski/merge-pdf-ghostscript.md
Merge multiple PDFs using Ghostscript

A simple Ghostscript command to merge two PDFs in a single file is shown below:

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combine.pdf -dBATCH 1.pdf 2.pdf

Install Ghostscript:

Type the command sudo apt-get install ghostscript to download and install the ghostscript package and all of the packages it depends on.

@JasonLMoffit
JasonLMoffit / node_nginx_ssl.md
Created January 26, 2021 01:29 — 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

@JasonLMoffit
JasonLMoffit / nodejs-cheatsheet.js
Created December 11, 2019 22:26 — forked from LeCoupa/nodejs-cheatsheet.js
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
const log = console.log;
// ^ declaring & assigning variable to avoid typing out whole object.method
const arr = [2, 2, 2, 2, 2];
// ^ Declaring arr and assigning it to array of numbers
const sumNumbers = numbers => {
// ^ fat arrow function assigned to sumNumbers decalaration
let sum = 0;
// ^ declaring sum and assigning it to 0
numbers.forEach(number => (sum += number));
// ^ for each item in the array of numbers add number to sum
1) What do you already know about your communication style and skills?
2) What did you learn while reading this?
3) What techniques or tips are you looking forward to trying during the bootcamp?
What I already know about how I communicate is that I am very straight forward and candid. I don't
mean demeaning or insulting but I like to be aas clear and concise as possible. I beleive humility is key to both
giving and receiving criticism, constructive or corrective. I understand well how communication can mistaken and misunderstood.
I learned through this reading what is expected and what is not acceptible and why good communication matters as
I swerve into this new career path.
//Write an analogy to describe the relationship between clients and servers
The relationship between clients and servers could be analogous with a service call.
A client would call a service company and describe their issue. The service company would send trained
personel with necessary tools and part and perform the service call.
To view the drawing copy this link or click the one in the comment
[https://drive.google.com/open?id=1UwC0KvbuZf8XbZ7tyF0gu4ybvLC8BKr5](url)
Make Student Report https://repl.it/@JasonMoffit/Make-student-reports-drill
Enroll in Summer School https://repl.it/@JasonMoffit/Enroll-in-summer-school-drill
find by id https://repl.it/@JasonMoffit/find-by-id-drill
Validate Object Keys https://repl.it/@JasonMoffit/validate-object-keys-drill (I leaned entirely on solutions here.
Grokking(inline comments) https://repl.it/@JasonMoffit/most-frequent-word-analyzer-challenge
Object Creator https://repl.it/@JasonMoffit/Object-creator-drill
Object Updator https://repl.it/@JasonMoffit/Object-updater-drill
Self-reference https://repl.it/@JasonMoffit/Self-reference-drill
Dleting Keys https://repl.it/@JasonMoffit/Deleting-keys-drill
Scope is where variables are declared, whether that be in the global scope or in block scope.
In global scope variable can be referenced anywhere, and depending on the order of inclusion, by things in other files.
Block scope refers to things inside a function block, between the opening and closing curly braces.
Global variables are to be avoided because they can cause conflicts and hard to track bugs.
JavaScript 'stict mode' will throw error for undeclared variables. It also "prohibits some syntax likely to be defined in future" standards (MDN | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode).
Side effects are unplanned effects, or mutations. Pure Functions are function that return the same resuts
with the same arguments every time. When a function returns different results with the same arguments, this is a side effect,
https://repl.it/@JasonMoffit/Creating-arrays-drill
https://repl.it/@JasonMoffit/Adding-array-items-drills (I had to refer to the solutions for this one. Was forgetting to return return)
https://repl.it/@JasonMoffit/Accessing-array-items-drill
https://repl.it/@JasonMoffit/Array-length-and-access-drill
Array Method Drills