Emerge kubelet
, kubeadm
, kubectl
, all the same version. For some reason, Gentoo stablized kubelet
and kubectl
but not kubeadm
.
I'm using Calico, so also emerge net-misc/calico-cni-plugin
.
// ----------------------------------------------------------------------------------------------------------------------- | |
// // Surfingkeys: https://github.com/brookhong/Surfingkeys#properties-list | |
// // Dracula Theme: https://github.com/dracula/dracula-theme#color-palette | |
// ----------------------------------------------------------------------------------------------------------------------- | |
// Map Keys | |
// ----------------------------------------------------------------------------------------------------------------------- | |
unmap('ox'); | |
unmap('oh'); | |
unmap('om'); | |
unmap('on'); |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
[ | |
[ | |
{ | |
"x": 3.5, | |
"c": "#f7f2ea" | |
}, | |
"#\n3", | |
{ | |
"x": 10.5 | |
}, |
import unittest | |
import asyncio | |
import inspect | |
def async_test(f): | |
def wrapper(*args, **kwargs): | |
if inspect.iscoroutinefunction(f): | |
future = f(*args, **kwargs) | |
else: |
#cVim-link-container, .cVim-link-hint, #cVim-command-bar, #cVim-command-bar-mode, #cVim-command-bar-input, #cVim-command-bar-search-results, .cVim-completion-item, .cVim-completion-item .cVim-full, .cVim-completion-item .cVim-left, .cVim-completion-item .cVim-right, #cVim-hud, #cVim-status-bar { | |
font-family: Helvetica, Helvetica Neue, Neue, sans-serif, Arial; | |
font-size: 9pt !important; | |
-webkit-font-smoothing: antialiased !important; | |
border-radius: 4px!important; | |
} | |
#cVim-link-container { | |
position: absolute; | |
pointer-events: none; |
#!/bin/env python3 | |
class Node: | |
def __init__(self, data, next=None): | |
self.data = data | |
self.next = next | |
def findEntry(root): |
#!/bin/env python3 | |
# -*- coding: utf-8 -*- | |
class dispatch: | |
class _handler: | |
def __init__(self): | |
self._handleTale = {} | |
def register(self, argType): |
#WSGI:(web server gateway interface)WEB服务器网关接口 WSGI是为python语言定义的web服务器和web应用程序或框架之间的一种简单而实用的借口。wsgi是一个web组件的接口规范,它将web组件分为三类:server,middleware,application
##wsgi server wsgi server可以理解为一个符合wsgi规范的web server,接收request请求,封装一系列环境变量,按照wsgi规范调用注册的wsgi app,最后将response返回给客户端。文字很难解释清楚wsgi server到底是什么东西,以及做些什么事情,最直观的方式还是看wsgi server的实现代码。以python自带的wsgiref为例,wsgiref是按照wsgi规范实现的一个简单wsgi server。其工作流程如下:
" {{{ Convenience | |
set hud | |
set smoothscroll | |
set noautofocus | |
set typelinkhints | |
"set showtabindices | |
set autohidecursor | |
" use <C-n> and <C-p> to cycle through completion results (requires you to set) | |
" the nextCompletionResult keybinding in the chrome://extensions page (bottom right) |