Skip to content

Instantly share code, notes, and snippets.

View qwerzl's full-sized avatar
😶‍🌫️
Really busy this month

Tom Tang qwerzl

😶‍🌫️
Really busy this month
View GitHub Profile

How to install game-porting-toolkit (aka proton for macOS)

You also might wanna just use Whisky which does this automatically

This guide works on macOS 13.4+ using Command Line Tools for XCode 15 Beta!

What is this?

In the recent WWDC, Apple announced and released the "game porting toolkit", which upon further inspection this is just a modified version of CrossOver's fork of wine which is a "compatibility layer" that allows you to run Windows applications on macOS and Linux.

@Bougakov
Bougakov / image.py
Last active October 13, 2024 12:29
A wrapper for python-escpos to print Unicode text labels with the TrueType font of your choice from command line. Written in Python 3. Also - an additional wrapper written in Parser3, to allow printing notes from web browser.
#!/usr/bin/env python3
debug = 1
import argparse
parser = argparse.ArgumentParser(description="Prints provided image on a POS printer")
parser.add_argument("-i", "--image", type=str, help="path to image")
parser.add_argument("-c", "--crop", type=str, help="Cut paper roll after printing (default: yes)",
choices=["yes","no"])
args = parser.parse_args()