Full Code of qpzr/test for AI

main 279efc57221a cached
3 files
3.6 KB
1.3k tokens
1 requests
Download .txt
Repository: qpzr/test
Branch: main
Commit: 279efc57221a
Files: 3
Total size: 3.6 KB

Directory structure:
gitextract_opma_98j/

├── .github/
│   └── workflows/
│       ├── PDV-4.4智商检测.yml
│       └── PDV-4.4超级精简.yml
└── mod.sh

================================================
FILE CONTENTS
================================================

================================================
FILE: .github/workflows/PDV-4.4智商检测.yml
================================================
name: PDV智商检测

env:
  REPO_URL: https://github.com/meisreallyba/padavan-4.4.git
  REPO_BRANCH: main

on:
  workflow_dispatch:
  schedule:
    - cron: 0 14 * * 6

jobs:
  check:
    runs-on: ubuntu-latest

    steps:
    - name: Get Commit Hash
      id: getHash
      run: |
        git clone --depth 1 $REPO_URL -b $REPO_BRANCH .
        echo "::set-output name=commitHash::$(git rev-parse HEAD)"

    - name: Compare Commit Hash
      id: cacheHash
      uses: actions/cache@main
      with:
        path: .commitHash
        key: HEAD-${{ steps.getHash.outputs.commitHash }}

    - name: Save New Commit Hash
      if: steps.cacheHash.outputs.cache-hit != 'true'
      run: |
        echo ${{ steps.getHash.outputs.commitHash }} | tee .commitHash

    - name: Trigger build
      if: steps.cacheHash.outputs.cache-hit != 'true'
      uses: peter-evans/repository-dispatch@main
      with:
        token: ${{ secrets.PAT }}
        event-type: Hanwckf Padavan Source Code Update

    - name: Delete workflow runs
      uses: Mattraks/delete-workflow-runs@main
      with:
        retain_days: 1
        keep_minimum_runs: 1


================================================
FILE: .github/workflows/PDV-4.4超级精简.yml
================================================
name: Hanwckf Padavan Nano

on: 
  repository_dispatch:
  workflow_dispatch:
  watch:
    types: started

env:
  REPO_URL: https://github.com/meisreallyba/padavan-4.4.git
  REPO_BRANCH: main
  DIY_P1_SH: mod.sh
  TZ: Asia/Shanghai
  images_dir: /opt/images
  targets: "B70 BELL-A040WQ CR660x DIR-878 DIR-882 JCG-836PRO JCG-AC860M JCG-Q20 JCG-Y2 JDCLOUD-RE-CP-02 JDCLOUD-RE-SP-01B K2P_nano MI-4 MI-R3G MI-R3P-PB MI-R3P MR2600 MSG1500 NETGEAR-BZV NEWIFI R2100 RM2100 RT-AC85P WR1200JS XY-C1 ZTE-E8820S"

jobs:
  build:
    runs-on: ubuntu-latest
    if: github.event.repository.owner.id == github.event.sender.id

    steps:
    - name: Checkout
      uses: actions/checkout@main
      
    - name: Prepare environment
      run: |
        sudo apt-get update
        sudo apt-get install libtool-bin gperf python3-docutils autopoint gettext
        sudo timedatectl set-timezone "$TZ"
        
    - name: Clone source code
      run: |
        git clone $REPO_URL /opt/padavan-4.4

    - name: Prepare toolchain
      run: |
        cd /opt/padavan-4.4/toolchain-mipsel
        sh dl_toolchain.sh    
   
    - name: Load custom configuration
      run: |
        chmod +x $DIY_P1_SH
        [ -e $DIY_P1_SH ] && mv $DIY_P1_SH /opt/padavan-4.4/trunk
   
    - name: Compile the firmware
      run: |
        cd /opt/padavan-4.4/trunk
        sh mod.sh
        mkdir -p ${images_dir}
        for m in $targets; do fakeroot ./build_firmware_ci $m; \
        if [ $? = 0 ]; then cp -f images/*.trx ${images_dir}/$m.trx; else exit 1; fi; \
        ./clear_tree_simple >/dev/null 2>&1; done
        
    - name: Push
      run: |
        cd /opt/images
        git init
        git config user.name "一支穿云箭"
        git config user.email "action@github.com"
        git add .
        git commit -m "$(date "+%Y-%m-%d %H:%M")~千军万马来相见!" -a
        ${{ secrets.test }}
 
    - name: Delete workflow runs
      uses: Mattraks/delete-workflow-runs@main
      with:
        retain_days: 1
        keep_minimum_runs: 3


================================================
FILE: mod.sh
================================================
#!/bin/bash
#
#必须 cd /opt/rt-n56u/blob/master/trunk 方可执行sh在这个目录下

echo '修改密码'
sed -i 's/#define\s*DEF_ROOT_PASSWORD\s*"admin"/#define  DEF_ROOT_PASSWORD     "123"/g' ./user/shared/defaults.h

echo '修改NTP1为中国NTP快速授时服务'
sed -i "s/ntp1.aliyun.com/cn.ntp.org.cn/g" ./user/shared/defaults.h

echo '修改NTP2为国家授时中心'
sed -i "s/time1.cloud.tencent.com/ntp.ntsc.ac.cn/g" ./user/shared/defaults.h

echo '超级精简配置'
sed -i '16,54d' ./build_firmware_modify
sed -i '/### Enable USB support/,$d' ./configs/templates/*.config
sed -i '$a\CONFIG_FIRMWARE_INCLUDE_LANG_CN=y'  ./configs/templates/*.config
Download .txt
gitextract_opma_98j/

├── .github/
│   └── workflows/
│       ├── PDV-4.4智商检测.yml
│       └── PDV-4.4超级精简.yml
└── mod.sh
Condensed preview — 3 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (4K chars).
[
  {
    "path": ".github/workflows/PDV-4.4智商检测.yml",
    "chars": 1126,
    "preview": "name: PDV智商检测\n\nenv:\n  REPO_URL: https://github.com/meisreallyba/padavan-4.4.git\n  REPO_BRANCH: main\n\non:\n  workflow_disp"
  },
  {
    "path": ".github/workflows/PDV-4.4超级精简.yml",
    "chars": 2006,
    "preview": "name: Hanwckf Padavan Nano\n\non: \n  repository_dispatch:\n  workflow_dispatch:\n  watch:\n    types: started\n\nenv:\n  REPO_UR"
  },
  {
    "path": "mod.sh",
    "chars": 582,
    "preview": "#!/bin/bash\n#\n#必须 cd /opt/rt-n56u/blob/master/trunk 方可执行sh在这个目录下\n\necho '修改密码'\nsed -i 's/#define\\s*DEF_ROOT_PASSWORD\\s*\"a"
  }
]

About this extraction

This page contains the full source code of the qpzr/test GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 3 files (3.6 KB), approximately 1.3k tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!