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 threading | |
| class TestableThread(threading.Thread): | |
| """Wrapper around `threading.Thread` that propagates exceptions.""" | |
| def __init__(self, target, args): | |
| super().__init__(self, target=target, args=args) | |
| self.exc = 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
| #!/bin/bash | |
| # set -x | |
| print_usage() { | |
| echo "$0 [--map=0:3] video_file" >&2 | |
| echo "" >&2 | |
| echo "With video_file the path to a file like mkv which embeds the subtitles" >&2 | |
| echo "--map: use the specified embedded subtitle." >&2 | |
| echo "" >&2 |
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
| From 1ba6e724dabf3a91e59b871750e22d420a4b1238 Mon Sep 17 00:00:00 2001 | |
| From: Star Brilliant <m13253@hotmail.com> | |
| Date: Wed, 5 Oct 2016 22:02:36 +0800 | |
| Subject: [PATCH] Add a critical action: Ignore | |
| --- | |
| etc/UPower.conf | 3 ++- | |
| src/linux/up-backend.c | 5 +++++ | |
| 2 files changed, 7 insertions(+), 1 deletion(-) |
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 | |
| import urllib.request | |
| import re | |
| import ssl | |
| import sys | |
| # # find generic mirrors | |
| mirrors = urllib.request.urlopen('http://www.debian.org/mirror/list') | |
| https = [] |