Skip to content

Instantly share code, notes, and snippets.

View MarkusJLechner's full-sized avatar
🌸
keyboarding

Markus MarkusJLechner

🌸
keyboarding
  • mRaP Gmbh
  • Austria
  • 04:17 (UTC +02: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,
# finds the files containing it, and then inspects the git blame for those
# files. It compiles a list of the most recent lines across all found
# files that are related to your keyword.
#
# By default, it skips files listed in your .gitignore (a default 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');
}