Skip to content

Instantly share code, notes, and snippets.

View techouse's full-sized avatar
🏛️
Crash early. A dead program normally does a lot less damage than a crippled one.

Klemen Tusar techouse

🏛️
Crash early. A dead program normally does a lot less damage than a crippled one.
View GitHub Profile
@techouse
techouse / sqlite3mysql.py
Last active May 29, 2023 13:37
A simple Python 3 script to transfer the data from SQLite 3 to MySQL. Requires MySQL Connector/Python 2.0.4 or higher.
#!/usr/bin/env python3
import logging
import sqlite3
import sys
import re
from math import ceil
from os.path import realpath, isfile
import mysql.connector
from mysql.connector import errorcode
@techouse
techouse / difm.pl
Last active June 16, 2016 15:57
Super lean DI.FM player for *nix
#!/usr/bin/env perl
use warnings;
use strict;
use autodie;
use LWP::UserAgent;
use JSON;
use DBIx::Simple;
use Text::Table;
my $mplayer = `/usr/bin/which mplayer 2>&1`;