How to configure your Mac to use DNS over TLS in five easy steps:
-
Install Stubby with Homebrew (https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby):
brew install stubby -
Edit the configuration file:
| # !/usr/bin/env python3 | |
| # | |
| # nianfo.py - TudouCode Demo in Python 3 | |
| # Credit: https://github.com/lersh/TudouCode/ | |
| # | |
| # Note: | |
| # | |
| # This is the first version('佛曰') of TudouCode('与佛论禅'). | |
| # The second version('如是我闻') needs compression and I can't debug. | |
| # |
| import csv | |
| import tensorflow as tf | |
| import tensorflow_hub as hub | |
| module = hub.Module("https://tfhub.dev/google/imagenet/mobilenet_v2_140_224/feature_vector/2") | |
| height, width = hub.get_expected_image_size(module) | |
| ch = 3 | |
| batch_size = 10 | |
| image_list = tf.convert_to_tensor(['images/img_{:04d}.jpg'.format(i+1) for i in range(2500)]) |
| #!/bin/bash | |
| clear | |
| cat << EOF | |
| ################### 腾讯视频(MacOS)缓存文件合成脚本 ################### | |
| Author: eightpigs <[email protected]> | |
| Date: 2018-04-14 |
How to configure your Mac to use DNS over TLS in five easy steps:
Install Stubby with Homebrew (https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby):
brew install stubby
Edit the configuration file:
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
| const express = require('express'); | |
| const app = express(); | |
| const puppeteer = require('puppeteer'); | |
| const ua = require("useragent"); | |
| function isBot(userAgent) { | |
| const agent = ua.is(userAgent); | |
| return !agent.webkit && !agent.opera && !agent.ie && | |
| !agent.chrome && !agent.safari && !agent.mobile_safari && | |
| !agent.firefox && !agent.mozilla && !agent.android; |
Command Flags
| Flag | Options | Description |
|---|---|---|
-codec:a |
libfaac, libfdk_aac, libvorbis | Audio Codec |
-quality |
best, good, realtime | Video Quality |
-b:a |
128k, 192k, 256k, 320k | Audio Bitrate |
-codec:v |
mpeg4, libx264, libvpx-vp9 | Video Codec |
| - a 形容词 | |
| - ad 副形词 | |
| - ag 形容词性语素 | |
| - an 名形词 | |
| - b 区别词 | |
| - c 连词 | |
| - d 副词 | |
| - df | |
| - dg 副语素 | |
| - e 叹词 |
My Elasticsearch cheatsheet with example usage via rest api (still a work-in-progress)