Skip to content

Instantly share code, notes, and snippets.

🎯
Googler

Edmond Cote edcote

View GitHub Profile
@edcote
edcote / git.md
Last active Sep 19, 2018
GIT Notes
View git.md

GIT

Getting started

  • Clone repository

    • Upload your public key to Bitbucket/GitHub
    • Clone using command: git clone git@bitbucket.org:<username>/<repo>.git
  • Pull from master branch

    • Use command git pull
View github.md

GitHub

Steps to submit a patch to a public repo

1. Fork the repository using GUI
1. Clone your forked repo
1. Create the branch locally, e.g.: `git branch devel-edcote` (should be descriptive name)
1. Push the new branch up to your fork: `git push origin devel-edcote`
1. Switch to your new new: `git checkout devel-edcote`
1. Do development work, make commits, ...
@edcote
edcote / rocketboot.md
Last active Jan 12, 2018
Rocket Boot
View rocketboot.md
View aws.md
@edcote
edcote / why_throttle.md
Last active Jul 10, 2018
Linux CPU throttle and I/O performance tips
View why_throttle.md

CPU performance

My workstation's CPU has been throttling and/or running slow for the past 48 hours. Here are the commands that I used to debug the problem.

First, core temperatues were checked:

$ watch sensors
coretemp-isa-0000
Adapter: ISA adapter
@edcote
edcote / win10_openssh.md
Last active Jan 19, 2018
Windows 10 OpenSSH Configuration
View win10_openssh.md

Win10 OpenSSH Tips

Don't ask. I dislike Windows.

  • Recursively take ownership administrator group

    TAKEOWN /F "C:\WINDOWS\System32\OpenSSH" /R TAKEOWN /F "C:\WINDOWS\System32\OpenSSH" /A /R

@edcote
edcote / docker.md
Last active May 21, 2018
Docker Help
View docker.md
@edcote
edcote / play.md
Last active May 6, 2018
Play Framework
View play.md

Play Framework

Important files

Directory structure

  • conf/routes defines how application routes HTTP GET requests to an action. Example:
# URI '/' calls index view (index.scala.html) 
View mongodb.md

MongoDB

MongoDB stores data in flexible, JSON-like documents. The document model maps to object in your application code, making data easy to work with. MongoDB is a distributed database at its core.

Here. Be careful, need 3.4 or later.are notes on how to install MongoDB on RHEL7.

Spark and MongoDB

MongoDB is a document store (and essentially a database). Spark is a computing engine and not a store. When used together, Spark jobs can be executed directly on operational data sitting in MongoDB.

@edcote
edcote / frontend.md
Last active May 8, 2018
Frontend Frameworks
View frontend.md

Frontend Frameworks

NPM

npm is the package manager for JavaScript. Install using apt install npm.

  • Setup repository: cd public/js && npm init -y

  • Install modules and dependencies

You can’t perform that action at this time.