This file contains hidden or 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
#!/usr/bin/env python3 | |
""" | |
Show and adjust display parameters on an Iiyama ProLite XB2483HSU-B1 monitor | |
Requirements: | |
- mentioned monitor (27' should also work) with DDC/CI setting on | |
- Windows Vista+ | |
- Python 3 |
This file contains hidden or 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
#!/usr/bin/env python3 | |
""" | |
Optimize image files | |
- Convert losslessly compressed files to PNG | |
- Optimize PNG and JPEG compression | |
- Optionally, convert PNG to JPEG when it would result in an | |
output/input size ratio below a given value | |
- Optionally, recompress JPEG files above a given quality level |
This file contains hidden or 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
#!/usr/bin/env python3 | |
""" | |
Update the timestamps of a directory tree with the ones from a different | |
tree. Optionally timestamps can be changed only for directories or for | |
files, or only when they are older or newer. | |
Requeriments: | |
- python 3.3+ | |
- pywin32 (Windows, to sync also creation date, optional) |
This file contains hidden or 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 sys | |
sys_encoding = sys.getfilesystemencoding() | |
if sys_encoding != 'utf8': | |
text = avsp.GetSelectedText() | |
if text: | |
text = text.encode('utf8').decode(sys_encoding) | |
avsp.InsertText(text, pos=None) |
This file contains hidden or 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
"""Show last channel with activity and its unread count as the program's title | |
- Requires HexChat 2.9.6+ | |
- Only thought for single window | |
Copyright (C) 2013, 2014 Diego Fernández Gosende (dfgosende [at] gmail [dot] com) | |
GPL v2 or later <http://www.gnu.org/licenses/gpl-2.0.html> | |
""" | |
# activity in the following channels is ignored |
This file contains hidden or 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
# coding: utf8 | |
# Python 2.7 bindings for the VapourSynth C API | |
# last updated: VapourSynth R19 | |
from __future__ import print_function | |
import sys | |
import os | |
import os.path | |
from collections import Iterable | |
import subprocess |
This file contains hidden or 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""Parse SegmentUID and Duration on Matroska files, for ordered chapters | |
Usage (Python 2 or 3): | |
$python mkv_suid_duration.py file1 [file2...] | |
$python mkv_suid_duration.py directory | |
Copyright (C) 2013 Diego Fernández Gosende (dfgosende [at] gmail [dot] com) |