AWS Lambda automation and PowerShell

I've been watching how to use Lambda and Python for the past two days, but I'm usually more used to using PowerShell to manage various systems. Try using PowerShell in Lambda. First, you need to install the following three modules on the local computer. Install PowerShell Corehttps://github.com/powershell/powershell Install the. Net core softw ...

Posted by matthewc on Tue, 15 Oct 2019 07:43:45 -0700

lambda expression grouping, filtering, summation, maximum, sorting, de-duplication

Article directory brief introduction Example Prepare an entity class first Grouping filter Summation Maximum value List to Map sort Duplicate removal Get a list object, a field, and assemble a new list Batch setting list list list list field to the same value brief introduction New features of ...

Posted by Kingskin on Thu, 10 Oct 2019 04:02:11 -0700

Lambda, AWS, and Python Automation Management Operations - Automatically create snapshots, delete snapshots

This section looks at how to manage EC2 snapshots through boto3. In the actual production environment, beans use the solution EBS Snapshot Scheduler provided by AWS, import the stack of Cloudformation directly, automatically configure Lambda function and DynamoDB database, and then we can set it up by label. From a learning point of view, let' ...

Posted by vonnero on Thu, 10 Oct 2019 02:12:24 -0700

Eight ways to create Java threads, how many do you know?

Author: Tang Tong brief introduction Creating threads is the most basic operation in multithreaded programming. Tong Ge summed up that there are about eight ways to create threads, you know? 1. Inherit the Thread class and override the run() method public class CreatingThread01 extends Thread {  @Override  public void run() {  System.out.pr ...

Posted by Honor on Wed, 09 Oct 2019 06:48:43 -0700

lambada Expressions for Deep and Simple Functional Programming

lambda is a new feature of JDK 1.8. Functional programming can not be ignored. See: lambda underlying implementation principle 1. The compiler generates a method for each lambda expression The method name is lambda lambda $0,1,2,3,,1,2,3, but the expression referenced by the method does not genera ...

Posted by Darkness Soul on Tue, 08 Oct 2019 20:50:43 -0700

stream and functional interface

title: stream and functional interface date: 2019-07-24 14:03:02 categories: java Foundation tags: 1. Mind Mapping 2. Stream and Functional Interface 2.1. Acquisition stream 2.2. Flow method 2.2.1. forEach 2.2.2. filter 2.2.3. map 2.2.4. count 2.2.5. limit 2.2.6. skip 2.2.7. concat 2.3. Use ...

Posted by ozzy on Tue, 08 Oct 2019 19:56:45 -0700

python 3 uses cython to encrypt python project source code

Under the project folder, create a new setup.py file, as follows: import os import re from distutils.core import Extension, setup from Cython.Build import cythonize from Cython.Compiler import Options exclude_so = ['__init__.py', "setup.py"] sources = ['./'] extensions = [] for source in sour ...

Posted by FastLaneHosting on Sun, 06 Oct 2019 22:28:41 -0700

lambda expression in jdk8

lambda expressions Optimization of lambda The following abbreviations can be used in JDK8 new Thread(() -> System.out.println("Multithread task execution!")).start(); // Startup thread Arrays.sort(array,(a,b)->a.getAge()-b.getAge()) //sort Format of Lambda Standard format: (parameter type parameter name) - > {code statement} Ellips ...

Posted by artfuldrone on Fri, 04 Oct 2019 17:02:49 -0700

springboot-poi -- Encapsulating Annotated Import and Export

This demo is based on poi encapsulated object annotation import and export, the project framework is spring boot project! Simply explain the knowledge points involved in this demo, hoping to bring convenience to beginners! poi-excel basic operations (tools) Use of custom annotations Definition of global exception capture New features of J ...

Posted by biopv on Wed, 02 Oct 2019 04:14:29 -0700

java multithreading-ThreadLocal

ThreadLocal: Each thread stores its own local and local areas, similar to containers, in which each thread has a certain storage space.Common methods get/set/initialValueThe official recommendation is private staticEach thread stores its own data, and changes do not affect other threadsThe ThreadLocal subclass InheritableThreadLocal:Data inher ...

Posted by phpprog on Wed, 02 Oct 2019 02:24:34 -0700