Skip to content

Instantly share code, notes, and snippets.

@twelvejie
twelvejie / tmux.md
Created December 23, 2016 01:53 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@twelvejie
twelvejie / tmux-cheatsheet.markdown
Created January 9, 2017 08:39 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@twelvejie
twelvejie / mysql-backup-windows.bat
Created April 17, 2018 06:25 — forked from sindresorhus/mysql-backup-windows.bat
Backup MySQL databases in separate gzipped sql files on Windows
@echo off
set dbUser=root
set dbPassword=password
set backupDir="C:\Documents and Settings\user\Desktop\backup\mysql"
set mysqldump="C:\Program Files\MySQL\MySQL Workbench 5.2 CE\mysqldump.exe"
set mysqlDataDir="C:\Documents and Settings\All Users\Application Data\MySQL\MySQL Server 5.1\data"
set zip="C:\Program Files\7-Zip\7z.exe"
:: get date
@twelvejie
twelvejie / server.py
Created January 25, 2022 03:20 — forked from mdonkers/server.py
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
import logging
class S(BaseHTTPRequestHandler):
@twelvejie
twelvejie / arch-linux-install.md
Created May 3, 2022 07:32 — forked from kylemanna/arch-linux-install.md
Minimal instructions for installing arch linux on an UEFI NVMe system with full system encryption using dm-crypt and luks

objection安装

Use the package manager pip to install foobar.

pip install objection

常用命令

MySQL 5.6 升级 5.7

!!! 注意 (通用)

  1. 注意大小写配置,必须统一。(lower_case_table_names = 1,0为区分,1为不区分)
  2. 其他配置用新版本,根据机器配置调整。
  3. 关闭数据库前,必须执行(set global innodb_fast_shutdown=0)

升级

  1. 执行以下语句,第一行必须执行。(设置为0时,InnoDB关闭的最慢,需要清除所有的undo log(除了XA prepare 的事务),完成change buffer的合并,将脏页刷盘,关闭redo log。)
# mysql --user root --password --execute="set global innodb_fast_shutdown=0"
# service mysqld stop

pentaho server 9.4 安装和配置

官方文档

https://docs.hitachivantara.com/r/en-us/pentaho-data-integration-and-analytics/9.4.x/mk-95pdia001/getting-started-with-pentaho-data-integration-and-analytics-installation

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

https://pentaho.com/download/#download-pentaho

安装与配置(使用postgres)

wondershaper

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

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

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

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

证书导入