For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
WSA or Windows Subsystem for Android is a Tool that allows Windows to run Android Apps directly without using any emulator. The problem is Windows Subsystem for Android is currently only available through preview via the Beta Channel of the Windows Insider Program. But if you follow this guide, you don't have to be in Windows Insider Program to try it out. The only thing you need is Windows 11 installed and some patience.
- A Device with any version and Edition of Windows 11 installed.
- Internet Connection.
- Hyper-V enabled.
Motor is an async Python driver for MongoDB.
You should use Motor when you're trying to interact with a MongoDB database in an asynchronous context. When you're making something that needs to be asynchronous (like a web server, or most commonly from what I've seen here, Discord bots), you also want all the database calls to be done asynchronously. But pymongo is synchronous, i.e it is blocking, and will block the execution of your asynchronous program for the time that it is talking to the database.
Thankfully for us, switching from pymongo to Motor isn't too hard, and won't need you to change much code. This process can be roughly summarized as:
Installing can be done with pip - pip install motor
All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.
众所周知,有些服务存在着地区限制,我们可以通过在服务所属地区搭建代理服务来解决,其中在其服务范围内部署 Nginx 反代服务是个有效且流行的办法。
但如果区域很多,每个区域都布置一台服务器那成本会有些高昂且利用率很低,通常我们只是需要该地区的 IP 而已,如果手头上正好有这些地区的代理池的话,那我们就可以只用一台服务器部署Nginx反向代理结合服务所在地区的代理实现相同的效果。
本文着重介绍的就是如何让 Nginx 通过代理访问上游服务。(即 proxy_pass 的目标)
详细图文说明可以参见《Nginx 如何与 Socat 配合使用》
PS:本配置兼容 《哔哩漫游》 和 《解除b站区域限制》
| KEYMAPOPTS="us us" | |
| HOSTNAMEOPTS="-n alpine" | |
| INTERFACESOPTS="auto lo | |
| iface lo inet loopback | |
| auto eth0 | |
| iface eth0 inet dhcp | |
| hostname alpine | |
| " | |
| TIMEZONEOPTS="-z UTC" |
| import urllib.request | |
| import re | |
| EMOJI_TEST_FILENAME = "emoji-test.txt" | |
| EMOJI_DATA_URL = "https://unicode.org/Public/emoji/16.0/emoji-test.txt" | |
| def download_latest_emoji_test_data() : | |
| response = urllib.request.urlopen(EMOJI_DATA_URL) | |
| emoji_test_file = response.read() | |
| with open(EMOJI_TEST_FILENAME, "wb") as tmp_file: |
| #!/usr/bin/env bash | |
| sudo apt update && sudo apt install -y git automake build-essential pkg-config libevent-dev libncurses5-dev byacc bison | |
| rm -fr /tmp/tmux | |
| git clone https://github.com/tmux/tmux.git /tmp/tmux | |
| cd /tmp/tmux | |
| git checkout 3.0 | |
| sh autogen.sh | |
| ./configure && make | |
| sudo make install |
| # Get-DirStats.ps1 | |
| # Written by Bill Stewart (bstewart@iname.com) | |
| #requires -version 2 | |
| # PowerShell wrapper script for the SysInternals du.exe command: | |
| # https://docs.microsoft.com/en-us/sysinternals/downloads/du | |
| # Why? Object output for sorting, filtering, calculating totals, etc. | |
| # | |
| # Version history: |
| // 1. Open the browser developper console on the network tab | |
| // 2. Start the video | |
| // 3. In the dev tab, locate the load of the "master.json" file, copy its full URL | |
| // 4. Run: node vimeo-downloader.js "<URL>" | |
| // 5. Combine the m4v and m4a files with mkvmerge | |
| const fs = require('fs'); | |
| const url = require('url'); | |
| const https = require('https'); |