Skip to content

Instantly share code, notes, and snippets.

View peterspackman's full-sized avatar

Peter Spackman peterspackman

View GitHub Profile
@peterspackman
peterspackman / mingw-w64-x86_64.cmake
Last active April 15, 2024 15:04
cmake toolchain file for mingw-w64 x86_64 builds on Ubuntu
# Sample toolchain file for building for Windows from an Ubuntu Linux system.
#
# Typical usage:
# *) install cross compiler: `sudo apt-get install mingw-w64`
# *) cd build
# *) cmake -DCMAKE_TOOLCHAIN_FILE=~/mingw-w64-x86_64.cmake ..
# This is free and unencumbered software released into the public domain.
set(CMAKE_SYSTEM_NAME Windows)
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peterspackman
peterspackman / sqlar.py
Created January 8, 2021 03:27
SQL compressed file archive
#!/usr/bin/env python
from __future__ import print_function
import argparse
from datetime import datetime, timedelta
import logging
import os
import sqlite3
import zlib
import stat