Skip to content

Instantly share code, notes, and snippets.

View israel-oye's full-sized avatar
🗿

lator israel-oye

🗿
View GitHub Profile
@israel-oye
israel-oye / mysql2sqlite.sh
Created July 21, 2022 09:15 — forked from esperlu/mysql2sqlite.sh
MySQL to Sqlite converter
#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite
@israel-oye
israel-oye / problem.md
Created July 18, 2024 20:37
Remote Dev Container issue

From the documentation, it seems that the Alpine distro might have issues with the Dev Container extension. In the documentation, Alpine 3.16+ is referenced but on running $ cat /etc/issue in the rendo-app container, I get the following:

Welcome to Alpine Linux 3.13
Kernel \r on an \m (\l)

What makes it increasingly frustrating is that this issue is hardly documented.