Skip to content

Instantly share code, notes, and snippets.

@cnjax
cnjax / gist:58dbd5c5861ab16cb7585f88f76f53cb
Created June 18, 2025 01:58
enable N1 for usb gether.
echo device | tee /sys/bus/platform/drivers/dwc3-meson-g12a/d0078080.usb/usb_role/d0078080.usb-role-switch/role
echo c9100000.usb | tee /sys/bus/platform/drivers/dwc2/unbind
echo c9100000.usb | tee /sys/bus/platform/drivers/dwc2/bind
/sbin/modprobe g_ether
curl -O https://repo.percona.com/apt/percona-release_latest.generic_all.deb
apt install vim curl binutils net-tools gnupg2 lsb-release ./percona-release_latest.generic_all.deb
percona-release setup pxb-80 pxc-80 tools
#apt install percona-xtrabackup-80
apt install percona-xtrabackup-24
apt install qpress -y
xbstream -x -v -C ./mysql_bkdata/ <test_qp.xb
xtrabackup --decompress --remove-original --target-dir=mysql_bkdata/
xtrabackup --defaults-file=mysql_bkdata/backup-my.cnf --prepare --target-dir=./mysql_bkdata/
@cnjax
cnjax / gist:1b278b09df3d3463b1773e33b76b5d4b
Created April 24, 2025 02:19
wps-office-10.1.0.6634-1.x86_64.rpm for centos7 or rhel7 linux
URL: https://www.xitongzhijia.net/soft/130900.html
@cnjax
cnjax / gist:f6373cf70fc1ee706392c3af365f1ac2
Created April 7, 2025 09:22 — forked from ares-koen/gist:a6922855d31e484b8ab72e4ff5bfc228
UniDoc/UniPDF and UniDoc/UniOffice license fix for development testing. To use in Production, get a license from unidoc.io.
===========================================================================================================================================
[Example Version: unidoc/[email protected]]
===========================================================================================================================================
1. In [GOPATH]/pkg/mod/github.com/unidoc/[email protected]/common/license/license.go, replace Public Key with the following key.
___________________________________________________________________________________________________________________________________________
New Public Key: "\u000a\u002d\u002d\u002d\u002d\u002d\u0042\u0045\u0047\u0049\u004e\u0020\u0050\u0055\u0042\u004c\u0049\u0043\u0020\u004b\u0045\u0059\u002d\u002d\u002d\u002d\u002d\u000a\u004d\u0049\u0049\u0042\u0049\u006a\u0041\u004e\u0042\u0067\u006b\u0071\u0068\u006b\u0069\u0047\u0039\u0077\u0030\u0042\u0041\u0051\u0045\u0046\u0041\u0041\u004f\u0043\u0041\u0051\u0038\u0041\u004d\u0049\u0049\u0042\u0043\u0067\u004b\u0043\u0041\u
@cnjax
cnjax / agent loop
Created March 10, 2025 07:22 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@cnjax
cnjax / gist:03e2d9006fcbcf29e78665501c30230f
Last active February 21, 2024 08:19
How to crack root password
apt install john
/usr/sbin/unshadow passwd.txt shadow.txt >output.db
john output.db --wordlist=rockyou.txt
https://github.com/praetorian-inc/Hob0Rules/raw/master/wordlists/rockyou.txt.gz
https://github.com/praetorian-inc/Hob0Rules/blob/master/README.md
apt install hashcat
@cnjax
cnjax / edgetunnel
Created May 27, 2023 02:31
thank all tg friends.
add new ip block
63.141.128.0/24
@cnjax
cnjax / pocketbase.go
Last active August 16, 2023 11:02 — forked from r--w/pocketbase.go
fix for auth admin with password
package pocketbase
import (
"errors"
"fmt"
"github.com/duke-git/lancet/v2/convertor"
"github.com/go-resty/resty/v2"
"golang.org/x/sync/singleflight"
"time"
)
crontab download
.com
.net
.org
.de
.icu
.uk
.ru
.info
.top
.xyz