You can use this directive to check for WeChat in-app browser and set cache off:
if ($http_user_agent ~* "MicroMessenger") {
set $skip_cache 1;
}
You can use this directive to check for WeChat in-app browser and set cache off:
if ($http_user_agent ~* "MicroMessenger") {
set $skip_cache 1;
}
This is the minimal guide for installing LineageOS 17.1 on OnePlus 3T abtracted from LineageOS offical guide. It works at the time of writing so no gurantee for further updates.
cd to the platform-tools directory, run adb devices to see if your phone is connected.adb reboot bootloader to boot your phone into bootloader mode.fastboot devices while in bootloader mode to see if your computer still connects to it.fastboot oem unlock. Your phone should be reset and reboot automatically.adb reboot bootloader to boot your phone into bootloader mode. Also make sure your phone can be find in fastboot mode by re-typing fastboot devices.fastboot flash twrp-3.4.0-0-oneplus3.img to flash custom recovery.fastboot boot twrp-3.4.0-0-oneplus3.img to boot into new recovery mode.arm64 architecture. Choose the packages you prefer (I recommend nano package).adb sideload lineage-17.1-20201026-nightly-oneplus3-signed.zip.adb sideload open_gapps-arm64-10.0-nano-20201031.zip.When you tried to move part of your code to external repo and later add it back as a git submodule you may see this error:
'lib/my-repo' already exists in the index
Then you can try the following:
git rm -rf 'lib/my-repo'
git submodule add https://github.com/sparanoid/my-external-repo lib/my-repo
不废话,来个经典的优缺点列表式测评
这款耳机的很多优点也都是它的缺点,比如:
除此之外还有以下缺点:
作为这几款中最便宜的耳机,也是唯一没有主动降噪的耳机。不能要求过多:
System requirements:
$wgUploadDirectory are stored offsiteGoals:
Goal:
geoip_country /usr/share/GeoIP/GeoIPv6.dat;
map $geoip_country_code $proxy_direct_pass {
default yes;
CN no;
}
location ~* ^/proxied-content/(.*)$ {
if ($proxy_direct_pass = yes) {
return 302 https://original_content/$1$is_args$args;
}
proxy_pass https://original_content/$1$is_args$args;
}
Case:
$http_accept)image.png can also be in WebP formatThe solution:
In nginx.conf:
# Proxy cache pools for image caching
proxy_cache_path /dev/shm/image_cache
keys_zone=image_cache:10m;
proxy_cache_path /dev/shm/image_cache_webp
keys_zone=image_cache_webp:10m;
# Differenate WebP requests
map $http_accept $webp_pool {
default image_cache;
~*webp image_cache_webp;
}
In your site config:
proxy_cache $webp_pool;
adb shell settings put global time_zone America/New_York
You must use IKEA TRÅDFRI Gateway to add your drivers. Philips Hue Bridge can add TRÅDFRI drivers but they won’t appear in your Home app. That means TRÅDFRI drivers with Philips Hue Bridge won’t work with HomeKit. So dig into your pockets to buy a TRÅDFRI Gateway.
After you setting up your TRÅDFRI Gateway with IKEA Home smart app. The app will force you to add a controller (Wireless Dimmer, On-Off Switch/Dimmer, etc.) to control any smart accessory. That prevents you from adding any driver directly to the app. You have to add the driver through a controller. So again, dig deeper into your pockets to buy a switch/dimmer. I recommend TRÅDFRI Wireless dimmer. I just bought one as the device adoptor since I won’t use it to control my accessories.
You can pair the wireless dimmer with more than one drivers. When you push on/off on the dimmer. All paired drivers will respond. It’s okay if you just use it as the device adoptor like me. But if you want to use it later as a normal dimmer. Just remove it from the app and re-pair it the right driver.
Don’t buy any other IKEA smart accessories at the time of writing. Like motion sensors, bulbs, etc. Blinds are okay but reported the motors are louder than other brands. That means most of them suck.
Update Mar 8, 2021: Recently IKEA announced that they add HomeKit support for existing TRÅDFRI Shortcut Buttons and TRÅDFRI Motion Sensors. Recently I purchased these two products and did some tests:
Stream passthrough method for low latency HomeKit camera support:
The configuration should be look like:
"videoConfig": {
"source": "-rtsp_transport tcp -i rtsp://admin:<device_passcode>@<device_ip>:554/h265/ch1/main/av_stream",
"maxFPS": 30,
"audio": false,
"vcodec": "copy",
}
Here’s the tricky part: the EZVIZ CS-C6CN-3H2CWF will output h265 by default, which is not supported by HAP. And the default bitrate is also too high to handle for iOS devices. So you will need to update some settings for the camera:
Please note this step will slightly reduce the quality of your video stream when you view the stream in EZVIZ official app, but it’s mandatory for the camera to work with HomeKit.
Bonus: audio support without compiling FFmpeg after version 1.0.0:
"videoConfig": {
"source": "-rtsp_transport tcp -i rtsp://admin:<device_passcode>@<device_ip>:554/h265/ch1/main/av_stream",
"maxFPS": 30,
"audio": true
}
This will make FFmpeg re-encode your stream and hurt your CPU. The latency is about 0.6-1 second. I suggest you install Homebridge on a Mac mini for better performance.
Update for homebridge-camera-ffmpeg 3.0.0 and later: It’s finally stable enough to stream passthough with audio support. You can now use the following config:
"videoConfig": {
"source": "-rtsp_transport tcp -i rtsp://admin:<device_passcode>@<device_ip>:554/h265/ch1/main/av_stream",
"maxFPS": 30,
"audio": true,
"vcodec": "copy",
}
The problem: when you enables X-Frame-Options globally. You won’t be able to embed your posts with latest WordPress embed posts method.
The solution: you can simply exclude it in your Nginx configuration. I’ll use Nginx map for better performance:
map $request_uri $x_frame_options_headers {
default SAMEORIGIN;
# Matching WordPress embed page, ie. https://example.com/my-post/embed#?secret=vLi4CQcWkH
~/embed "";
}
# Don't allow the browser to render the page inside an frame or iframe
add_header X-Frame-Options $x_frame_options_headers;
Note: bash_profile is completely different from configuration profiles. Learn more about Configuration Profiles in my book: ‘Property Lists, Preferences and Profiles for Apple Administrators’ Note:…
Source: About bash_profile and bashrc on macOS – Scripting OS X
If you got the following errors:
\\.\PhysicalDrive1: Source and destination checksums do not match: <hash1> !== <hash2>

You can try to disable removable drives to be added to libraries setting for System Volume Information folder creation:
How to prevent creation of “System Volume Information” folder in Windows 10 for USB flash drives?