Skip to content

Instantly share code, notes, and snippets.

Avatar

李宏杰 lihongjie0209

  • 海南海口
View GitHub Profile
@lihongjie0209
lihongjie0209 / gist:cc76db81c6eabd8b48a250eb9bcbe7b8
Last active Sep 11, 2022 — forked from tripurari001/gist:e78aa7b33a1f9f000405309a8082982a
Openwest 2015 - Erik Falor - From Vim Muggle to Wizard in 10 Easy Steps
View gist:cc76db81c6eabd8b48a250eb9bcbe7b8
_
- - /, /, |\ 222222222222222
)/ )/ ) ' _ \\ 2:::::::::::::::22
)__)__) \\ /\\ < \, ,._-_ / \\ _-_, 2::::::222222:::::2
~)__)__) || / /-|| || || || ||_. 2222222 2:::::2
) ) ) || /\\ (( || || || || ~ || 2:::::2
/-_/-_/ \\ || \/\\ \\, \\/ ,-_- 2:::::2 ::::::
/ 2222::::2 ::::::
(, 22222::::::22 ::::::
.--.--.-----. 22::::::::222
View vagrantFileTemplate
common = <<-SHELL
sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
timedatectl set-timezone Asia/Shanghai
echo '' > /etc/apt/sources.list
echo 'deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free' >> /etc/apt/sources.list
echo 'deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free' >> /etc/apt/sources.list
echo 'deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free' >> /etc/apt/sources.list
echo 'deb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free' >> /etc/apt/sources.list
View demo,java
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class GetSampleInfoResponse {
private Data data;
@Data
View 亚马逊返回示例
Request address:
//api.onebound.cn/amazon/api_call.php?
num_iid=B07FR2DYDR&cache=no&api_name=item_get&lang=zh-CN&key=tel15103005909&secret=20201010
---------------------------------------
Result Object:
---------------------------------------
{
"item": {
"detail_url": "https://www.amazon.cn/dp/B07FR2DYDR?th=1&psc=1",
"crumbs": {
View Product.java
import java.util.List;
class Scratch {
static class Product{
private String 产品分类;
private List<String> 图片地址;
@lihongjie0209
lihongjie0209 / mysql.yml
Created Jul 17, 2020
安装mysql的ansible脚本
View mysql.yml
---
- hosts: all
tasks:
- name: disable selinux
selinux:
state: disabled
- name: disable firewalld
service:
name: firewalld
state: stopped
@lihongjie0209
lihongjie0209 / init.yml
Last active Aug 26, 2020
初始化服务器的ansible脚本
View init.yml
---
- hosts: all
tasks:
- name: Set timezone to Asia/Shanghai
timezone:
name: Asia/Shanghai
- name: disable selinux
selinux:
state: disabled
- name: disable firewalld
View scoop
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]
View CleanPoJo.java
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;