# 2. Get the list of printers
lpstat -p -d
# 3. Print to the ZPL
lpr -P NAME_OF_PRINTER -o raw path/to/file.zpl
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
function resetForm() { | |
deleteAllFormResponses() | |
resetFormResponseDestination() | |
} | |
function resetFormResponseDestination() { | |
var form = FormApp.getActiveForm(); | |
var formResponsesSheetId = form.getDestinationId(); | |
var spreadsheet = SpreadsheetApp.openById(formResponsesSheetId); | |
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
import random | |
n = 36 | |
random.randint(pow(10, n - 1), pow(10, n) - 1) |
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
#!/bin/bash | |
# shellcheck disable=SC2104 | |
# The following script will setup the project for the first time for local dev | |
# To run the project after setup, use `docker compose up -d` | |
set -e | |
REPO_NAME="$1" |
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
import os | |
def main(): | |
makefile_path = os.path.join(os.getcwd(), "Makefile") | |
with open(makefile_path, "r") as makefile: | |
content = makefile.readlines() | |
new_content = "" |
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
import requests | |
class Event: | |
"""An Event that gets triggered when an HTTP event occurs.""" | |
def __init__(self): | |
self._event_handlers = [] | |
def __iadd__(self, handler): |
NewerOlder