Skip to content

Instantly share code, notes, and snippets.

apache-hop常用配置和命令

HOP_CONFIG_FOLDER

HOP_CONFIG_FOLDER ,定义了 Apache Hop 存储所有配置信息的根目录。环境变量不配置,默认是hop的安装目录。

查看项目名称

./hop-conf.sh --projects-list

网络常用命令

查看局域网冲突ip,以及mac地址

sudo arp-scan --localnet -g \
| awk 'NR>2 && $1~/^[0-9]+\./ { ip=$1; mac=$2; cnt[ip]++; macs[ip]=(ip in macs)?macs[ip]","mac:mac } END { for(i in cnt) if(cnt[i]>1) printf "%s %d %s\n", i, cnt[i], macs[i] }' \
| sort -k2,2nr
@twelvejie
twelvejie / omarchy.md
Last active September 19, 2025 14:45

omarchy配置

输入法

#安装fcitx5-configtool  fcitx5-rime
sudo pacman -Sy fcitx5-configtool  fcitx5-rime rime-luna-pinyin

添加中文输入

  1. 命令行运行 fcitx5-config-qt

cgroups

检查cgroups

参考资料:安装 配置

grep -i cgroup /proc/mounts

安装

sudo yum install libcgroup

wsl常用命令

  1. 查看所有已安装的linux
wsl -l -v
  1. 导出linux镜像
wsl --export <Distribution Name> <FileName>
  1. 导入Linux镜像

mydumper 常用命令

源文档

导出数据

mydumper -h 11.22.33.44 -u root -P3307 -p pAssw0rd -B myschema -t 4 -o myschema_dump/

导入数据

myloader -h <cluster_dns_endpoint> -u master -p pAssw0rd -P 3307 -B myschema -t 4 -d myschema_dump

从 mysql 导出到 pg

# vim my.load
LOAD DATABASE
         FROM      mysql://root:[email protected]:3307/demo_db?useSSL=false
         INTO      postgresql://postgres:123123@@[email protected]:5432/postgres?demo_db
with prefetch rows = 500
WITH include drop, create tables, create indexes, workers = 1, concurrency = 1
;
# 运行

常用(需要先安装fisher)

prompts
  1. tide
# 安装
fisher install IlanCosman/tide@v6
# 配置
tide configure

所有常用插件

常用语句

进程连接
  1. 查看表是否在使用 如果查询结果为空。则证明表没有在使用
show open tables where in_use > 0 ;
  1. 显示用户正在运行的进程 除了 root 用户能看到所有正在运行的进程外,其他用户都只能看到自己正在运行的线程,看不到其它用户正在运行的进程。
show processlist;