Skip to content

Instantly share code, notes, and snippets.

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

Adam Simonini adamsimonini

🏠
Working from home
View GitHub Profile
@adamsimonini
adamsimonini / git-commands.md
Last active May 3, 2024 20:24
Git commands

Creating new branch

1 - git checkout master

2 - git pull (get latest changes on master)

3 - git checkout -b "{name-of-new-branch}"

Merging main into completed branch

# ./husky/pre-commit
#!/bin/sh
# Define ANSI color codes
MAGENTA='\033[35m'
RESET_COLOR='\033[0m'
# Check if the message has been displayed
if [ -z "$LINTER_MESSAGE_DISPLAYED" ]; then
@adamsimonini
adamsimonini / aws-conf-instructions.md
Last active July 11, 2023 16:24
AWS Configuration & EC2 Deployment
  1. Get admin to create these two:
  • access key
  • secret key

Store them in 1Password

  1. Install the AWS CLI tool

  2. Run the following to configure your authorization keys into your local environment. Leave the "region name" and "output format" options blank by simply pressing "Enter". See image in comment below.

<!-- bbb -->
//if the word starts with a vowel, so vowel test returns index 0, then simply add "way" to the end of the word
//grab the first consonant of str by checking where the first vowel resides
var finishedWord = "";
var string = "";
var a = "";
var e = "";