Skip to content

Instantly share code, notes, and snippets.

/*
* this is an example of how to limit the amount of promise tasks in parallel.
*/
let urls = getUrls(); // the array of image urls.
const maxTasks = 5; // the max amount of promise task in parallel.
let uploadAttemps = 0; // upload attemps
const uploadImage = () =>
new Promise((resolve, reject) => {

TestService.cs

public class TestService
{
	private int value = 0;

	public int GetValue()
var wall_proxy = "SOCKS5 192.168.137.1:10081;";
var nowall_proxy = "DIRECT;";
var direct = "DIRECT;";
var ip_proxy = "DIRECT;";
var keywordArr = ['google','gmail','facebook','youtube','twitter','instagram'];
var suffixeArr = ['twimg.com','t.co','kenengba.com','akamai.net','akamaihd.net','fbcdn.net','twitter.com'];
var cnIpRange = [
{},{0x10001:1,0x10002:1,0x10003:1,0x10008:4,0x1000c:4,0x10020:16,0x10030:16,0x10100:1,0x10102:1,0x10103:1,0x10104:4,0x10108:4,0x1010c:4,0x10110:16,0x10120:16,0x10130:16,0x10200:1,0x10201:1,0x10202:1,0x10204:1,0x10205:1,0x10206:1,0x10207:1,0x10208:1,0x10209:1,0x1020a:1,0x1020b:1,0x1020c:4,0x10210:16,0x10220:16,0x10230:16,0x10240:64,0x10300:256,0x10401:1,0x10402:1,0x10403:1,0x10404:1,0x10405:1,0x10406:1,0x10407:1,0x10408:4,0x1040c:4,0x10410:16,0x10420:16,0x10430:16,0x10440:64,0x10800:256,0x10a00:4,0x10a04:4,0x10a08:1,0x10a09:1,0x10a0b:1,0x10a0c:4,0x10a10:16,0x10a20:16,0x10a30:16,0x10a40:64,0x10c00:1024,0x11800:1024,0x11c00:1024,0x12d00:256,0x13000:256,0x13100:256,0x13200:256,0x13300
@cuteribs-1
cuteribs-1 / DotNetCore-CultureInfo-DateFormat.md
Created November 28, 2019 05:58
.NET 3.0 CultureInfos (Win10)
Name DisplayName ShortDatePattern ShortTimePattern
aa-DJ Qafar (Yabuuti) dd/MM/yyyy h:mm tt
aa-ER Qafar (Eretria) dd/MM/yyyy h:mm tt
aa-ET Qafar (Otobbia) dd/MM/yyyy h:mm tt
af-NA Afrikaans (Namibië) yyyy-MM-dd HH:mm
af-ZA Afrikaans (South Africa) yyyy-MM-dd HH:mm
agq-CM Aghem (Kàmàlûŋ) d/M/yyyy HH:mm
ak-GH Akan (Gaana) yyyy/MM/dd h:mm tt
am-ET Amharic (Ethiopia) dd/MM/yyyy h:mm tt
alias proxy='
export ALL_PROXY=socks5://localhost:10081/
export HTTP_PROXY=socks5://localhost:10081/
export HTTPS_PROXY=socks5://localhost:10081/
git config --global https.proxy http://localhost:10081
git config --global https.proxy https://localhost:10081
npm config set proxy=http://localhost:10081
npm config set https-proxy http://localhost:10081
';
Key Name Key Combination
Copy ^C
Paste ^P
Cut ^X
Undo ^Z
Undo Typing ^Z
Find Next ^F
Select All ^A
部件 品牌型号 参考价格
CPU Intel i7-10700K 3000
主板 圣旗 Z490-PRO GAMING 1400
内存 十铨 DDR4 2666 8G x 2 440
机箱 骨伽 影武者X7 349
电源 骨伽 XTC 600W 339
电源 TT GT 650W (后改方案) 499
散热器 TT 冰龙240 379
OpenSSL Version Device
OS
SoC
CPU
MD5 SHA1
SHA256
SHA512
DES
3DES
AES128
AES192
AES256
aes-128-gcm
OpenSSL 1.1.1g RT-AX68U
ASUSWRT 386
BCM4906
ARMv8
319.06M 793.47M
746.09M
111.44M
33.96M
12.11M
78.23M
65.83M
57.52M
706.86M
OpenSSL 1.1.1g RT-AX68U
ASUSWRT 386
BCM4906
ARMv8 2t
629.62M 1567.71M
1483.88M
223.11M
67.02M
23.96M
151.34M
128.69M
113.49M
1412.11M
OpenSSL 1.1.1g RT-AX86U
ASUSWRT
BCM4908
ARMv8
322.41M 799.03M
753.17M
113.24M
33.95M
12.03M
78.29M
65.63M
58.07M
707.28M
OpenSSL 1.1.1g RT-AX86U
ASUSWRT
BCM4908
ARMv8 2t
642.99M 1595.11M
1505.17M
225.97M
67.70M
24.20M
156.45M
131.66M
116.05M
1410.67M
OpenSSL 1.1.1g RT-AX86U ASUSWRT BCM4908 ARMv8 4t 1275.19M 3159.55M
@cuteribs-1
cuteribs-1 / mac-vendor.txt
Created January 28, 2021 07:02 — forked from aallan/mac-vendor.txt
List of MAC addresses with vendors identities
000000 Officially Xerox
000001 SuperLAN-2U
000002 BBN (was internal usage only, no longer used)
000003 XEROX CORPORATION
000004 XEROX CORPORATION
000005 XEROX CORPORATION
000006 XEROX CORPORATION
000007 XEROX CORPORATION
000008 XEROX CORPORATION
000009 powerpipes?
void Main()
{
using var mmf = MemoryMappedFile.OpenExisting("AIDA64_SensorValues");
using var accessor = mmf.CreateViewAccessor();
var bytes = new byte[accessor.Capacity];
accessor.ReadArray(0, bytes, 0, bytes.Length);
using var sw = new StreamWriter(@"F:\Green\aida64\shared-memory.xml");
sw.WriteLine(Encoding.ASCII.GetString(bytes).Trim());
return;
var xmlDoc = new XmlDocument();