View sftpget.bat
@echo off
REM Usage:
REM 1. Set up your DOS network and packet drivers
REM 2. Install sftpd386.exe
REM 3. Edit the line which calls sftpd386.exe for path/credentials/IP address
REM 4. Run "sftpget file1 file2 file3 ..."
REM Write sftp script
(
@echo off
View x11_watch_active_window.py
#!/usr/bin/env python
"""python-xlib example which reacts to changing the active window/title.
Requires:
- Python
- python-xlib
Tested with Python 2.x because my Kubuntu 14.04 doesn't come with python-xlib
for Python 3.x.
View add_edl_association.sh
#!/bin/sh
# Sources:
# - https://stackoverflow.com/questions/30931/register-file-extensions-mime-types-in-linux
# - https://www.freedesktop.org/wiki/Specifications/AddingMIMETutor/
echo "* Adding file-type icons..."
for SIZE in 16 32 64; do
echo "* Adding ${SIZE}px icon"
xdg-icon-resource install --context mimetypes --size "$SIZE" "/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/mpv.png" application-x-mpv-edl
done
View wakeme
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""Wrapper script for scheduling an alarm within the desktop session so
MPV has access to the audio and video outputs.
See --help output for more details.
Requirements:
- python-dateutil
- pytimeparse
View find_postroll_ads.py
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# pylint: disable=line-too-long
"""Utility for generating MPV EDL files to skip recurring post-roll ads.
Instructions:
1. Use MPV's screenshot hotkey to extract a frame that's consistently present
at the boundary between the content and the ad.
View magog_updates_filter.py
#!/usr/bin/env python
"""This script should work as a way to extract only changed lines from a
pair of MaGOG dumps in a format that can be imported into a spreadsheet
tool.
"""
# Minimal argument-reading for proof of concept (I'd use argparse instead)
from sys import argv
import difflib, re
View toggle_smplayer_pause.sh
#!/bin/bash
OLD_WID="$(xdotool getactivewindow)"
WID=""
until [ -n "$WID" ]; do
WID="$(xdotool search --name '[-][ ]SMPlayer' 2>/dev/null)"
done
echo "$WID"
View dump_order_history.py
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""Quick script to dump ShinyLoot order records before they close"""
from __future__ import (absolute_import, division, print_function,
with_statement, unicode_literals)
__author__ = "Stephan Sokolow (deitarion/SSokolow)"
__appname__ = "ShinyLoot Order Details Dumper"
__version__ = "0.1a1"
View default_search.sh
#!/bin/sh
# Script to launch a search in the user's default browser using their default
# search provider. (Best effort, given that
#
# There may be a ready-made way to do most of this, but I don't know it so I
# just implemented the spec.
# http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
# Helpers for useful error handling
die() {
View geeqie-prepare-background.desktop
[Desktop Entry]
# IMPORTANT: THIS FILE IS A ONE-OFF HACK THAT I WROTE FOR MYSELF AND I AM
# SHARING IT AS AN EXAMPLE. I DO NOT GUARANTEE THAT IT WILL WORK AS-IS ON
# YOUR DESKTOP.
#
# Requirements:
# - Geeqie
# - Zenity
# - ~/bin/set_background.py
#