ๅฉ็จ NGINX ็ Stream ๆจกๅก sni_preread ๅ่ฝ๏ผๅฏไปฅๅๅฐ่ฎ Trojan ๅๅ ถไป็ถฒ็ซๅจๅไธๅฐๆฉๅจไธๅ ฑไบซ 443 ็ซฏๅฃใ
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
public class ConvertIntarrayToChararray | |
{ | |
public int FindMaxConsecutiveOnes(int[] nums) { | |
char[] numsToChars = new char[nums.Length]; | |
numsToChars = nums.ConvertAll<int, char>(nums, c => char.Parse(c)); // C# 3.0 | |
// In C# 2.0, replaced the above code to : | |
// numsToChars.ConvertAll<int, char>(nums, delegate(int c) { return char.Parse(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
$ curl \ | |
-X POST \ // -X means | |
-H "Accept: application/vnd.github.v3+json" \ // -H means -H "Authorization: token (base64 code)" | |
https://api.github.com/user/repos \ | |
-d '{"name":"name"}' // -d means data | |
// another options: -i means add the flag to include headers. | |
// -u means Use a flag to set your username(only Using personal access tokens) | |
$ curl -i -H "Authorization: token 5199831f4dd3b79e7c5b7e0ebe75d67aa66e79d4" \ | |
-d '{ \ |
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
Python 5 hrs 6 mins โโโโโโโโโโโโโโโโโโโโโ 75.6% | |
Markdown 1 hr 15 mins โโโโโโโโโโโโโโโโโโโโโ 18.7% | |
Other 19 mins โโโโโโโโโโโโโโโโโโโโโ 4.9% | |
INI 2 mins โโโโโโโโโโโโโโโโโโโโโ 0.7% | |
JSON 0 secs โโโโโโโโโโโโโโโโโโโโโ 0.1% |
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
@echo off | |
setlocal EnableDelayedExpansion | |
set "WD=%__CD__%" | |
if NOT EXIST "%WD%msys-2.0.dll" set "WD=%~dp0usr\bin\" | |
set "LOGINSHELL=bash" | |
set /a msys2_shiftCounter=0 | |
rem To activate windows native symlinks uncomment next line | |
REM set MSYS=winsymlinks:nativestrict |
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
cmake -G Ninja "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="D:\Applications\Scoop\apps\msys2\current\mingw64" -DCMAKE_CXX_COMPILER='g++' -DCMAKE_C_COMPILER='gcc' .. | |
CMake Warning: | |
Ignoring extra path from command line: | |
"D:/Applications/Scoop/apps/msys2/2023-01-27/usr/src/tdlib/build/Unix Makefiles" | |
CMake Error: Error: generator : Ninja | |
Does not match the generator used previously: Unix Makefiles | |
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory. |
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
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="D:\Applications\Scoop\apps\msys2\current\ucrt64" .. | |
make -j8 install |
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
PS4='+$BASH_SOURCE> ' BASH_XTRACEFD=7 bash -xl 7>&2 | |
## or | |
PS4='+$BASH_SOURCE> ' BASH_XTRACEFD=7 bash -xl 7>/tmp/$(uuidgen) |