Skip to content

Instantly share code, notes, and snippets.

数据相关工具

数据库模型建模工具
  1. pdmaner, 蓝奏云下载
数据库连接
  1. dbeaver(推荐,可以连接很多数据库)
  2. navicate (可以比对数据库结构)
  3. DbVisualizer (还没咋使用)
  4. heidisql (小巧)

ssh端口转发 转发的端口:localhost:需要转发的端口

ssh -L  8086:localhost:8086 root@192.168.1.125

iptable端口转发 所有经过63306的流量转发到 192.168.1.2:3306

iptables -t nat -A PREROUTING -p tcp --dport 63306 -j DNAT --to-destination 192.168.1.2:3306

socat端口转发 所有经过81的流量转发到 127.0.0.1:80 应该可以用iptable实现

mysql主从配置

配置主库

1.创建账号
GRANT REPLICATION SLAVE ON *.* TO 'replica_user'@'replica_server_ip';
FLUSH PRIVILEGES;

配置从库

js时间戳转时间

var bind_time = 1713769412106
var d  = new Date(bind_time)

dformat = [d.getMonth()+1,
               d.getDate(),
               d.getFullYear()].join('/')+' '+
              [d.getHours(),
 d.getMinutes(),

pv命令使用

mysql导入数据限速5M

 pv  -L 5m  demo.sql | mysql  -h123 -ufund -pdemo  jydb_pub

雷电模拟器(安卓9) 推荐mumu模拟器国际版 (安卓12)

运行命令,获取到hash标识
openssl x509 -inform PEM -subject_hash_old -in mitmproxy-ca.pem 

修改pem文件名字为框选处+0,如图我这里应该修改为 c8750f0d.0 image

证书导入

wondershaper

  1. 安装
 sudo yum install --nogpgcheck -y wondershaper 
  1. 设置限速, 网卡为 br-514b1655b053
sudo wondershaper br-514b1655b053 3072 3072
  1. 清除限速

pentaho server 9.4 安装和配置

官方文档

https://help.hitachivantara.com/Documentation/Pentaho/Data_Integration_and_Analytics/9.4/Setup/Use_PostgreSQL_as_Your_Repository_Database_(Archive_installation)

下载 pentaho-server-ce-9.4.0.0-343.zip

https://www.hitachivantara.com/en-us/products/pentaho-platform/data-integration-analytics/pentaho-community-edition.html

安装与配置(使用postgres)