摘要: 配置代理 # set proxy gitconfigglobalhttp.proxyhttp://<>:<>@<>:<> git config --global https.proxy https://<账号>:<密码>@<主机>:<端口> # check pro 阅读全文
posted @ 2023-10-07 16:53 LexLuc 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 1. 下载二进制压缩包 https://www.enterprisedb.com/download-postgresql-binaries 2. 解压后在压缩包的bin目录下执行初始化DB命令 initdb.exe -D .\data -U pguser -W -E UTF8 -A scram-sh 阅读全文
posted @ 2023-09-11 16:27 LexLuc 阅读(277) 评论(0) 推荐(0) 编辑
摘要: # 关键信息记录 ## 1. 在WSL实测`nc`可实现代理流量转发 ``` ssh -i key.pem @ -o "ProxyCommand=nc -X connect -x : %h %p" ``` ## 2. windows无法使用`nc`,通过修改 VS-Code Remote-SSH 插 阅读全文
posted @ 2023-09-02 14:53 LexLuc 阅读(512) 评论(0) 推荐(0) 编辑
摘要: # 优化TF ## TF衰减 > 思考一个问题:一篇文档,里面有提到200次RedCap,一定是2倍相关于另一篇提到100次RedCap吗? TF对匹配度的贡献应该是有所衰减的。如何控制衰减曲线的陡峭程度?构造TF衰减的匹配度函数的一个trick是引入参数k: $$ {TF}^\prim 阅读全文
posted @ 2023-08-18 16:22 LexLuc 阅读(361) 评论(0) 推荐(0) 编辑
摘要: ```bash sudo apt-get install openssl cd /etc/nginx sudo mkdir ssl sudo openssl req -batch -x509 -nodes -days 365 \ -newkey rsa:2048 \ -keyout /etc/ngi 阅读全文
posted @ 2023-07-18 02:00 LexLuc 阅读(12) 评论(0) 推荐(0) 编辑
摘要: ```python import time from py2neo import Graph from config.neo4j_config import NEO4J_CONFIG_PRO # NEO4J_CONFIG_PRO = { # "host": "x.x.x.x", # "port": 阅读全文
posted @ 2023-07-11 22:20 LexLuc 阅读(75) 评论(0) 推荐(0) 编辑
摘要: ```python # -*-coding:utf-8 -*- import redis from config.redis_config import CACHE_REDIS_CONF # CACHE_REDIS_CONF = { # "host": "x.x.x.x", # "port": ?? 阅读全文
posted @ 2023-07-11 22:17 LexLuc 阅读(8) 评论(0) 推荐(0) 编辑
摘要: ```python class MySqlClient: def __init__(self, db_name: str): self._conn = pymysql.connect(host=MYSQL_CONFIG['host'], port=MYSQL_CONFIG['port'], user 阅读全文
posted @ 2023-07-11 22:12 LexLuc 阅读(4) 评论(0) 推荐(0) 编辑
摘要: ``` # requirement.txt happybase==1.2.0 ``` ```python """ hbase.py """ # -*- coding: utf-8 -*- import happybase from config.hbase_config import HAPPYBA 阅读全文
posted @ 2023-07-11 22:07 LexLuc 阅读(10) 评论(0) 推荐(0) 编辑
摘要: ```python # -*- coding: utf-8 -*- import os import sys import shutil from time import perf_counter from collections import defaultdict from datetime i 阅读全文
posted @ 2023-07-11 21:41 LexLuc 阅读(10) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示