App | TeamViewer | Windows Remote Assistance | Chrome Remote Desktop | Quick Assist |
---|---|---|---|---|
Platform | Windows, macOS, Linux | Windows 7 or later | Windows, macOS, Linux | Windows 10 |
Prerequisite | Download execution file. | Enable in system properties (default: enabled). | Install Chro |
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
#!/usr/bin/env python3 | |
from xml.etree import ElementTree | |
from pathlib import Path | |
import io | |
import datetime | |
import email.utils | |
__author__ = 'chrono-meter@gmx.net' | |
__version__ = '1.0.0' | |
__license__ = 'Python Software Foundation License' |
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
#!/usr/bin/env python3 | |
import requests | |
from urlpath import URL # https://pypi.org/project/urlpath/ | |
import argparse | |
import logging | |
logger = logging.getLogger(__name__) | |
# https://www.peterbe.com/plog/best-practice-with-retries-with-requests | |
def Session(*args, **kwargs): |
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 collections | |
import pathlib | |
def common_prefix(*paths): | |
"""Common prefix of given paths""" | |
counter = collections.Counter() | |
for path in paths: | |
assert isinstance(path, pathlib.Path) | |
counter.update([path]) |
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 codecs | |
def read_utf_with_bom(fp, errors='strict', remove_bom: bool=True) -> str: | |
chunk = fp.read(4) | |
if chunk.startswith(codecs.BOM_UTF8): | |
encoding = 'utf_8_sig' | |
bom = codecs.BOM_UTF8 | |
elif chunk.startswith(codecs.BOM_UTF32_BE): |
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 collections | |
class CDODict(collections.UserDict): | |
"""Caseless and Default and Ordered Dict""" | |
def __init__(self, default_factory, name_normalize=str.lower): | |
self.default_factory = default_factory | |
self.name_normalize = name_normalize | |
self._normalized_names = {} # {normalized: original, ...} |
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
#!python3 | |
"""OpenSSL enc compatible script by Python. | |
""" | |
import sys | |
import os | |
import io | |
import hashlib | |
import binascii | |
import argparse | |
import logging |
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
<?php | |
/** | |
* Disable Jetpack's Photon completely. | |
* | |
* Jetpack uses Photon API internally even Photon is inactivated. (ex. Related posts) | |
* When you disable Photon API with hooking `jetpack_photon_skip_for_url`, there is | |
* problem that ignore size for getting image url. | |
* | |
* compatiblity: WordPress v4.6.1, Jetpack v4.3.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
<?php | |
/** | |
* Get all the registered image sizes along with their dimensions | |
* | |
* @global array $_wp_additional_image_sizes | |
* | |
* @link http://core.trac.wordpress.org/ticket/18947 Reference ticket | |
* @return array $image_sizes The image sizes | |
*/ | |
function _get_all_image_sizes() { |
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
% wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tar.xz | |
% tar xJf Python-3.5.2.tar.xz | |
% cd Python-3.5.2 | |
% ./configure --prefix=$HOME/python-3.5/ | |
% make | |
% make install | |
% ~/python-3.5/bin/python3 -c "import bz2, ctypes, decimal, hashlib, lzma, sqlite3, ssl, xml.etree.ElementTree" | |
% mkdir ~/bin | |
% ln -s ~/python-3.5/bin/python3.5 ~/bin/python3 | |
% ln -s ~/python-3.5/bin/idle3.5 ~/bin/idle3 |