This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
tasks: | |
- name: disable selinux | |
selinux: | |
state: disabled | |
- name: disable firewalld | |
service: | |
name: firewalld | |
state: stopped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\Users\lihongjie> scoop list | |
Installed apps: | |
7zip 19.00 | |
bind 9.16.4 | |
busybox 3466-g53c09d0e1 | |
cmder 1.3.14 | |
coreutils 5.97.3 | |
dark 3.11.2 | |
ditto 3.22.88.0 [extras] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Available context bindings: | |
* COLUMNS List<DataColumn> | |
* ROWS Iterable<DataRow> | |
* OUT { append() } | |
* FORMATTER { format(row, col); formatValue(Object, col) } | |
* TRANSPOSED Boolean | |
* plus ALL_COLUMNS, TABLE, DIALECT | |
* | |
* where: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.github.javaparser.StaticJavaParser; | |
import com.github.javaparser.ast.CompilationUnit; | |
import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; | |
import com.github.javaparser.ast.body.ConstructorDeclaration; | |
import com.github.javaparser.ast.body.MethodDeclaration; | |
import com.github.javaparser.ast.expr.MarkerAnnotationExpr; | |
import com.github.javaparser.ast.expr.NormalAnnotationExpr; | |
import com.github.javaparser.ast.visitor.ModifierVisitor; | |
import com.github.javaparser.ast.visitor.Visitable; | |
import com.github.javaparser.printer.PrettyPrinterConfiguration; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.lihongjie; | |
import org.junit.Before; | |
import org.junit.Test; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.TimeUnit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select id="empFind" resultType="employee"> | |
SELECT * FROM EMP | |
WHERE 1=1 | |
<choose> | |
<when test="sal >= 5000"> | |
and job ='PRESIDENT' | |
</when> | |
<when test="sal >=3000"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find /sys/ -regex ".*/scan" | xargs -i{} -P 10 sh -c "echo '- - -' > {}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CounterForVisibility extends Thread { | |
private volatile static int count = 0; | |
public static synchronized int getCount() { | |
return count; | |
} | |
public synchronized void setCount(int count) { | |
this.count = count; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Counter { | |
private static int count = 0; | |
public static synchronized int getCount() { | |
return count; | |
} | |
public synchronized void setCount(int count) { | |
this.count = count; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>cn.lihongjie</groupId> | |
<artifactId>learn_http_by_testing</artifactId> | |
<version>1.0-SNAPSHOT</version> |