Knowledge point 032 expect distributes installation scripts and installation services

System environment: 4 servers System version: CentOS release 6.9 (Final) 10.0.0.62 m01 distributor 10.0.0.63 web server 10.0.0.64 nfs network transport shared server 10.0.0.65 backup server   1. Write a. exp script #!/usr/bin/expect if { $argc !=2 } { send_user "usage: expect fenfa_sshkey.exp file host\n" exit } #define var set file [li ...

Posted on Wed, 01 Apr 2020 02:49:17 -0400 by new2code

Details of Retrofit

Here I'm going to talk about Android's common network request library, Retrofit. Retrofit can be regarded as an "upgraded version" of okhttp. Why? That's because its internal default is based on okhttp for encapsulation. 1. baseUlr of retrofit2 must end with / (slash), Otherwise, an IllegalArgument ...

Posted on Wed, 01 Apr 2020 01:57:19 -0400 by kalebaustin

Network programming 4 - non blocking IO

9 Reliable udp https://blog.csdn.net/u011001084/article/details/78977548 Sliding window observation https://www.cnblogs.com/my_life/articles/5363527.html Reliable UDP implementation (1) Timeout retransmission: used to process lost datagram (retransmission timer) (2) Serial number: a request for the customer to ve ...

Posted on Wed, 01 Apr 2020 00:55:37 -0400 by Vik

[Android] simple implementation use WebView component to open web in App

About WebView components Please refer to: Android: This is a comprehensive & detailed strategy for using Webview How to implement embedded web in App In the new android project, if you want to implement the embedded Web, you must set the access network permission in android manifest.xml: <uses-permission and ...

Posted on Tue, 31 Mar 2020 23:20:44 -0400 by nokicky

OkHttp3 source code (6) ---- Response

Response class -- mainly the implementation of the concept of response message. Structure diagram of response message It can be seen that the structure of response message is similar to that of request message. But the details are different. We understand the source code of Response according to the structure of Response mes ...

Posted on Tue, 31 Mar 2020 20:18:48 -0400 by tuurlijk

Gothenko map SDK integrated location geocoding search latitude and longitude acquisition function tool class

The latest project needs to integrate the Gaud map, and then it can carry out positioning and geocoding search functions according to voice input instructions, so as to achieve the function of acquiring the current position longitude and latitude and acquiring the longitude and latitude according to the address The first ste ...

Posted on Tue, 31 Mar 2020 14:17:06 -0400 by fresch

Swift: asynchronous chain call of alamofire

Alamofire It is a common swift network library. This paper will analyze the chain call of Alamofire. Friends who are not familiar with Alamofire can read this first Article Chain call example extension Int { func add(_ num: Int) -> Int { return self + num } func minus(_ num: Int) -> Int { return s ...

Posted on Tue, 31 Mar 2020 12:46:26 -0400 by scritpkid

netperf testing intranet performance

Test plan Build test environment Three servers, one as server and two as client Configured as 16C 32G system disk: 50G data disk: 50G 1m bandwidth All three sets are operated as follows wget -c https://codeload.github.com/HewlettPackard/netperf/tar.gz/netperf-2.5.0 tar xf netperf-2.5.0.tar.gz && cd netperf- ...

Posted on Tue, 31 Mar 2020 04:07:21 -0400 by Fallen_angel

Encryption and decryption of compressed package based on tar and openssl in Linux

Transferring backup files across the public network is a job that operation and maintenance and DBA s often do. But the unencrypted compressed files are transferred on the public network, just like swimming naked in Yalong Bay. If you don't pay attention, you will be photographed. Ha ha! This paper mainly describes how to reali ...

Posted on Sun, 29 Mar 2020 14:25:42 -0400 by Miichael

Huawei, Dhcp, Pat, Vlan

Implementation functions: VLAN 10 is added to E0/0/1 interface, VLAN 20 is added to E0/0/2 interface, VLAN 30 is added to E0/0/22 interface, dhcp server is configured for layer 3 switch, and PAT address conversion is configured for router for intranet users to access ISP network. Switch interface to access mode <Huawei>system-view // ...

Posted on Sun, 29 Mar 2020 14:18:17 -0400 by Zyx