This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import os | |
import re | |
import subprocess as sub | |
import argparse | |
import tempfile | |
import json | |
from concurrent.futures import ThreadPoolExecutor, as_completed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Author: Markus (MawKKe) ekkwam@gmail.com | |
# Date: 2018-03-19 | |
# | |
# | |
# What? | |
# | |
# Linux dm-crypt + dm-integrity + dm-raid (RAID1) | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Unconditional FizzBuzz | |
// | |
// Author: Markus (MawKKe) ekkwam@gmail.com | 2017-01-11 | |
// | |
// Compile: | |
// gcc -std=c99 -Wall -Wextra -pedantic fizzbuzz.c -o fizzbuzz | |
// | |
#include <stdio.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
jolla-sms.sql - Query Jolla's commhistory.db for SMS's. | |
- Shows sent/received from last 2 months, oldest to newest. | |
- Messages are printed with newlines replaced by spaces. | |
--- | |
Usage: | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Author: Markus (MawKKe) ekkwam@gmail.com | 2016-01-27 02:52 | |
# | |
# --- | |
# CLI program to show (unread) SMS's on Jolla/Sailfish OS | |
# | |
# Reads directly form an sqlite3 database, so standard Python libraries suffice. | |
# | |
# The database file is typically located in ~/.local/share/commhistory/commhistory.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
#!/usr/bin/env python3 | |
# Markus Holmström (MawKKe) ekkwam@gmail.com | |
# 2015-07-08 | |
# | |
# Testing out python's argparse | |
import argparse | |
import sys | |
from itertools import product |
NewerOlder