Skip to content

Instantly share code, notes, and snippets.

View mindcont's full-sized avatar
🎯
Focusing

Apes mindcont

🎯
Focusing
View GitHub Profile
# 题库题目与答案
来源:当前登录会话的官方回顾接口
范围:编号 1–1550,共 1550 道;失败 0 道。
## 1. [多选题] 哪些属于生成式AI应用场景?
- A. 写总结初稿
- B. 生成宣传图
- C. 辅助编程
import numpy as np
import open3d as o3d
from skimage import io
# region 功能函数
def read_img(filename, dtype=np.uint8):
""" 读取图片为矩阵, RGBA/RGB/GRAY """
arr = io.imread(filename)
arr = arr.astype(dtype)

root@Moxa:/etc/init.d# wpa_cli -i wlan0 scan

OK

root@Moxa:/etc/init.d# wpa_cli -i wlan0 scan_results

bssid / frequency / signal level / flags / ssid
1a:00:4d:b0:f8:9c       2437    -42     [WPA2-PSK-CCMP][ESS]    Matrix Two
4a:a4:72:1c:91:20       2437    -45     [WPA2-PSK-CCMP][WPS][ESS][P2P]  DIRECT-QVN014600001990msCD
@mindcont
mindcont / CISCO-VLAN-MEMBERSHIP-MIB.md
Created August 28, 2019 00:57
CISCO-VLAN-MEMBERSHIP-MIB.md

BJ15

#erm2
ifconfig erm2 down
ifconfig erm2 10.10.25.17  netmask 255.255.255.0 up

TC1ERM

AA AB AC 03 00 00 00 02 02 10 00 00 00 2A 03 01 04 0D 01 09 01 01 02 1B 2F 03 93 54 43 31 45 52 4D 00 00 00 11 11 11 11 11 11 11 11 11 96 70 BA BB BC

AA AB AC 01 00 00 00 02 02 10 00 00 00 3C 03 01 04 0D 01 09 01 01 02 1B 2F 03 93 54 43 31 45 52 4D 00 00 00 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 A4 32 BA BB BC
@mindcont
mindcont / command.md
Last active July 1, 2019 10:21
搜集的有用指令

1 批量移动

·find -name "*2018-11*" -exec mv {} ./11/ \;·

2 查看当前80端口的连接数

netstat -nat|grep -i "80"|wc -l
5407

3 查看当前TCP连接的状态

@mindcont
mindcont / spider.sh
Created May 9, 2018 08:03 — forked from azhawkes/spider.sh
Really simple wget spider to obtain a list of URLs on a website, by crawling n levels deep from a starting page.
#!/bin/bash
HOME="http://www.yourdomain.com/some/page"
DOMAINS="yourdomain.com"
DEPTH=2
OUTPUT="./urls.csv"
wget -r --spider --delete-after --force-html -D "$DOMAINS" -l $DEPTH "$HOME" 2>&1 \
| grep '^--' | awk '{ print $3 }' | grep -v '\. \(css\|js\|png\|gif\|jpg\)$' | sort | uniq > $OUTPUT
var CryptoJS = require('crypto-js')
var request = require('request-promise')
/*
* npm install crypto-js request-promise request
* node wx_t1t_hack.js
*/
// export function testEncription(msg, fullKey) {
// var fullKey = fullKey.slice(0, 16)
@mindcont
mindcont / ffmpeg.md
Created November 18, 2017 06:57 — forked from v5tech/ffmpeg.md
ffmpeg视频合并、格式转换、截图

使用ffmpeg合并MP4文件

ffmpeg -i "Apache Sqoop Tutorial Part 1.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i "Apache Sqoop Tutorial Part 2.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
ffmpeg -i "Apache Sqoop Tutorial Part 3.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate3.ts
ffmpeg -i "Apache Sqoop Tutorial Part 4.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate4.ts
ffmpeg -i "concat:intermediate1.ts|intermediate2.ts|intermediate3.ts|intermediate4.ts" -c copy -bsf:a aac_adtstoasc "Apache Sqoop Tutorial.mp4"
@mindcont
mindcont / uss-enterprise-space-cruiser-sheet.md
Last active September 5, 2017 07:58
uss enterprise space cruiser sheet

U.S.S. Enterprise Space Cruiser

Summary:

THE VESSEL

美国企业号是宇宙飞船,官方名称是“星舰”。比现在的海军巡洋舰有点大,它是Starfleet服务中规模最大,最现代化的船只。它有一个430人的船员,其中约三分之一是女性。

The U.S.S. Enterprise is a spaceship, official designation "starship." Somewhat larger than a present-day naval cruiser, it is the largest and most modern type vessel in the Starfleet Service. It has a crew of 430 persons, approximately one-third of them female.