Skip to content

Instantly share code, notes, and snippets.

View sundarsrd's full-sized avatar
👣
Practicing...

Sivaramasundar D sundarsrd

👣
Practicing...
View GitHub Profile
@sundarsrd
sundarsrd / errorlint.inline-errors.md
Last active August 1, 2023 02:32
VSCode inline errors - ErrorLint extension

Managing Errorlint inline errors

When you have a large bunch of extensions, it becomes difficult to just find which features are from which extensions and to manage the configurations, toggles etc. I got into such a problem recently wherein i wanted to do a code-review and toggle the inline/inlay hints.

Examples: Before: image

  1. Press Ctrl + Alt + P / Cmd + Shift + P
The User creation fails with a cryptic message -
{"error":"forbidden","reason":"Doc ID must be of the form org.couchdb.user:name"}
curl -X PUT http://admin:password@localhost:5984/_users/org.couchdb.user:<NAME>
-H "Accept: application/json"
-H "Content-Type: application/json"
-d '{"name": "<NAME>", "password": "password", "metadata": { "givenName": "Given Name", "familyName": "Family Name"}, "roles": [], "type": "user"}'
Resolution:
<NAME> should be *exactly* the same in the URL param (key) and the "name" attribute in the JSON Body
@sundarsrd
sundarsrd / learning_links.md
Last active June 19, 2020 09:09
Learning Links - System Design
@sundarsrd
sundarsrd / using.esp1266.md
Last active April 27, 2019 17:56
Using ESP1266
  • Place the ESP8266 in the BreadBoard, and connect it to an USB port
  1. Install Arduino IDE
  2. Get USB to UART driver https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
  3. Add ESP1266 Board Manager - https://github.com/esp8266/Arduino http://arduino.esp8266.com/stable/package_esp8266com_index.json --> Add to preferences
  4. Select the "Tools -> "Board Generic ESP8666 Module -> Generic ESP8666 Module"
  5. Open "File -> Examples -> ESP8266 -> Blink"
  6. Compile & Upload (hold the flash button)
@sundarsrd
sundarsrd / intellij.project.import.issues.md
Last active April 21, 2019 07:04
IntelliJ - Existing Project Import Issues

Context

An existing project with ant scripts and maven pom.xml, is not successfully imported in intellij.

Issues:

  1. The dependencies are not resolved.
    • Refreshing maven & reimporting dependencies doesn't help (via "pom.xml" --> maven --> reimport menu options)
    • running "mvn compile" from cli works though in updating the maven repo.
    • It all points to a disconnect between maven binaries, repository and intellij bundled maven
    • Force updating the maven repository indices (ensuring no warnings/errors in pom.xml in idea), works

npm install -g generator-springboot-kickstart

@sundarsrd
sundarsrd / git.tips.md
Last active May 30, 2019 14:54
GIT Tips

Create a local branch to start work on an existing remote branch

$ git checkout --track origin/dev
$ git branch dev origin/dev

push a local branch to a remote branch

$ git push -u origin dev

Set or change the tracking relationship with remote branch

@sundarsrd
sundarsrd / allabout-the-brain.md
Created January 13, 2019 05:54
All about TheBrain