Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
#!/bin/bash -e | |
#### | |
# Helper script to update the Last modified timestamp of files in a Git SCM | |
# Projects working Copy | |
# | |
# When you clone a Git repository, it sets the timestamp of all the files to the | |
# time when you cloned the repository. | |
# | |
# This becomes a problem when you want the cloned repository, which is part of a | |
# Web application have a proper cacheing mechanism so that it can re-cache files |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
import sys | |
import json | |
FIXED_WIDTH = len('_________') | |
FIXED_HEIGHT = 6 | |
def map_characters(string, typo_group): | |
return { | |
string[col]: [typo_group[row][col * (1 + FIXED_WIDTH): |
[General] | |
loglevel = notify | |
skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1 | |
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 | |
# dns-server = 119.29.29.29,223.5.5.5,114.114.115.115 | |
# external-controller-access = PASSWORD@0.0.0.0:6155 | |
# ipv6 = true | |
// REMEMBER TO CHANGE THE external-controller-access' PASSWORD |
Last updated: April 2021
Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22
).
Depending on the age and/or popularity of the video, not all formats will be available.
Resolution | AV1 HFR High | AV1 HFR | AV1 | VP9.2 HDR HFR | VP9 HFR | VP9 | H.264 HFR | H.264 |
---|---|---|---|---|---|---|---|---|
MP4 | MP4 | MP4 | WebM | WebM | WebM | MP4 | MP4 |
# How to create systemd services: http://neilwebber.com/notes/2016/02/10/making-a-simple-systemd-file-for-raspberry-pi-jessie/ | |
# Digital ocean on a mongodb service: https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-16-04 | |
[Unit] | |
Description=Run SystemD as users | |
After=network.target | |
[Service] | |
Type=simple | |
User=[USER HERE] | |
WorkingDirectory=[USER HOME] |
路由器已经「移民」,参考 这篇 Gist
当前成功(有效)方案实现日期:2017年10月08日
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get install -y build-essential curl | |
# NodeJS >= 6.0 | |
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - | |
RUN apt-get install -y nodejs | |
# ttfautohint |
udptunnel is a small program which can tunnel UDP packets bi-directionally over a TCP connection. Its primary purpose (and original motivation) is to allow multi-media conferences to traverse a firewall which allows only outgoing TCP connections.
# udptunnel -s 443 127.0.0.1/51820