Skip to content

Instantly share code, notes, and snippets.

View sbimochan's full-sized avatar
🎩
Sherlock Holmes mode

Bimochan Shrestha sbimochan

🎩
Sherlock Holmes mode
View GitHub Profile
@sbimochan
sbimochan / styles.css
Created May 17, 2022 13:10
Refined Bitbucket custom styles
@import url(https://cdn.jsdelivr.net/gh/tonsky/FiraCode@5.2/distr/fira_code.css);
.code-diff {
font-family: 'Fira Code', monospace;
font-weight: 500;
line-height: 23px;
}
@sbimochan
sbimochan / unique-branches.md
Last active January 16, 2023 13:36
Get All unique commits going to staging branch from dev or other

Make sure you pulled all the commits in dev and staging branch

Approriately change if needed for master and staging.

git log origin/staging..origin/dev --oneline --no-merges

Press enter and grab all the result in clipboard

Fire up the console

@sbimochan
sbimochan / Assignment.md
Last active February 20, 2023 11:18
Coding assignment Javascript Full stack

Coding Assignment

Create a Restful API for CRUD application using expressJs framework and ReactJS with hooks that has following features.

  • Logged in users can create, delete and update their article.
  • Public user can read the article.

It should show the following implementation:

  • Run in multi thread of CPU.
  • Dockerize the api such that it can be run in services like fargate or kubernetes
  • API should have unit tests
@sbimochan
sbimochan / codeql-local.md
Last active May 26, 2023 09:41
Run CodeQL locally to check your codebase

Install CodeQL CLI from here

codeql database create project-ql --language=javascript
codeql pack download codeql/javascript-queries
codeql database analyze project-ql codeql/javascript-queries --format=sarifv2.1.0 --output=query-results.sarif --download
sudo pip install sarif-tools
sarif html -o venteur-ql-report/summary.html query-results.sarif

Now open the summary.html in your favorite browser