Stay Hungry,Stay Foolish!

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 32 下一页
摘要: C - Socks 2 https://atcoder.jp/contests/abc334/tasks/abc334_c 思路 前后缀方法: https://zhuanlan.zhihu.com/p/673837822 其中给出了证明: 1. 对于成对的袜子参不参与凑对匹配,不影响总的色差 2. 阅读全文
posted @ 2023-12-30 19:00 lightsong 阅读(53) 评论(0) 推荐(0)
摘要: PromQL https://prometheus.io/docs/prometheus/latest/querying/basics/ Cheat sheet and Online https://promlabs.com/promql-cheat-sheet/ https://demo.prom 阅读全文
posted @ 2023-12-23 23:21 lightsong 阅读(46) 评论(0) 推荐(0)
摘要: SQLAlchemy scoped_session 本身 session 不是线程安全的。 https://docs.sqlalchemy.org/en/14/orm/contextual.html The object is the scoped_session object, and it re 阅读全文
posted @ 2023-12-22 10:59 lightsong 阅读(51) 评论(0) 推荐(0)
摘要: Prometheus Python client library. http://prometheus.github.io/client_python/ Example https://pbrissaud.github.io/suivi-bourse/ 用户场景没有价值,此项目以全栈的视角实现了自定 阅读全文
posted @ 2023-12-19 23:17 lightsong 阅读(77) 评论(0) 推荐(0)
摘要: D - Erase Leaves https://atcoder.jp/contests/abc333/tasks/abc333_d 思路 把这个图看成一棵树, 1作为树根, 统计 1树根关联的 子节点作为根的子树的总节点数, 去除 子树中总节点数最大子的 子树, 其它子树的总节点 记做贡献, 最后 阅读全文
posted @ 2023-12-16 22:26 lightsong 阅读(70) 评论(0) 推荐(0)
摘要: C - Repunit Trio https://atcoder.jp/contests/abc333/tasks/abc333_c 思路 N=333时候, repunit最长12位, 三重遍历 repunit 做和记录到vector中 最后对vector进行排序,取n值。 Code https:/ 阅读全文
posted @ 2023-12-16 22:19 lightsong 阅读(92) 评论(0) 推荐(0)
摘要: Jenkins-prometheus https://github.com/fanqingsong/Jenkins-prometheus/tree/master 1.Set up Jenkins, prometheus, grafana docker run -d --name jenkins -p 阅读全文
posted @ 2023-12-15 23:54 lightsong 阅读(114) 评论(0) 推荐(0)
摘要: redis-om-python https://github.com/redis/redis-om-python Redis OM Python makes it easy to model Redis data in your Python applications. Why Redis OM? 阅读全文
posted @ 2023-12-11 23:00 lightsong 阅读(120) 评论(0) 推荐(0)
摘要: abc.abstractmethod + property https://stackoverflow.com/questions/14671095/abc-abstractmethod-property import abc class FooBase(metaclass=abc.ABCMeta) 阅读全文
posted @ 2023-12-11 22:25 lightsong 阅读(28) 评论(0) 推荐(0)
摘要: Dependency injection framework https://python-dependency-injector.ets-labs.org/index.html Dependency Injector is a dependency injection framework for 阅读全文
posted @ 2023-12-10 18:32 lightsong 阅读(101) 评论(0) 推荐(0)
摘要: Using Redis with FastAPI https://developer.redis.com/develop/python/fastapi/ https://github.com/fanqingsong/fastapi-redis-tutorial FastAPI is a Python 阅读全文
posted @ 2023-12-06 22:46 lightsong 阅读(108) 评论(0) 推荐(0)
摘要: B - Buy One Carton of Milk https://atcoder.jp/contests/abc331/tasks/abc331_b 思路 dfs递归搜索, 按照依此按照三种策略: 6个一打 - cost S 8个一打 - cost M 12个一打 - cost L 递归到叶子节 阅读全文
posted @ 2023-12-04 22:21 lightsong 阅读(83) 评论(0) 推荐(0)
摘要: C - Sum of Numbers Greater Than Me https://atcoder.jp/contests/abc331/tasks/abc331_c 思路 由于 值 可以是重复的, 需要记录每出现的值 对应的位置 , 记录在 map<int, vector<int>> valpo 阅读全文
posted @ 2023-12-04 22:15 lightsong 阅读(35) 评论(0) 推荐(0)
摘要: E - Set Meal https://atcoder.jp/contests/abc331/tasks/abc331_e 思路 定义 vector<int> v[100005]; 对于 c d 对进行group操作, 得到每个ai dish 对应不可能的 bj dish的cost值的集合 对b 阅读全文
posted @ 2023-12-04 22:07 lightsong 阅读(34) 评论(0) 推荐(0)
摘要: fastapi-admin https://fastapi-admin-docs.long2ice.io/ 使用 TortoiseORM项目可以使用此库做admin管理。 fastapi-admin is a fast admin dashboard based on FastAPI and Tor 阅读全文
posted @ 2023-12-02 11:21 lightsong 阅读(431) 评论(0) 推荐(0)
摘要: forward proxy & reverse proxy https://zhuanlan.zhihu.com/p/163948996 https://netnut.io/forward-proxy-server/ Definition of a Forward Proxy Server One 阅读全文
posted @ 2023-11-29 22:30 lightsong 阅读(44) 评论(0) 推荐(0)
摘要: ELK monitor Jenkins jobs https://github.com/fanqingsong/jenkins-elk-docker 监控每一个jenkins jobs build日志, 全部容器化配置, jenkins容器产生日志文件 filebeat容器监控日志文件 logsta 阅读全文
posted @ 2023-11-22 00:02 lightsong 阅读(86) 评论(0) 推荐(0)
摘要: D - Good Tuple Problem https://atcoder.jp/contests/abc327/tasks/abc327_d 思路 - dfs染色判断 https://www.zhihu.com/question/292465499 判断二分图 的常见方法是染色法:用两种颜色,对 阅读全文
posted @ 2023-11-10 09:34 lightsong 阅读(97) 评论(1) 推荐(1)
摘要: D - ABC Puzzle https://atcoder.jp/contests/abc326/tasks/abc326_d Sample Input 1 Copy 5 ABCBC ACAAB Sample Output 1 Copy Yes AC..B .BA.C C.BA. BA.C. .. 阅读全文
posted @ 2023-11-08 21:22 lightsong 阅读(114) 评论(0) 推荐(0)
摘要: Store config in the environment https://12factor.net/config The twelve-factor app stores config in environment variables (often shortened to env vars 阅读全文
posted @ 2023-11-04 23:38 lightsong 阅读(201) 评论(0) 推荐(0)
摘要: uvicorn https://www.uvicorn.org/settings/ 此ASGI为开发者模式提供了,代码更改,自动加载功能。 此功能如何实现? 依赖两个库: watchfiles importlib Development¶ --reload - Enable auto-reload. 阅读全文
posted @ 2023-10-29 22:57 lightsong 阅读(79) 评论(0) 推荐(0)
摘要: Strawberry https://fastapi.tiangolo.com/zh/how-to/graphql/ GraphQL with Strawberry¶ If you need or want to work with GraphQL, Strawberry is the recomm 阅读全文
posted @ 2023-10-24 23:19 lightsong 阅读(126) 评论(0) 推荐(0)
摘要: SQLAlchemy: What's the difference between flush() and commit()? https://pyquestions.com/sqlalchemy-what-s-the-difference-between-flush-and-commit A Se 阅读全文
posted @ 2023-09-12 16:57 lightsong 阅读(215) 评论(0) 推荐(0)
摘要: A - Full Moon https://atcoder.jp/contests/abc318/tasks/abc318_a Problem Statement Takahashi likes full moons. Let today be day 1. The first day on or 阅读全文
posted @ 2023-09-03 17:03 lightsong 阅读(45) 评论(0) 推荐(0)
摘要: Linux time command https://linuxize.com/post/linux-time-command/ 粗略分析整个程序的耗时情况。 time wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.9.ta 阅读全文
posted @ 2023-08-26 10:33 lightsong 阅读(103) 评论(0) 推荐(0)
摘要: gdb https://sourceware.org/gdb/ What is GDB? GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it execu 阅读全文
posted @ 2023-08-25 23:51 lightsong 阅读(81) 评论(0) 推荐(0)
摘要: Using JobDSL and Jenkinsfiles to fully automate Jenkins job management 非常贴切的一个比喻 JobDSL 做Job管理的框架, 负责Job基本参数配置 Pipeline 做Job逻辑内容的容器,决定Job执行逻辑。 By usin 阅读全文
posted @ 2023-08-09 17:21 lightsong 阅读(391) 评论(0) 推荐(0)
摘要: 概念 https://zhuanlan.zhihu.com/p/92920381 树状数组(Binary Indexed Tree, 又Fenwick Tree)其实并不是一棵树,只是对数组各元素进行逻辑上的划分。根据维基百科,树状数组是一种用于高效计算数列前缀和的数据结构,它可以以O(logn)的 阅读全文
posted @ 2023-07-11 22:33 lightsong 阅读(19) 评论(0) 推荐(0)
摘要: openldap https://github.com/osixia/docker-openldap/tree/master Run OpenLDAP docker image: docker run --name my-openldap-container --detach osixia/open 阅读全文
posted @ 2023-07-10 00:21 lightsong 阅读(69) 评论(0) 推荐(0)
摘要: Environment variables precedence https://docs.docker.com/compose/environment-variables/envvars-precedence/ The order of precedence (highest to lowest) 阅读全文
posted @ 2023-07-10 00:07 lightsong 阅读(43) 评论(0) 推荐(0)
摘要: Is Docker-Compose Suited For Production? https://vsupalov.com/docker-compose-production/ Hidden Assumptions Production means different things to diffe 阅读全文
posted @ 2023-07-09 23:50 lightsong 阅读(13) 评论(0) 推荐(0)
摘要: Running Docker Containers as Non-Root User https://www.geeksforgeeks.org/running-docker-containers-as-non-root-user/ By default, Docker Containers run 阅读全文
posted @ 2023-07-09 21:24 lightsong 阅读(56) 评论(0) 推荐(0)
摘要: SIGHUP https://www.gnu.org/software/libc/manual/html_node/Termination-Signals.html hang up容易让人联想到进程挂起, 实际上这个挂起,是终端挂起。 Macro: int SIGHUP The SIGHUP (“h 阅读全文
posted @ 2023-07-04 15:13 lightsong 阅读(47) 评论(0) 推荐(0)
摘要: prometheus https://prometheus.io/ 为云监控而生 From metrics to insightPower your metrics and alerting with the leadingopen-source monitoring solution. Prome 阅读全文
posted @ 2023-07-03 17:10 lightsong 阅读(87) 评论(0) 推荐(0)
摘要: LDAP federation 官网 https://www.keycloak.org/docs/latest/server_admin/#_ldap Keycloak includes an LDAP/AD provider. You can federate multiple different 阅读全文
posted @ 2023-07-02 19:58 lightsong 阅读(229) 评论(0) 推荐(0)
摘要: prometheus https://prometheus.io/ From metrics to insight Power your metrics and alerting with the leadingopen-source monitoring solution. 架构 https:// 阅读全文
posted @ 2023-06-29 14:43 lightsong 阅读(45) 评论(0) 推荐(0)
摘要: systemd https://systemd.io/ System and Service Manager systemd is a suite of basic building blocks for a Linux system. It provides a system and servic 阅读全文
posted @ 2023-06-21 23:31 lightsong 阅读(150) 评论(0) 推荐(0)
摘要: OpenStack https://docs.openstack.org/install-guide/get-started-with-openstack.html The OpenStack project is an open source cloud computing platform fo 阅读全文
posted @ 2023-06-20 15:50 lightsong 阅读(54) 评论(0) 推荐(0)
摘要: RBAC和ABAC https://www.jianshu.com/p/107c50720a6f 面向目标机器的资源。 什么是RBAC? RBAC.png 比如当用户登录某财务管理系统的时候,允许哪些用户访问编辑哪些菜单,允许访问编辑哪些商品资源等,决定这些权限都取决于用户是哪个角色。 在RBAC, 阅读全文
posted @ 2023-06-18 23:37 lightsong 阅读(183) 评论(0) 推荐(0)
摘要: An Introduction to Kaniko https://www.baeldung.com/ops/kaniko Kaniko is a tool to build container images from a Dockerfile. Unlike Docker, Kaniko does 阅读全文
posted @ 2023-06-18 23:08 lightsong 阅读(54) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 32 下一页
千山鸟飞绝,万径人踪灭