Skip to content

Instantly share code, notes, and snippets.

View xx10n31y's full-sized avatar
🎯
Focusing

xxl0n31y xx10n31y

🎯
Focusing
  • Utopia
  • 20:31 (UTC +08:00)
View GitHub Profile
import requests
def eori(eori_number):
# 构建符合SOAP协议的XML消息
soap_request = f"""
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://eori.ws.eos.dds.s/">
<SOAP-ENV:Body>
<ns1:validateEORI>
<ns1:eori>{eori_number}</ns1:eori>
</ns1:validateEORI>
</SOAP-ENV:Body>
@xx10n31y
xx10n31y / settings.json
Created May 31, 2022 17:38
VSCode Markdown Snippets Not Working Solution
{
// ...
// https://github.com/Microsoft/vscode/issues/28048#issuecomment-306616235
"[markdown]":{
"editor.quickSuggestions": true
},
//...
}
@xx10n31y
xx10n31y / lunch.json
Last active May 30, 2022 15:49
Visual Studio Code Configure C/C++ Compiler
### references
- https://zhuanlan.zhihu.com/p/87864677
- https://blog.csdn.net/qq_24546137/article/details/116922789
@xx10n31y
xx10n31y / resolve_timeout.php
Created July 29, 2021 06:31
PHP PCNTL Alarm Simple Demo
<?php
/**
* @references
* https://www.php.cn/php-weizijiaocheng-432036.html
* https://www.jianshu.com/p/139b0e43ef3f
* https://zhuanlan.zhihu.com/p/217622103
* https://segmentfault.com/q/1010000000751497
*/
@xx10n31y
xx10n31y / ssl.conf
Created April 15, 2020 03:04 — forked from VirtuBox/ssl.conf
Nginx SSL/TLS configuration with TLSv1.2 and TLSv1.3 - ECDHE and strong ciphers suite (Openssl 1.1.1)
##
# SSL Settings (TLSv1.2 and TLSv1.3)
##
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers 'TLS13+AESGCM+AES128:EECDH+AES128';
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:50m;
ssl_session_timeout 1d;
ssl_session_tickets off;
ssl_ecdh_curve X25519:sect571r1:secp521r1:secp384r1