LDAP/SASL/GSSAPI/Kerberos programming API--krb5 client

There are two libraries available for krb5 API: MIT and Heimdal. The APIs of the two libraries are different. It is basically OK for one client's API to connect to the otherThe two kadmin libraries in API are completely incompatible. From the kadmin application tools of MIT and Heimdal, it can be seen that it is not successful to connect the k ...

Posted by AdRock on Tue, 17 Mar 2020 22:47:23 -0700

Getting started with Go language - process control

go process control String explanation String principle The bottom layer of string is a byte array, so it can be converted to and from [] byte type Characters in a string cannot be modified String is composed of byte, so the length of string is the length of byte The run type (int32 in four bytes) is used to represent utf8 characters. A run co ...

Posted by fredted40x on Sat, 14 Mar 2020 08:37:41 -0700

One article on the four main uses of Go Language Select

This article introduces you to the use of Select in the Go Language and believes that you are not unfamiliar with switching. However, select and switching have a common feature that they both handle things in a case way, but select and switching handle things completely different and incompatible.Let's see what switching is like: various types ...

Posted by wafawj on Tue, 10 Mar 2020 10:28:21 -0700

Portable file operations - Files

Portable file operations - Files Separator In Windows system, backslash '' or slash '/' is used as the separator of the path. However, when using backslash, it needs to be noted that a single backslash represents the escape character, so when using backslash as the separator of the path, it needs ...

Posted by lettie_dude on Wed, 04 Mar 2020 00:13:12 -0800

Python 3 Standard Library: itertools iterator function

1. itertools iterator function itertools includes a set of functions for processing sequential datasets.The functions provided by this module are inspired by similar features in functional programming languages such as Clojure, Haskell, APL, and SML.The goal is to be able to process quickly, use memory efficiently, and join together to represen ...

Posted by moagrius on Thu, 27 Feb 2020 18:19:38 -0800

ADB? Debug ADB (ADB sets the code sorting of its own log and sets the ADB's own log to be visible)

Preface Preceding text Overview of ADB (I)ADB(2) ﹣ adbd ﹣ main() function code sortingADB(3) ﹣ adbd ﹣ adbd ﹣ main() function code sortingCode sorting of the host side of ADB (IV)ADB(5) sorting out the code related to the adb server on the host side First of all, we know that ADB indirectly call ...

Posted by Nimbuz on Tue, 25 Feb 2020 18:26:40 -0800

Common commands for text processing tool grep

Grep is a powerful text search tool that searches for text using specific pattern matches, including regular expressions, and outputs matching lines by default.The grep family of Unix includes grep, egrep, and fgrep. Format Usage: grep [Options]...Mode [File]...Search mode in each file or standard input.By default, a pattern is a basic regular ...

Posted by Jeremias on Tue, 18 Feb 2020 08:38:17 -0800

Python 3 standard library: difflib difference calculation tool

1. difflib difference calculation tool This module provides classes and functions for comparing sequences. For example, it can be used to compare files and produce different information in various formats, including HTML and context, as well as differences in uniform formats. For a comparison of directories and files, see the filecmp module. cl ...

Posted by meltingpoint on Mon, 17 Feb 2020 19:51:07 -0800

How to get password from shell script without echo

I have a script that automates processes that need access to password protected systems. Access the system through a command-line program that accepts the user password as a parameter. I want to prompt the user to type their password, assign it to a shell variable, and then use that variable to build the command line of the accessor (which, ...

Posted by trampolinejoe on Mon, 17 Feb 2020 03:23:02 -0800

Win32 process communication -- the use of mail slot

Post slot Mail slot is a one-way interprocess communication mechanism provided by Windows operating system, which can be used in single machine or multi machine distributed environment on network. For relatively short low-frequency messages, it is usually easier to use a mail slot than a named pipe o ...

Posted by supergrover1981 on Fri, 14 Feb 2020 05:56:33 -0800