This file contains hidden or 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) [email protected] | 2017-01-11 | |
// | |
// Compile: | |
// gcc -std=c99 -Wall -Wextra -pedantic fizzbuzz.c -o fizzbuzz | |
// | |
#include <stdio.h> |
This file contains hidden or 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 hidden or 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) [email protected] | 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 hidden or 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) [email protected] | |
# 2015-07-08 | |
# | |
# Testing out python's argparse | |
import argparse | |
import sys | |
from itertools import product |
NewerOlder