国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| # google's DNS server | |
| resolver 8.8.8.8; | |
| resolver_timeout 5s; | |
| server { | |
| # proxy server port |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <parent> | |
| <groupId>io.plan.bofime</groupId> | |
| <artifactId>swim-common-parent</artifactId> | |
| <version>1.0-SNAPSHOT</version> | |
| </parent> |
Install Xquartz to get X11 support on MacOS. You can google Xquartz and download it from its official site, or install using HomeBrew.
brew cask install xquartzLaunch Xquartz. Go to Preference -> Security, click the box Allow connections from clients. NOTE: You have to lauch Xquartz with Allow connections from clients enable everytime you want to ssh to remote server with X11 forwarding support.
| import pytest | |
| import aiohttp | |
| import asyncio | |
| from asynctest import CoroutineMock, MagicMock, patch | |
| # Example Code | |
| async def fetch(session, url): |
| kubectl delete "$(kubectl api-resources --namespaced=true --verbs=delete -o name | tr "\n" "," | sed -e 's/,$//')" --all |
Regular expressions used in searches seem to search the extracted search "terms," which you can see by clicking on any particular message, then click the down arrow > Show terms of .... For this reason, "exception" needs to be lower-case:
message:/([a-z0-9\.]+exception)/
| # Private key | |
| openssl genpkey -algorithm RSA -out private.pem -pkeyopt rsa_keygen_bits:2048 | |
| # Public key | |
| openssl rsa -pubout -in private.pem -out public_key.pem | |
| # Private key in pkcs8 format (for Java maybe :D) | |
| openssl pkcs8 -topk8 -in private.pem -out private_key.pem | |
| ## nocrypt (Private key does have no password) |
| import QtQuick 2.9 | |
| import QtQuick.Controls 2.2 | |
| Column { | |
| width: parent.width | |
| height: parent.height | |
| property alias model: columnRepeater.model | |
| ListView { |