Skip to content

Instantly share code, notes, and snippets.

@twosky2000
twosky2000 / pdfcompress.py
Created January 15, 2023 16:46 — forked from ilovefreesw/pdfcompress.py
A Python script to batch compress PDF files on Windows, MAC, and Linux. Make sure gs and Python are in PATH before running this script.
from __future__ import print_function
import os
import subprocess
root = "."
try:
os.mkdir('compressed')
except FileExistsError:
pass
@twosky2000
twosky2000 / zha_symfonisk_remote_lights.yaml
Last active April 15, 2022 01:42 — forked from seamus65/zha_symfonisk_remote_lights.yaml
ZHA - IKEA Symfonisk sound controller for lights(Debounced)
blueprint:
name: ZHA - IKEA Symfonisk sound controller for lights
description: 'Control lights with an IKEA Symfonisk sound controller (the spinny ones).
You can set functions for single press, double press and triple press. This allows you to assign,
e.g., a scene or anything else.
Rotating left/right will change the brightness smoothly of the selected light.'
domain: automation