python obfuscation compilation

Step 1 Programming Take the Queen N problem on github as an example """The n queens puzzle. https://github.com/sol-prog/N-Queens-Puzzle/blob/master/nqueens.py """ __all__ = [] class NQueens: """Generate all valid solutions for the n queens puzzle""" def __init__(self, size): # Store the puzzle (problem) size ...

Posted by vishi83 on Fri, 10 May 2019 01:02:03 +0200

LogStash is used to aggregate logs

elastic: https://www.elastic.co/ In order to facilitate centralized viewing of the business logs of multiple hosts, we use Filebeat, Redis, Logstash to collect: (1) Filebeat monitors the changes of log files and writes the new part into redis. The log of each line is the data of a list set of specified key s in redis. (2) LogStash monitors t ...

Posted by warran on Thu, 09 May 2019 22:00:03 +0200

Shell commands - cat and tac for file and content processing

File and Content Processing - cat, tac 1. cat: Display file content Functional description of cat command The cat command is used to connect multiple files and print to screen output or redirect to a specified file Grammatical Format of cat Command cat [OPTION]... [FILE]...cat [-AbeEnstTuv] [--help] [--version] fileName Option description ...

Posted by aeonsky on Thu, 09 May 2019 13:45:03 +0200

CentOS (5.8/6.4) linux production environment optimization (practical section)

Next, I'll give you a brief explanation of some basic optimization operations after the installation of Linux system. Note: This optimization is based on entOS (5.8/6.4). I will mention the cell size of 5.8 and 6.4 when they are optimized. Optimize entries: Modify ip address, gateway, host name, DNS, etc. Close selinux,Empty iptables Added ...

Posted by pepperface on Thu, 09 May 2019 07:18:04 +0200

Go Scheduler Series Source Code Reading and Exploration

Dear friends, this time I would like to share with you the knowledge and experience related to the source code reading of Go Scheduler. There are many good articles on the network to analyze the source code. So this article is not another source code analysis article. It is not about the source code analysis and sharing, but to bring you some l ...

Posted by lkq on Thu, 09 May 2019 05:33:02 +0200

ARM Linux Crash Analysis-Application Segmentation fault Analysis

I. Test Code The test code is as follows: #include <stdio.h> #include <string.h> #include <stdlib.h> void getmemory(char *p) { p=(char *)malloc(100); strcpy(p,"helloworld"); return; } void test1_printf() { printf("aefawfaeeaa /n"); return; } void test1_printf2() { int bbb = 0x5555; printf("test ...

Posted by dadamssg on Wed, 08 May 2019 22:09:07 +0200

Linux Audio Driver II: Call of Control Interface

This paper is a learning note based on Linux version number of mini2440 development board linux-2.6.32.2 I. control Interface Description Control interface mainly allows user space applications (alsa-lib) to access and control audio codec chip multiplexers, sliding controls and so on. 2. open of control interface According t ...

Posted by phpCCore Brad on Wed, 08 May 2019 22:06:02 +0200

saltstack's salt-ssh (Update at any time)

Salt introduces a powerful message queue as a communication transmission mechanism. Sometimes we need old tools to be more effective -- salt ssh. Official documents https://docs.saltstack.com/en/latest/topics/ssh/index.html salt is designed to connect a large number of remote hosts at one time, while SSH (security shell is short for Secure she ...

Posted by tomwerner on Wed, 08 May 2019 17:54:04 +0200

Fusion of Deep Learning Batch Task Processing Scheduler and kubernetes Default Scheduler

Three-step installation of kubernetes cluster What is a batch task? In deep learning, there are many tasks of multi-machine and multi-card, that is to say, colleagues will have multiple pods, but these pods belong to the same task. So there's a problem. A task starts with 100 pods, each pod needs a card, a total of 100 GPU cards, while there ar ...

Posted by jrobles on Wed, 08 May 2019 14:45:03 +0200

Linux Disk and File System Management

fdisk Commonly used disk partitioning tools, limited by the mbr partition table, can only partition disks smaller than 2TB. If you use fdisk to partition disks larger than 2TB, although partitioning is possible, it can only recognize 2T of space. Generally, the parted partitioning tool is used - l # Display all disk partition information [ ...

Posted by deejay on Wed, 08 May 2019 14:39:03 +0200