Skip to content

Instantly share code, notes, and snippets.

View cathalnoonan's full-sized avatar

Cathal Noonan cathalnoonan

View GitHub Profile
@cathalnoonan
cathalnoonan / indentJsonFile.js
Created July 12, 2021 19:13
Node.js : indentJsonFile -- Replaces the content of a JSON file with indentation added
const fs = require('fs').promises
/**
* Overwrites the content of a JSON file with indentation added.
* @param {string} filePath Path to the JSON file.
* @param {number} indentation Number of spaces used in indentation.
* @returns {Promise<void>}
*/
async function indentJsonFile (filePath, indentation = 2) {
const fileContent = await fs.readFile(filePath, { encoding: 'utf-8' })
@cathalnoonan
cathalnoonan / 00_Setup.md
Last active March 29, 2023 21:02
Debezium Examples
mkdir -p ~/temp
cd ~/temp

# Clone sample code
git clone https://github.com/debezium/debezium-examples.git
cd ./debezium-examples/tutorial

alias docker-compose="docker compose"