Skip to content

Instantly share code, notes, and snippets.

Key Name Key Combination
Copy ^C
Paste ^P
Cut ^X
Undo ^Z
Undo Typing ^Z
Find Next ^F
Select All ^A
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
';
@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
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

TestService.cs

public class TestService
{
	private int value = 0;

	public int GetValue()
/*
* 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) => {
System System View Gamelist View Video Support
carbon yes
carbon-centered
fio --loops=5 --size=1000m --filename=/mnt/fs/fiotest.tmp --stonewall --ioengine=libaio --direct=1 \
--name=Seqread --bs=1m --rw=read \
--name=Seqwrite --bs=1m --rw=write \
--name=512Kread --bs=512k --rw=randread \
--name=512Kwrite --bs=512k --rw=randwrite \
--name=4kQD32read --bs=4k --iodepth=32 --rw=randread \
--name=4kQD32write --bs=4k --iodepth=32 --rw=randwrite
rm -f /mnt/fs/fiotest.tmp
var wall_proxy = "SOCKS5 127.0.0.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:256
//------------------------------------------------------
//         IME设置
//------------------------------------------------------
[-IME设置-]
//可选:“上屏英文”、“上屏英文+空格”、“清屏”之一
空码时空格行为=清屏
//每次打开输入法时的标点符号状态,一般设置为“与系统转换状态一致”
//如需特别指定,可设置“输入法打开”或“输入法关闭”、“中文标点”或“英文标点”、“全角”或“半角”
初始化转换状态=自定义:英文标点+半角+输入法打开