It only takes five minutes! It can run k3s on mac

K3s is an open source, lightweight Kubernetes release released by Rancher Labs at the beginning of this year. It is perfect for running Kubernetes in a resource-limited environment. Because of its lightweight characteristics, it is an ideal choice for developers to explore and experiment on laptops. But native k3s is more suitable for Linux. Ho ...

Posted on Fri, 11 Oct 2019 22:54:25 -0400 by badman

Mac Terminal Efficiency Magic

I. Plug-ins to enhance various previews Preview View Picture Resolution & Size Code syntax highlighting Quick preview of zip compressed package content Quick preview of markdown format content brew cask install qlcolorcode betterzipql qlimagesize qlmarkdown iTerm2 Configuration of a large number of specific online. Stick a knife that I p ...

Posted on Sun, 06 Oct 2019 11:12:13 -0400 by amsgwp

Template method pattern of javascript Design Pattern

Template Method Patterns Definition: On the basis of inheritance, the algorithm of execution is defined in the parent class.Making tea and coffeeTo compare the similarities and differences between making tea and making coffee Steps to brew tea and coffee1 Boiling water boiling water2. Soak tea and brew coffee3 Pour into the cup and pour into th ...

Posted on Sat, 05 Oct 2019 18:28:53 -0400 by dubt2nv

MACBOOK Tuning Instruction North

The following are the practical problems I encountered in using macOS Mojave v10.14.6: 1. Switch to root user $sudo su Password:🔑 sh-3.2# 2. Install pcntl extensions for php that comes with the system $php -v No log handling enabled - using stderr logging Created directory: /var/db/net-snmp Created di ...

Posted on Sat, 05 Oct 2019 01:53:00 -0400 by mikesch

Developing the Correct Posture of Function Computing --- Converting PDF to JPG 2000 with Ghostscript

Preface Firstly, several important concepts emerged in this paper are introduced. Function Compute: Function Compute is an event-driven service. Through function computing, users do not need to manage the operation of servers, etc. They only need to write code and upload it. Function computing prepares computing resources and runs user code in ...

Posted on Fri, 20 Sep 2019 02:13:57 -0400 by teng84

Developing the Correct Posture of Function Computing - Converting PDF into JPG with Ghostscript

Preface Firstly, several important concepts emerged in this paper are introduced. Function Compute: Function Compute is an event-driven service. Through function computing, users do not need to manage the operation of servers, etc. They only need to write code and upload it. Function computing prepares computing resources and runs user cod ...

Posted on Thu, 19 Sep 2019 02:54:38 -0400 by devinemke

Some pits where python uses mysql

Note: If you're using Python 3.x, go straight to the fourth question. The first problem encountered Normally, it is possible to perform pip installation directly, but MySQL-python is rather unique. pip install MySQL-python Report errors _mysql.c:44:10: fatal error: 'my_config.h' file not found #include "my_config.h" ^~~~~~ ...

Posted on Mon, 29 Jul 2019 07:31:34 -0400 by blackhawk08

Add postgresql-related extensions to php5.6 under CentOS 7 [trial run]

Download related resources First, download the PDO_PGSQL and pq extension package source code. PDO_PGSQL pq What I am going to do is: Please upload to centos server. Upload finished. Decompression and Compilation After decompression, the extensions are compiled separately. Compile pq extensions The steps are as follows: Note that ...

Posted on Thu, 27 Jun 2019 20:06:49 -0400 by nuklehed

golang introductory notes (1)

Author: Word Ma Hu Reproduction Marker [2017-11-21] Update log date Update content Remarks 2017-11-21 New article Introduction to go Language (1) Preparation environment Under Mac, you can install golang with the following commands: brew install go After the installation is completed, you can command "go version" to view ...

Posted on Fri, 17 May 2019 16:35:37 -0400 by minidak03

Simple arrangement of js design pattern

Higher order function Functions can be passed as parameters Functions can be output as return values Implementation of AOP with Higher Order Functions The main function of AOP (Aspect-Oriented Programming) is to extract some functions that are not related to core business logic, which usually include log statistics, securit ...

Posted on Fri, 17 May 2019 08:53:56 -0400 by darshanpm