Skip to content

Instantly share code, notes, and snippets.

@hq6
hq6 / resume
Created April 20, 2026 18:56
Wrapper script to play a file with vlc and resume from last position intended for use with https://github.com/hq6/sq
#!/bin/bash
# SUMMARY: Resume playback at given time or time last saved
# HELP:
# USAGE
# sq resume <media_file> [timestamp]
if [[ $# -lt 1 ]]; then
exec sq help resume
fi
@hq6
hq6 / xerox3aLinux.md
Last active July 20, 2018 22:48
Making xerox3a work on Linux (Ubuntu 18.04)

Don't try to use ppd files, use the .deb driver

I spent at least 2.5 hours trying to hand-edit various ppd files I downloaded with strings suggested by this gist.

I consistently failed to print with Invalid accounting codes printed by the printer.

Instead, download the driver from Xerox.

sudo dpkg -i Xeroxv5Pkg-Linuxx86_64-5.20.626.4179.deb