Skip to content

Instantly share code, notes, and snippets.

View edcote's full-sized avatar
🎯
Googler

Edmond Cote edcote

🎯
Googler
View GitHub Profile
@edcote
edcote / git.md
Last active September 19, 2018 18:27
GIT Notes

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
@edcote
edcote / github.md
Created December 13, 2017 16:43
GitHub Notes

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 January 12, 2018 16:50
Rocket Boot
@edcote
edcote / aws.md
Last active December 26, 2017 15:33
AWS
@edcote
edcote / why_throttle.md
Last active February 28, 2023 20:40
Linux CPU throttle and I/O performance tips

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 January 19, 2018 22:01
Windows 10 OpenSSH Configuration

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 17:32
Docker Help
@edcote
edcote / play.md
Last active May 6, 2018 16:29
Play Framework

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) 
@edcote
edcote / mongodb.md
Last active June 21, 2018 15:26
MongoDB

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 21:49
Frontend Frameworks

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