Sep 13, 2022
GitHub - sieve-project/sieve: Automatic Reliability Testing for Kubernetes Controllers
The Kubernetes ecosystem has thousands of controller implementations for different applications and platform capabilities. A controller's correctness is critical as it manages the application's deployment, scaling and configurations. However, a controller's correctness can be compromised by myriad factors, such as asynchrony, unexpected failures, networking issues, and controller restarts.
Jul 18, 2022
Welcome to Bunch
Bunch is free, so I can't offer you any special discounts or prizes. I can say thank you for checking it out, though! Your new favorite Mac automation tool Bunch is a macOS automation tool that takes a folder of plain text files containing lists of apps and commands to launch and provides an easy-to-use menu for triggering them.
Apr 25, 2022
K8S resource manifest校验工具
GitHub - instrumenta/kubeval: Validate your Kubernetes configuration files, supports multiple Kubernetes versions
kubeval is a tool for validating a Kubernetes YAML or JSON configuration file. It does so using schemas generated from the Kubernetes OpenAPI specification, and therefore can validate schemas for multiple versions of Kubernetes. $ kubeval my-invalid-rc.yaml WARN - fixtures/my-invalid-rc.yaml contains an invalid ReplicationController - spec.replicas: Invalid type.
Infra as Code
Pulumi - Modern Infrastructure as Code
All architectures welcome Choose from over 60 cloud providers, including public, private, and hybrid architectures. Modernize your approach Adopt serverless, containers, and managed services, and bring them closer to development. Adopt Kubernetes Get up and running with clusters, supporting infrastructure, and application workloads.
GitHub - nelhage/reptyr: Reparent a running program to a new terminal
reptyr is a utility for taking an existing running program and attaching it to a new terminal. Started a long-running process over ssh, but have to leave and don't want to interrupt it? Just start a screen, use reptyr to grab it, and then kill the ssh session and head on home.
Apr 24, 2022
git quick stats命令
GitHub - arzzen/git-quick-stats: ▁▅▆▃▅ Git quick statistics is a simple and efficient way to access various statistics in git repository.
git-quick-stats is a simple and efficient way to access various statistics in a git repository. Any git repository may contain tons of information about commits, contributors, and files. Extracting this information is not always trivial, mostly because there are a gadzillion options to a gadzillion git commands - I don't think there is a single person alive who knows them all.
Apr 22, 2022
Starship: Cross-Shell Prompt
The minimal, blazing-fast, and infinitely customizable prompt for any shell! Get Started → Works on the most common shells on the most common operating systems. Use it everywhere! Brings the best-in-class speed and safety of Rust, to make your prompt as quick and reliable as possible.
Apr 21, 2022
SecurityZines are new way of learning security concepts, check the collection of Zines down below. You can get them all in a bundle or individually. But why should you read it ? Because, its proven that graphics has more persistent memory than reading.
GitHub - bloomberg/memray: Memray is a memory profiler for Python
Memray is a memory profiler for Python. It can track memory allocations in Python code, in native extension modules, and in the Python interpreter itself. It can generate several different types of reports to help you analyze the captured memory usage data.
支持UDP, TCP, DoT, DoH, DoQ, ODoH的DNS查询命令行
Apr 20, 2022
tRPC: typesafe APIs for your Next, React, and Node applications
Stop building REST APIs for your Next.js apps, use tRPC instead - Brock Herion
When I first started developing full-stack applications, I was building and managing my own REST APIs. I began with building them in Java with Spring, then moved over to .NET, then to Node with Express, and even dabbled in a little bit of Django.
faster e2e test with firecraker
How to run end-to-end tests 10x faster with firecracker
When you make changes to code in a repository, you usually want to make sure that you haven't broken core user flows like the sign up button. To automatically check nothing is broken, people usually start a copy of their app within their CI pipeline and then run test browsers to click around.
Apr 19, 2022
Apr 17, 2022
Apr 12, 2022
Go mod's lesser known features
Modules are how Go manages dependencies. A module is a collection of packages that are released, versioned, and distributed together. Each package within a module is a collection of source files in the same directory that are compiled together. In this post, we will explore Go mododules design and learn how they support supply chain security.
使用WASM在浏览器中运行全功能的classic 68K Mac操作系统
It's a golden age of emulation. Between increasing CPU power, WebAssembly, and retrocomputing being so popular The New York Times is covering it, it's never been easier to relive your 80s/90s/2000s nostalgia. Projects like v86 make it easy to run your chosen old operating system in the browser.
Apr 11, 2022
The Illustrated TLS 1.2 Connection
The server now has the information to calculate the encryption keys that will be used by each side. It uses the following information in this calculation: server random (from Server Hello) client random (from Client Hello) client public key (from Client Key Exchange) server private key (from Server Key Generation) The server multiplies the client's public key with the server's private key using the curve25519() algorithm.
GitHub - danny0838/content-farm-terminator: 「終結內容農場」瀏覽器套件 / Content Farm Terminator browser extension
本瀏覽器套件可以協助使用者辨識及反制內容農場，她有以下功能： 自動偵測前往內容農場的連結並加以標示，讓你在第一時間避開內容農場，同時免於將點擊數回饋給搜尋引擎。 在即將進入內容農場時予以封鎖，讓你能及時離開。 若真的很想看一下被封鎖的頁面，可點擊「檢視」瀏覽去除廣告與程式碼的網頁內容，如此既能滿足好奇心又能封鎖內容農場的收益。 可自訂黑名單及白名單，也能從網路上取得黑名單。 可透過右鍵選單將超連結或選取文字對應的網域快速加入黑名單。 本套件支援 Firefox 桌面版和手機版以及 Chromium 系瀏覽器，主要參考「封鎖內容農場」（ Chrome 版、 Firefox 版 ）重製而成，並借鑑及整合了以下類似工具的主要功能與封鎖名單： 本套件版本更新記錄詳見 這裡；預設及其他網路黑名單可參考 這裡；也可以填寫 這份表單 舉報新的內容農場。
Apr 10, 2022
GitHub - isl-org/OpenBot: OpenBot leverages smartphones as brains for low-cost robots. We have designed a small electric vehicle that costs about $50 and serves as a robot body. Our software stack for Android smartphones supports advanced robotics workloads such as person following and real-time autonomous navigation.
OpenBot leverages smartphones as brains for low-cost robots. We have designed a small electric vehicle that costs about $50 and serves as a robot body. Our software stack for Android smartphones supports advanced robotics workloads such as person following and real-time autonomous navigation. - GitHub - isl-org/OpenBot: OpenBot leverages smartphones as brains for low-cost robots.
Happy to announce Digma!
Digma is a new Developer Observability playform providing continuous feedback and analytics from OpenTelemetry and other sources. Join our beta waitlist!
GitHub - Byron/gitoxide: An idiomatic, lean, fast & safe pure Rust implementation of Git
gix is a command-line interface ( CLI) to access git repositories. It's written to optimize the user-experience, and perform as good or better than the canonical implementation. Furthermore it provides an easy and safe to use API in the form of various small crates for implementing your own tools in a breeze.
Apr 8, 2022
GitHub - Louis3797/awesome-readme-template: An awesome README template for your projects!
Color Hex Primary Color #222831 Secondary Color #393E46 Accent Color #00ADB5 Text Color #EEEEEE To run this project, you will need to add the following environment variables to your .env file ANOTHER_API_KEY This project uses Yarn as package manager npm install --global yarn Install my-project with npm yarn install my-project cd my-project To run tests, run the following command Clone the project git clone https://github.com/Louis3797/awesome-readme-template.git Go to the project directory Install dependencies Start the server To deploy this project run Use this space to tell a little more about your project and how it can be used.
Apr 6, 2022
GitHub - AssemblyScript/assemblyscript: A TypeScript-like language for WebAssembly.
A TypeScript-like language for WebAssembly. Contribute to AssemblyScript/assemblyscript development by creating an account on GitHub.
Mactracker provides detailed information on every Apple Macintosh, iPod, iPhone, and iPad ever made, including items such as processor speed, memory, graphic cards, supported OS versions, price, storage, and expansion options. Also included is information on early Apple systems, Newton, Apple TV, Ap...
Apr 4, 2022
Apr 3, 2022
Blog Search Engine
Your mental model when searching for X should be "I want to see the best essays on X". Blog Surf only indexes personal blogs and newsletters. The vast majority of blogs are a single individual writing. There are no large media publications.
Python 3.11 in the Web Browser - A Journey Christian Heimes PyConDE & PyDataBerlin 2022 conference
PyConDE & PyData Berlin 2022, Berlin Germany. Where Pythonistas in Germany can meet to learn about new and upcoming Python libraries, tools, software and data science.
Figure out your plans with real-time calendar editing, suggestions, voting, link sharing, and external calendar integration.
GitHub - kognise/arpchat: Answering the question nobody asked: what if you wanted to text your friends using only ARP?
so... you know arp? the protocol your computer uses to find the mac addresses of other computers on your network? yeah. that. i thought it would be a great idea to hijack it to make a chat app :) built in two days because i was sick and had nothing better to do.
Never Google a Terminal command again
Always Googling those pesky Terminal commands? Use AI to find the commands for you from within the command line.
I built a receipt printer for GitHub issues
I have a lot of side projects on GitHub. Some of them are kind of popular, and I tend to get issues posted from time to time. The problem though is that usually they kind of get lost in the mix of my emails, or I forget to go through my repos and add new items to my todo list.
Apr 2, 2022
Apr 1, 2022
GitHub - SwiftLaTeX/SwiftLaTeX: SwiftLaTeX, a WYSIWYG Browser-based LaTeX Editor
Demo Website https://www.swiftlatex.com SwiftLaTeX, LaTeX Engines in Browsers with optional WYSIWYG support. We are a big fan of WebAssembly and all computation is done locally. Speed. SwiftLaTeX engines run in browsers, all computation is done strictly locally. Library Support. Simply include a script tag and use PdfTeX or XeTeX in your own webpage.
Mar 31, 2022
GitHub - rubrikinc/wachy: A UI for eBPF-based performance debugging
A dynamic tracing profiler for Linux Wachy provides a UI for interactive eBPF-based userspace performance debugging. For an overview, see the website: https://rubrikinc.github.io/wachy/. For background see the introductory blog post. For more details see the guide.
Mar 30, 2022
GitHub - google/go-containerregistry: Go library and CLIs for working with container registries
This is a golang library for working with container registries. It's largely based on the Python library of the same name. The following diagram shows the main types that this library handles. The overarching design philosophy of this library is to define interfaces that present an immutable view of resources (e.g.
GitHub - muesli/beehive: A flexible event/agent & automation system with lots of bees 🐝
Beehive is an event and agent system, which allows you to create your own agents that perform automated tasks triggered by events and filters. It is modular, flexible and really easy to extend for anyone.
Magic Eraser - Use AI to remove unwanted things from images in seconds
Magic Eraser - Use AI to remove unwanted things from images in seconds. Upload an image, mark the bit you need removed, download the fixed up image.
Mar 28, 2022
promQL language server
GitHub - prometheus-community/promql-langserver: PromQL language server
Implementation of the Language Server Protocol for PromQL. A Language Server on its own is not very useful. You need some Language Client to use it with. The following Language Clients have been tested with this language server. More will be added in the future.
Mar 27, 2022
Data Mesh Architecture
Many organizations have invested in a central data lake and a data team with the expectation to drive their business based on data. However, after a few initial quick wins, they notice that the central data team often becomes a bottleneck. The team cannot handle all the analytical questions of management and product owners quickly enough.
Smort.io | Edit, annotate and share articles
Edit an article using Markdown and also undo and redo edits. Select and highlight text. Share edited articles with a unique link, valid for 7 days from creation.Permanent links are coming soon! Customize the font size, style and background theme. Easily navigate long articles.No more frantically scrolling to find out where you are in an article.
Faster. Better. More focused. Reading.
A warm "Grüezi" from Switzerland. My name is Renato. I am the founder and creator of Bionic Reading. It gives me great pleasure to introduce myself shortly, because we are developing a product for you. For people of all colors. And thats why its only right and important for us to let you know who's behind the product.
Warp-The blazingly fast, Rust-based terminal
Warp is a blazingly fast, Rust-based terminal built to make you and your team more productive at coding and DevOps.
Mar 26, 2022
GitHub - unocss/unocss: The instant on-demand atomic CSS engine.
The instant on-demand Atomic CSS engine. 💡 I highly recommend reading this blog post - Reimagine Atomic CSS for the story behind 🤹♂️ Online Playground Inspired by Windi CSS, Tailwind CSS, Twind but: 11/5/2021, 4:26:57 AM 1656 utilities | x50 runs (min build time) none 8.30 ms / delta.
Mar 25, 2022
GitHub - gliderlabs/ssh: Easy SSH servers in Golang
The Glider Labs SSH server package is dope. -@bradfitz, Go team member This Go package wraps the crypto/ssh package with a higher-level API for building SSH servers. The goal of the API was to make it as simple as using net/http, so the API is very similar: This package was built by @progrium after working on nearly a dozen projects at Glider Labs using SSH and collaborating with @shazow (known for ssh-chat).
使用SSH Server作为git仓库命令行浏览器，该组织致力于SSH Server应用的开发
GitHub - charmbracelet/soft-serve: A tasty, self-hostable Git server for the command line🍦
A tasty, self-hostable Git server for the command line. 🍦 Configure with git Create repos on demand with git push Browse repos, files and commits with an SSH-accessible TUI Print files over SSH with or without syntax highlighting and line numbers Easy access control Allow/disallow anonymous access Add collaborators with SSH public keys Repos can be public or private Just run ssh git.charm.sh for an example.
GitHub - ajeetdsouza/clidle: Play Wordle over SSH.
Try it: Or, run it locally: You have 6 attempts to guess the correct word. Each guess must be a valid 5 letter word. After submitting a guess, the letters will turn green, yellow, or gray. Green: The letter is correct, and is in the correct position.
Elestio: Fully Managed Open source
The easiest way to run Open-source software. Deploy any one of over 150 supported software on a dedicated instance in less than 3 minutes. You can relax knowing that we are taking care of installation, configuration, encryption, backups, software & OS updates, live monitoring...and more!
GitHub - google/ko: Build and deploy Go applications on Kubernetes
ko is a simple, fast container image builder for Go applications. It's ideal for use cases where your image contains a single Go application without any/many dependencies on the OS base image (e.g., no cgo, no OS package dependencies). ko also includes support for simple YAML templating which makes it a powerful tool for Kubernetes applications ( See below).
Mar 24, 2022
GitHub - linuxkit/linuxkit: A toolkit for building secure, portable and lean operating systems for containers
LinuxKit, a toolkit for building custom minimal, immutable Linux distributions.
GitHub - phuctm97/shell.how: Explain shell commands using next-generation autocomplete Fig.
Explain shell commands using next-generation autocomplete from Fig.
GitHub - openshift/imagebuilder: Builds Dockerfile using the Docker client (with squashing! and secrets!)
Please test your images (and add to our conformance suite)! This library supports using the Dockerfile syntax to build OCI & Docker compatible images, without invoking a container build command such as buildah bud or docker build.
GitHub - jpochyla/psst: Fast and multi-platform Spotify client with native GUI
Fast Spotify client with native GUI, without Electron, built in Rust. Very early in development, lacking in features, stability, and general user experience. It is being tested only on Mac so far, but aims for full Windows and Linux support. Contributions welcome! Note: Spotify Premium account is required.
GitHub - sevlyar/go-daemon: A library for writing system daemons in golang.
Library for writing system daemons in Go. Now supported only UNIX-based OS (Windows is not supported). But the library was tested only on Linux and OSX, so that if you have an ability to test the library on other platforms, give me feedback, please (#26). Please, feel free to send me bug reports and fixes.
Mar 22, 2022
Devhints - TL;DR for developer documentation
A ridiculous collection of web development cheatsheets · One-page guide to
How NAT traversal works
We covered a lot of ground in our post about How Tailscale Works . However, we glossed over how we can get through NATs (Network Address Translators) and connect your devices directly to each other, no matter what's standing between them. Let's talk about that now!
[译] NAT 穿透是如何工作的：技术原理及企业级实践（Tailscale, 2020）
本文翻译自 2020 年的一篇英文博客： How NAT traversal works 。 既然二者都能访问公网，那最简单的方式当然是在公网上架设一个中继服务器： 两台机器分别连接到中继服务，后者完成双向转发。这种方式显然有很大的性能开销，而 且中继服务器很容易成为瓶颈。 有没有办法不用中继，让两台机器直接通信 呢？ 由于译者水平有限，本文不免存在遗漏或错误之处。如有疑问，请查阅原文。 以下是译文。 在前一篇文章 How Tailscale Works 中， 我们已经用较长篇幅介绍了 Tailscale 是如何工作的。但其中并没有详细描述我们是如何穿透 NAT 设备，从而实现终端设备直连的 -- 不管这些终端之间 有什么设备（防火墙、NAT 等），以及有多少设备。本文试图补足这一内容。 全球 IPv4 地址早已不够用，因此人们发明了 NAT（网络地址转换）来缓解这个问题。 简单来说，大部分机器都使用私有 IP 地址 ，如果它们需要访问公网服务，那么， 出向流量：需要经过一台 NAT 设备，它会对流量进行 SNAT，将私有 srcIP+Port 转 换成 NAT 设备的公网 IP+Port（这样应答包才能回来），然后再将包发出去； 应答流量（入向）：到达 NAT 设备后进行相反的转换，然后再转发给客户端。
GitHub - juanfont/headscale: An open source, self-hosted implementation of the Tailscale control server
An open source, self-hosted implementation of the Tailscale control server. Join our Discord server for a chat. Note: Always select the same GitHub tag as the released version you use to ensure you have the correct example configuration and documentation. The main branch might contain unreleased changes.
Mar 21, 2022
Mar 20, 2022
Mar 19, 2022
GitHub - timescale/promscale: The open-source observability backend for metrics and traces powered by SQL 🚀
Promscale is an open source observability backend for metrics and traces powered by SQL. It's built on the robust and high-peformance foundation of PostgreSQL and TimescaleDB. It has native support for Prometheus metrics and OpenTelemetry traces as well as many other formats like StatsD, Jaeger and Zipkin through the OpenTelemetry Collector and is 100% PromQL compliant.
Mar 18, 2022
Monorepos are hot right now, especially among Web developers. We created this resource to help developers understand what monorepos are, what benefitsthey can bring, and the tools available to make monorepo development delightful. There are many great monorepo tools, built by great teams, with different philosophies.
Mar 17, 2022
GitHub - TypeStrong/ts-node: TypeScript execution and REPL for node.js
TypeScript execution and REPL for node.js. Contribute to TypeStrong/ts-node development by creating an account on GitHub.
GitHub - LunarVim/LunarVim: An IDE layer for Neovim with sane defaults. Completely free and community driven.
You can find all the documentation for LunarVim at lunarvim.org Make sure you have the release version of Neovim (0.6.1+). bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/install.sh) To run the install script without any interaction you can pass the -y flag to automatically install all dependencies and have no prompts.
GitHub - nusu/avvvatars: Beautifully crafted unique avatar placeholder for your next react project
Beautifully crafted unique avatar placeholder for your next react project Lightweight and customizable ❤️ Built by Nusu Alabuga and Oguz Yagiz Kara 🙏 Special thanks to Monika Michalczyk for awesome shapes 🙏 🌈 40 Colors - Colors are so on point that most of the projects can use it without changing it 💠 60 Shapes - Beautifully crafted shapes that are unique to your user with color combination 🆎 Text or Shapes 🔸 - Use letters (eg.
Mar 16, 2022
WAPM - WebAssembly Package Manager
- project euler
Mar 15, 2022
Mar 14, 2022
GitHub - uber/prototool: Your Swiss Army Knife for Protocol Buffers
Update: We recommend checking out Buf, which is under active development. There are a ton of docs for getting started, including for migration from Prototool. Protobuf is one of the best interface description languages out there - it's widely adopted, and after over 15 years of use, it's practically bulletproof.
Mar 13, 2022
ZEN and the art of Reliability
Zendesk handles approximately 250,000 requests per second at daily peak into our infrastructure, with over ½ of those requests needing to read or write to a database. At our core we're a humble Ruby on Rails application that is partitioned and heavily sharded.
Pockit: A tiny, powerful, modular computer (2022 demo)
Project details + signup at https://pockit.aiA demo of modular electronics with Pockit as of early 2022, after several upgrades in the recent months based on...
使用zig作为跨平台 C 工具链
C++20 中的编译时 Wordle
wordlexpr: compile-time wordle in c++20
It felt wrong to not participate in the Wordle craze, and what better way of doing so than by creating a purely compile-time version of the game in C++20? I proudly present to you... Wordlexpr! (You can play Wordlexpr on Compiler Explorer.) Carry on reading to understand the magic behind it!
GitHub - RustPython/RustPython: A Python Interpreter written in Rust
A Python-3 (CPython >= 3.10.0) Interpreter written in Rust 🐍 😱 🤘. Check out our online demo running on WebAssembly. RustPython requires Rust latest stable version (e.g 1.43.0 at May 24th 2020). To check Rust version: rustc --version If you wish to update, rustup update stable.
Mar 11, 2022
图数据库体操：用 Nebula Graph 搭成语图谱解汉兜
我发现用 Nebula Graph 的图查询解 Antfu 的汉兜（最好的中文成语版 wordle 👉🏻 handle.antfu.me）特别有意思，很适合每天写图库语句的体操练习，本文揭示如何用知识图谱 作弊 解汉兜😁 汉兜（https://handle.antfu.me）是由 Vue/Vite 核心团队的 Antfu 的又一个非常酷的作品，一个非常精致的汉字版的 Wordle，他是是一个每日挑战的填字游戏的中文成语版。 每天，汉兜会发起一个猜成语挑战，人们要在十次内才对它才能获胜，每一步之后都会收到相应的文字、声母、韵母、声调的匹配情况的提示，其中：绿色表示这个因素存在并且位置匹配、橘色表示这个元素存在但是位置不对，详细的规则可见如下的网页截图： 汉兜的乐趣就我们在于在有限的尝试过程中，在大脑中搜寻可能的答案，不断去逼近真理，任何试图作弊、讨巧去泄漏结果的行为都是很无趣、倒胃口的（比如从开源的汉兜代码里窃取信息），这个过程就像在做大脑的体操。 说到大脑的成语词汇量体操，我突然想到，为什么我们不能在大脑之外造一个汉语成语知识图谱，然后基于这个图谱去做图数据库查询语法体操呢？ 简单来说，知识图谱是一个连接实体之间关联关系的网络，它最初由 Google 提出并用来满足搜索引擎中基于知识推理才可获得（而不是网页倒排索引）的搜索问题，比如："姚明妻子的年龄？"、"火箭队得过几次总冠军？" 这里边，我们关注的条件。到 2022 年的现在，知识图谱已经被广泛应用在推荐系统、问答系统、安全风控等等更多搜索之外的领域。 原因就是：because I can 实际上，我们在大脑中解决字谜游戏的过程像极了图谱网络中的信息搜寻的过程，汉兜的解谜反馈提示条件天然适合被用图谱的语义来进行表达。在本文后边，你们会发现解谜条件翻译成图语义是非常非常自然的，这个问题就像是一个天然的为图谱而存在的练习一样，我相信这和知识图谱的结构和人脑中的知识结构非常接近有很大的关系。 知识图谱是由实体（顶点）和关系（边）组成的，用图数据库管理系统（Graph Database MS）可以很方便进行知识的入库、更改、查询、甚至可视化探索。 在本文里，我将利用开源的分布式图数据库 Nebula Graph 开实践这个过程，具体图谱系统的搭建我都会放在文末。 在本章，我们只讨论图谱的建模：如何面向汉兜的解谜去设计"实体"与"关系"。 首先，一定存在的实体是： 成语-[包含]->汉字，每个汉字-[读作]->读音。 其次，因为解谜过程中涉及到了声母、韵母以及声调的条件，考虑到图谱本身的量级非常小（千级别），而且字的读音是一对多的关系，我把读音和声母（包涵声母-initial和韵母-final）也作为实体，他们之间的关系则是顺理成章了： 然而，我在后边基于图谱进行查询的时候发现最初的建模会使得(成语)->(字)->(读音)查询过程中丢失了这个字特定的读法的条件，所以我最终的建模是： 这样，纯文字的条件只涉及了(成语)-->(字) 这一跳，而读音、声母、声调的条件则是另一条关系路径，既没有最初版本条件的冗余，又可以在一个路径模式匹配里带上两种条件（后边的例子里会涉及这样的表达）。 有了建模、这么简单的图谱的构建就剩下了数据的收集、清洗和入库。 对于所有成语数据和他们的读音，我一方面直接抽取了汉兜代码内部的 数据、另一方面利用 PyPinyin 这个开源的 Python 库将汉兜数据中没有读音的数据获得读音，同时，我也用到了 PyPinyin 里的很多方便的函数比如获取一个拼音的声母、韵母。 构建工具的代码在这里：https://github.com/wey-gu/chinese-graph 更多信息我也放在文末的附录之中。 至此，我假设咱们都已经有了我帮大家搭建的成语 作弊 知识图谱了，开始我们的图谱查询体操吧！ 首先，打开汉兜 👉🏻 https://handle.antfu.me/ 假设我们想从一个成语开始，如果你没有想法的话可以试试这个： 然后我们把它填到汉兜之中，获得第一次尝试的提示条件： 我们运气不错，得到了三个位置上的条件！ 有一个非第一个位置的字，拼音是 4 声，韵母是 ai，但不是爱（爱） 有一个一声的字，不在第二个位置（憎） 有一个字韵母是 ing，不在第四个位置（明） 第四个字是二声（明） 下面，我们开始图数据库语句体操！ 在图数据库之中运行，得到了 7 个答案： 看起来 惊世骇俗 比较主流，试试！ 我们很幸运，借助于成语 作弊 ...
GitHub - tetratelabs/wazero: wazero lets you run WebAssembly modules with zero platform dependencies
wazero lets you run WebAssembly modules with zero platform dependencies. Since wazero doesn't rely on CGO, you keep portability features like cross compilation. Import wazero and extend your Go application with code written in any language! Here's an example of using wazero to invoke a factorial included in a Wasm binary.
Mar 10, 2022
Inotify in Containers
It is usually necessary to watch for any changes in file systems, both in development and in production modes. For example, in the development mode Webpack can watch files and recompile whenever they change; in the production mode Consul Template can watch runtime configs and invoke specific applications whenever they change.
Mar 8, 2022
使用kubectl port-forward作为ssh ProxyCommand
How to SSH to Kubernetes Pod with SSH ProxyCommand using socat
socat kubectl with proper ~/.kube/config that can connect to your cluster Working knowledge of kubectl client OpenSSH client kubectl does port forwarding to sshd port of your pod. I'm using pm2 process managed to keep my services alive in my workstation container.
Mar 7, 2022
GitHub - emirpasic/gods: GoDS (Go Data Structures). Containers (Sets, Lists, Stacks, Maps, Trees), Sets (HashSet, TreeSet, LinkedHashSet), Lists (ArrayList, SinglyLinkedList, DoublyLinkedList), Stacks (LinkedListStack, ArrayStack), Maps (HashMap, TreeMap, HashBidiMap, TreeBidiMap, LinkedHashMap), Trees (RedBlackTree, AVLTree, BTree, BinaryHeap), Comparators, Iterators, Enumerables, Sort, JSON
GoDS (Go Data Structures). Containers (Sets, Lists, Stacks, Maps, Trees), Sets (HashSet, TreeSet, LinkedHashSet), Lists (ArrayList, SinglyLinkedList, DoublyLinkedList), Stacks (LinkedListStack, ArrayStack), Maps (HashMap, TreeMap, HashBidiMap, TreeBidiMap, LinkedHashMap), Trees (RedBlackTree, AVLTree, BTree, BinaryHeap), Comparators, Iterators, Enumerables, Sort, JSON - GitHub - emirpasic/gods: GoDS (Go Data Structures).
Mar 6, 2022