This file contains hidden or 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
| from selenium import webdriver | |
| import time | |
| username = 'xxx' | |
| passwd = 'xxx' | |
| address = 'xxx' | |
| driver = webdriver.Chrome() | |
| driver.get("http://my.jluzh.com") | |
| print("| 登录页 | ", driver.title ) |
This file contains hidden or 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
| { | |
| "policy": null, | |
| "log": { | |
| "access": "", | |
| "error": "", | |
| "loglevel": "warning" | |
| }, | |
| "inbounds": [ | |
| { | |
| "tag": "proxy", |
This file contains hidden or 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 struct | |
| fmt = '<3s3sHH' | |
| with open('./github.gif', 'rb') as fp: | |
| img = memoryview(fp.read()) | |
| header = img[:10] | |
| bytes(header) | |
| # b'GIF89a\xd5\x03b\x03' |
This file contains hidden or 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
| # * Author : kangvcar | |
| # * Email : kangvcar@gmail.com | |
| # * Last modified : 2022-03-07 12:20 | |
| # * Filename : kkstat.sh | |
| # * Description : 用于采集CentOS 7 系统运行性能数据,每分钟采集一次,存在/var/log/sa 目录下 | |
| # Check CentOS Version | |
| v=`cat /etc/redhat-release|sed -r 's/.* ([0-9]+)\..*/\1/'` | |
| if [ $v -eq 7 ]; then | |
| echo "==========CentOS 7============" |
This file contains hidden or 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
| 一、必备插件 | |
| 🌾Chinese(中文) | |
| 🤡Settings Sync(配置同步到云端) | |
| 🌈wakatime(编程时间及行为跟踪统计) | |
| 二、效率神器 |
This file contains hidden or 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
| --- | |
| created: <% tp.file.creation_date() %> | |
| modified: <% tp.file.last_modified_date("YYYY-MM-DD HH:mm:ss") %> | |
| tags: [""] | |
| --- | |
| # <% tp.file.title %> | |
| << [[<% fileDate = moment(tp.file.title, 'YYYY-MM-DD_ddd').subtract(1, 'd').format('YYYY-MM-DD_ddd') %>|Yesterday]] | [[<% fileDate = moment(tp.file.title, 'YYYY-MM-DD_ddd').add(1, 'd').format('YYYY-MM-DD_ddd') %>|Tomorrow]] >> | |
| --- |
This file contains hidden or 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
| #!/bin/bash | |
| ##################################################### | |
| # Hadoop 基础环境部署脚本 - CentOS 7 | |
| # 功能: | |
| # 1. 检查并安装必要依赖 (wget, curl, tar, ssh) | |
| # 2. 获取本机IP (优先内网) 并配置 /etc/hosts | |
| # 3. 设置主机名为 'master' | |
| # 4. 下载、解压并重命名 Java 和 Hadoop 安装包 | |
| # 5. 配置 Java 和 Hadoop 环境变量到 /etc/profile |
This file contains hidden or 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
| #!/bin/bash | |
| ##################################################### | |
| # Hadoop 伪分布式集群一键部署脚本 - CentOS 7 | |
| # 功能: | |
| # 1. 检查并安装必要依赖 (wget, curl, tar, ssh) | |
| # 2. 获取本机IP (优先内网) 并配置 /etc/hosts | |
| # 3. 设置主机名为 'master' | |
| # 4. 下载、解压并重命名 Java 和 Hadoop 安装包 | |
| # 5. 配置 Java 和 Hadoop 环境变量到 /etc/profile |
OlderNewer