1、查看电池信息
ioreg -rn AppleSmartBattery | grep -i capacity
# 返回信息
"AppleRawCurrentCapacity" = 4815
"AppleRawMaxCapacity" = 7222
"MaxCapacity" = 7222 # 目前电池最大容量
"CurrentCapacity" = 4815
"LegacyBatteryInfo" = {"Amperage"=0,"Flags"=5,
作者文章归档:xiaomagege
ioreg -rn AppleSmartBattery | grep -i capacity
# 返回信息
"AppleRawCurrentCapacity" = 4815
"AppleRawMaxCapacity" = 7222
"MaxCapacity" = 7222 # 目前电池最大容量
"CurrentCapacity" = 4815
"LegacyBatteryInfo" = {"Amperage"=0,"Flags"=5,
1,java读取b3d文件,拆分为gltf和json文件
import java.io.*;
// https://www.cnblogs.com/onsummer/p/13252896.html
// byteLength = 28 + featureTableJSONByteLength + featureTableBinaryByteLength + batchTableJSONByteLength + batchTableBinaryByteLength + glb的字节长度
public class ReadB3DM {
public static void main(
1,16寸pro 开启远程
2,然后最好设置一下共享密码
2,然后使用13寸pro 远程控制16寸
3,根据你的ip地址连接vnc
4,vnc:// 后面可以接ipv4 也可以接ipv6 一般家庭网络运营商都是开放了ipv6的,要是没有可以打电话找运营商开放,或者使用内网穿透, 内网穿透的话需要穿透16寸Pro的5900端口,内网穿透不建议,一是公网i
pip install virtualenv
mkdir venv
virtualenv -p python3 venv
source venv/bin/activate
pip freeze > ./requirements.txt
docker pull minio/minio:latest
docker run -p 8000:9000 -p 8001:9001 --name minio \
-d --restart=always \
-e "MINIO_ACCESS_KEY=admin" \
-e "MINIO_SECRET_KEY=**********" \
-e "MINIO_SERVER_URL=https://Your_Domin.com:8001" \
-e "MINIO_BROWSER_REDI
[common]
bind_addr = 0.0.0.0
bind_port = 7000
user = username
token = **********
server_addr = 公网IP server_port = 公网端口 user = 指定用户 token = 密钥
[common]
server_addr = 0.0.0.0
server_port = 7000
user = username
token = **********
[secret_tcp]
type = stcp
sk = abcdefg
local_ip = 127.0.0
#!/bin/bash
while getopts :abcde:f:h opt
do
case "$opt" in
a)
docker restart nginx;
echo "nginx is restart";;
b)
docker stop nginx;
docker rm nginx;
docker r
1,安装包,允许 apt 命令 HTTPS 访问 Docker 源。
apt install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
2.添加 Docker 官方的 GPG
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
3.将 Docker 的源添加到 /etc/apt/sources.list
sudo echo "deb https://downloa
1,拉去开源版镜像
docker pull easysoft/zentao:12.3.3
2,启动镜像
docker run --name zentao -p 3388:80 \
-v /opt/zentaopms:/www/zentaopms \
-v /opt/mysqldata:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD=123456 \
-d easysoft/zentao:12.3.3
3,访问IP加3388端口即可
1,安装mongo数据库
docker run -d --name mongo-yapi -v /opt/mongo_data_yapi:/data/db mongo:3.4.24
2,获取 Yapi 镜像,版本信息可在 阿里云镜像仓库
docker pull registry.cn-hangzhou.aliyuncs.com/anoy/yapi
3,初始化 Yapi 数据库索引及管理员账号
docker run -it --rm --link mongo-yapi:mongo \
--entrypoint npm \
--workdir /api/vendors registry.c