Skip to content

Instantly share code, notes, and snippets.

@GoodGuyGregory
GoodGuyGregory / commonCommands.md
Created November 22, 2019 04:08
Common to Advanced Windows CMD Commands

command clears your terminal Display . C:\> cls

command to display your username . C:\ whoami

command to Delete a file . C:\> del /f <filename>

moving to parent directory

@GoodGuyGregory
GoodGuyGregory / gitcommands.md
Last active February 9, 2020 22:59
Common Git Commands

Checking for Differences between local changes

git diff

Checking Differences between Branches

git diff <branch> <checkedout branch>

Git Log lists all commit shas and commits

@GoodGuyGregory
GoodGuyGregory / MVC Notes
Last active February 21, 2020 16:27
Model View Controller Notes
## Model View Controller
Each Part is of software design in this programming paradiagm is concerned with its own role in the presentation and delivery of well functioning applications.
**Separation of Concerns**
Each part of the program has a single concern. allowing for different development strategies for teams
**Model**
@GoodGuyGregory
GoodGuyGregory / shortkeys.md
Created February 24, 2020 22:52
Common VS Code Shortkeys

Common Shortkey Commands

Duplicate Line Command

SHIFT + OPTION + Up/Down

@GoodGuyGregory
GoodGuyGregory / Tips.md
Last active March 10, 2020 00:16
VIM For Life

Command Line Hot Keys

Previous Directory Hop

cd -

Command Search History

ctrl + r <type command>

@GoodGuyGregory
GoodGuyGregory / Mac Chrome Application Shortcuts 2018-06.txt
Created April 24, 2020 17:45 — forked from yeutterg/Mac Chrome Application Shortcuts 2018-06.txt
How to enable Application Shortcuts on Chrome for Mac, as of June 2018
How to get "Application Shortcut" functionality on Chrome for Mac, as of January 2020:
1. Visit the web page you would like to turn into an application
2. Navigate to Settings > More Tools > Create Shortcut...
3. Give the app a name, make sure "Open as window" is enabled, and click Create
4. The folder Chrome Apps should open in finder. Drag the new app shortcut to the dock or another location for easy access
That's it! You can even quit the app (Cmd-Q) without closing other Chrome windows, as it acts like a separate Mac app.

Getting Started

Mongo on Docker

Mongo Commands for Docker

  • Build the container

docker run --name some-mongo -v $PWD/data:/data/db -p 27017:27017 -d mongo

@GoodGuyGregory
GoodGuyGregory / commonhub.md
Last active September 21, 2020 15:36
Hub Commands

Common Hub Commands

create a repo to host a new project on GitHub

git init
git add .
git commit -m "And so, it begins."
hub create
→ (creates a new GitHub repository with the name of the current directory)
git push -u origin HEAD
@GoodGuyGregory
GoodGuyGregory / sshkey.md
Created May 9, 2020 19:12
SSH Key Configuration in Ubuntu