Skip to content

Instantly share code, notes, and snippets.

View lihongjie0209's full-sized avatar

李宏杰 lihongjie0209

  • 海南海口
View GitHub Profile
@lihongjie0209
lihongjie0209 / README.md
Created June 13, 2023 06:40 — forked from qti3e/README.md
List of file signatures and mime types based on file extensions
@lihongjie0209
lihongjie0209 / gist:cc76db81c6eabd8b48a250eb9bcbe7b8
Last active September 11, 2022 14:41 — forked from tripurari001/gist:e78aa7b33a1f9f000405309a8082982a
Openwest 2015 - Erik Falor - From Vim Muggle to Wizard in 10 Easy Steps
_
- - /, /, |\ 222222222222222
)/ )/ ) ' _ \\ 2:::::::::::::::22
)__)__) \\ /\\ < \, ,._-_ / \\ _-_, 2::::::222222:::::2
~)__)__) || / /-|| || || || ||_. 2222222 2:::::2
) ) ) || /\\ (( || || || || ~ || 2:::::2
/-_/-_/ \\ || \/\\ \\, \\/ ,-_- 2:::::2 ::::::
/ 2222::::2 ::::::
(, 22222::::::22 ::::::
.--.--.-----. 22::::::::222
@lihongjie0209
lihongjie0209 / centos7-init.sh
Created August 27, 2022 09:39
centos7 初始化脚本
‎‎​
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
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class GetSampleInfoResponse {
private Data data;
@Data
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": {
import java.util.List;
class Scratch {
static class Product{
private String 产品分类;
private List<String> 图片地址;
In [57]: from http.cookies import SimpleCookie
In [58]: s = SimpleCookie('''bid=hZdgjLJMNv4; _vwo_uuid_v2=AD40AA237919D79C67460DEFD37AFAA4|65f61f85190c51b2
...: cfa95d3910cc2914; gr_user_id=2d7956ee-7cd2-4fad-8a7d-d0b2265ceeba; ll="118316"; _pk_ref.100001.4cf6
...: =%5B%22%22%2C%22%22%2C1489750475%2C%22https%3A%2F%2Fwww.google.com.hk%2F%22%5D; ap=1; _pk_id.100001
...: .4cf6=270eb4959a2a2414.1489750475.1.1489750559.1489750475.; _pk_ses.100001.4cf6=*; __utma=30149280.
...: 1851478845.1488968861.1489658025.1489750475.5; __utmb=30149280.0.10.1489750475; __utmc=30149280; __
...: utmz=30149280.1489750475.5.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided);
...: __utma=223695111.721177542.1489750475.1489750475.1489750475.1; __utmb=223695111.0.10.1489750475; _
...: _utmc=223695111; __utmz=223695111.1489750475.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmc
@lihongjie0209
lihongjie0209 / init.yml
Last active August 26, 2020 03:20
初始化服务器的ansible脚本
---
- hosts: all
tasks:
- name: Set timezone to Asia/Shanghai
timezone:
name: Asia/Shanghai
- name: disable selinux
selinux:
state: disabled
- name: disable firewalld
@lihongjie0209
lihongjie0209 / mysql.yml
Created July 17, 2020 08:51
安装mysql的ansible脚本
---
- hosts: all
tasks:
- name: disable selinux
selinux:
state: disabled
- name: disable firewalld
service:
name: firewalld
state: stopped