- Java Basics
- Classes, Objects, References, Arguments, Return Values, ArrayLists, Interfaces, Inheritance, and Polymorphism
- Object References on the Stack
- Constructors and the Garbage Collector
- Static and Final
- Exception Handling
- Events
- Graphics
由于GFW的域名黑名单是不断变化的,如果所有DNS查询都走VPN会丧失CDN加速功能,经常出现本地电信线路,但是却访问网站的联通线路,而且当VPN线路不稳定的时候,会影响所有网站的访问。如果使用域名白名单或黑名单,对于经常访问外国网站的用户,体验很不好,需要用户自己维护域名列表。 该文章介绍如何通过判断并丢弃包含特征IP的DNS包来防止DNS污染,但是又不会失去本地DNS的CDN加速功能,而且还不需要VPN。
- 一台Openwrt路由器
- 使用dnsmasq作为Openwrt的dns服务器
- 安装 dig (opkg install bind-dig bind-libs)
- 安装 iptables 的 string 模块及对应的内核模块 (opkg install iptables-mod-filter kmod-ipt-filter)
ffmpeg -i input.mp3 -filter_complex "[0:a]avectorscope=s=1920x1080,format=yuv420p[v]" -map "[v]" -map 0:a avectorscope.mp4
ffmpeg -i input.mp3 -filter_complex "[0:a]showcqt=s=1920x1080,format=yuv420p[v]" -map "[v]" -map 0:a showcqt.mp4
ffmpeg -i input.mp3 -filter_complex "[0:a]ahistogram=s=1920x1080,format=yuv420p[v]" -map "[v]" -map 0:a ahistogram.mp4
FFmpeg and libav's playbook: Advanced encoding options with hardware-based acceleration, NVIDIA's NVENC and Intel's VAAPI-based encoder.
Hello guys,
Continuing from this guide to building ffmpeg and libav with NVENC and VAAPI enabled, this snippet will cover advanced options that you can use with ffmpeg and libav on both NVENC and VAAPI hardware-based encoders.
For ffmpeg:
On mac:
- Download the latest release.
- Extract the binary and place it in
/usr/local/bin
.
I hereby claim:
- I am nxtreaming on github.
- I am phantun (https://keybase.io/phantun) on keybase.
- I have a public key ASDuu3oDkWY6TSFLLiCalBgn4E8krjrGy4ZSLRPdQcta6Qo
To claim this, I am signing this object:
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
Add-Type -TypeDefinition @' | |
using System; | |
using System.Runtime.InteropServices; | |
namespace ProcessInfo | |
{ | |
public class NativeMethods | |
{ | |
[DllImport("User32.dll", SetLastError = true)] | |
public static extern bool CloseDesktop( |
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
--- | |
- hosts: all | |
tasks: | |
- name: Get mac addresses of all interfaces except local | |
debug: | |
msg: "{{ ansible_interfaces | difference(['lo']) | map('regex_replace', '^(.*)$', 'ansible_\\1' ) | map('extract', hostvars[inventory_hostname], 'macaddress') | list }}" |
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
commit abc0cd221fcfe81c5bd44880e863b26d6481b230 | |
Author: removed-email | |
Date: Sun Apr 22 12:30:20 2018 +0800 | |
fix typo | |
diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c | |
index e0b1bc4..426fdfb 100644 | |
--- a/libavformat/libsrt.c | |
+++ b/libavformat/libsrt.c |
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
commit 8f30bc5614b4d83ce8c6dfe78a2706f34ba41c87 | |
Author: removed-email | |
Date: Sun Apr 22 01:29:17 2018 +0800 | |
libsrt new option: pkt_size | |
diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c | |
index 0f9529d..e0b1bc4 100644 | |
--- a/libavformat/libsrt.c | |
+++ b/libavformat/libsrt.c |
NewerOlder