Skip to content

Instantly share code, notes, and snippets.

View eriknovak's full-sized avatar

Erik Novak eriknovak

View GitHub Profile
@eriknovak
eriknovak / vscode-debug-node-config.js
Last active February 16, 2021 08:51
VSCode NodeJS debug configuration
// IMPORTANT: The configuration file must be a JSON
// This configuration is in .js because of the "comments" errors shown in the gist.
// When copying into the `launch.json` file in vscode just copy the json structure
// without the `module.exports = ` part.
module.exports = {
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
@eriknovak
eriknovak / pytorch-tensorboard.md
Last active February 12, 2021 14:14
Setting up Tensorboard with Pytorch

Setting up Tensorboard with PyTorch

TensorBoard is a visualization toolkit with allows the user to track and visualize metrics such as loss and accuracy, visualize the model graph, histograms, projects embeddings and much more.

Although Tensorboard was created by the TensorFlow people, it can also be used with PyTorch. This gist shows how one can do this.

Install PyTorch and Tensorboard

@eriknovak
eriknovak / logstash-pg-es.md
Last active February 10, 2024 17:53
Instructions for setting up the Logstash configuration for synching PostgreSQL with Elasticsearch

Populating Elasticsearch Index with Logstash

Logstash is a free and open server-side data processing pipeline that ingests data from a multitude of sources, transforms it, and then sends it to your favorite "stash."

This section describes how one can use it on UNIX to migrate data from a PostgreSQL database to elasticsearch.

The Prerequisites