https://moox.io/blog/keep-in-sync-git-repos-on-github-gitlab-bitbucket/
// ==UserScript== | |
// @name Restore YouTube Scrollbar | |
// @namespace Violentmonkey Scripts | |
// @match https://www.youtube.com/* | |
// @grant none | |
// @version 1.0 | |
// @author https://github.com/lassekongo83 | |
// @description Make YouTube use your browser's default scrollbar | |
// ==/UserScript== |
Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.
This is just a picture of this link from March 2, 2019
Originally, I had included some other solution
The following are examples of the four types rate limiters discussed in the accompanying blog post. In the examples below I've used pseudocode-like Ruby, so if you're unfamiliar with Ruby you should be able to easily translate this approach to other languages. Complete examples in Ruby are also provided later in this gist.
In most cases you'll want all these examples to be classes, but I've used simple functions here to keep the code samples brief.
This uses a basic token bucket algorithm and relies on the fact that Redis scripts execute atomically. No other operations can run between fetching the count and writing the new count.
➜ ~ sw_vers | |
ProductName: Mac OS X | |
ProductVersion: 10.12.1 | |
BuildVersion: 16B2333a | |
➜ ~ ls -l /System/Library/Filesystems/apfs.fs/Contents/Resources | |
total 2088 | |
-rwxr-xr-x 1 root wheel 349760 22 Sep 03:48 apfs.util | |
-rwxr-xr-x 1 root wheel 352880 22 Sep 03:48 apfs_invert |
- using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml
- using inventory:
127.0.0.1 ansible_connection=local
<?php | |
/* | |
The aim is to create a functional server monitor based on the one | |
showed on Mark Zuckerberg's monitor on The Social Network movie. | |
Run so: | |
php monitor.php | |
Notes: | |
- The server LogFormat must be "Common Log Format" (%h %^[%d:%^] "%r" %s %b) |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
最终实现效果:
- 无版本概念,任何本地文件均可增量升级到最新.服务器不用管理多版本
- 内存小,100M文件升级时只占用500KB内存.
使用流程:
- 制作新版本,上传HTTP File Server.
- Client自动计算差异,下载差异,合并差异.
- done!
#0.起源