Skip to content

Instantly share code, notes, and snippets.

View MarkusJLechner's full-sized avatar
🌸
keyboarding

Markus MarkusJLechner

🌸
keyboarding
  • mRaP Gmbh
  • Austria
  • 01:05 (UTC +01:00)
View GitHub Profile
#!/bin/bash
# recent_blame: Find the most recent changes related to a keyword.
#
# This function searches for a keyword in your git repository using ripgrep,
# collects all matching files, and then inspects git blame for those files.
# It compiles a globally sorted list of the most recent lines related to your
# keyword, optionally filtered by include / exclude patterns.
#
# Behavior:
@MarkusJLechner
MarkusJLechner / mysql2sqlite.cjs
Created October 1, 2024 14:33
Convert mysql dump to sqlite3
#!/usr/bin/env node
const fs = require('fs');
const readline = require('readline');
// Function to print to stderr
function printerr(s) {
process.stderr.write(s + '\n');
}