sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| Authenticator authenticator= new Authenticator() { | |
| @Override | |
| public Request authenticate(Route route, Response response) throws IOException { | |
| String credential = Credentials.basic("*******", "******"); | |
| return response.request().newBuilder().header("Authorization", credential).build(); | |
| } | |
| }; |
| private AlertDialog genrateAlertDialogHelper(){ | |
| AlertDialog.Builder builder = new AlertDialog.Builder(context); | |
| builder.setMessage("是否重置相关IP配置").setPositiveButton( | |
| "确定", new DialogInterface.OnClickListener() { | |
| @SuppressLint("CommitPrefEdits") | |
| @Override | |
| public void onClick(DialogInterface dialog, int which) { | |
| if (editor == null) { | |
| editor = preferences.edit(); | |
| } |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
| import { serve } from '@hono/node-server'; | |
| import { Hono } from 'hono'; | |
| import { Server } from 'socket.io'; | |
| import { Server as HttpServer } from 'http'; | |
| const app = new Hono(); | |
| app.get('/', (c) => { | |
| return c.text('Hello Hono!'); | |
| }); |