{ "tools": { "media": { "audio": { "enabled": true, "models": [ { "type": "cli", "command": "/home/YOUR_USER/.openclaw/tools/parakeet/parakeet-audio-client.py", "args": ["{{MediaPath}}", "{{OutputDir}}"]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <keymap> | |
| <global> | |
| <joystick profile="game.controller.default"> | |
| <a>Select</a> | |
| <b>Back</b> | |
| <x>ContextMenu</x> | |
| <y>FullScreen</y> | |
| <start>ActivateWindow(PlayerControls)</start> | |
| <back>PreviousMenu</back> | |
| <guide>ActivateWindow(Home)</guide> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| irm asheroto.com/winget | iex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 这个脚本会打开你当前路径的所有 osz,osk文件 | |
| Get-ChildItem -Path . | Where-Object { $_.Extension -in '.osz','.osk' } | ForEach-Object { Invoke-Item $_.FullName } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-ChildItem -File | ForEach-Object { | |
| $newName = [System.IO.Path]::ChangeExtension($_.Name, ".7z") | |
| if ($newName -ne $_.Name) { | |
| Rename-Item -Path $_.FullName -NewName $newName -ErrorAction SilentlyContinue | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM python:3 | |
| WORKDIR /usr/src/app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| CMD [ "python", "./your-daemon-or-script.py" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import argparse | |
| parser = argparse.ArgumentParser(description='Personal information') | |
| parser.add_argument("--name",dest='name',type=str,help='Name of the candidate') | |
| parser.add_argument('--surname',dest='surname',type=str,help='surname of the candidate') | |
| parser.add_argument('--age',dest='age',type=int,help='Age of the candidate') | |
| args=parser.parse_args() | |
| print(args.name) | |
| print(args.surname) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from openai import OpenAI | |
| client = OpenAI( | |
| # 若没有配置环境变量,请用阿里云百炼API Key将下行替换为:api_key="sk-xxx", | |
| # 新加坡和北京地域的API Key不同。获取API Key:https://www.alibabacloud.com/help/zh/model-studio/get-api-key | |
| api_key="", | |
| # 以下是北京地域base-url,如果使用新加坡地域的模型,需要将base_url替换为:https://dashscope-intl.aliyuncs.com/compatible-mode/v1 | |
| base_url="https://dashscope-intl.aliyuncs.com/compatible-mode/v1", | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #在root情况下执行,如果不是root则throw错误 | |
| curl "https://github.com/juewuy/ShellCrash/raw/master/ShellCrash.tar.gz" -o /tmp/ShellCrash.tar.gz | |
| mkdir -p /tmp/SC_tmp && tar -zxf '/tmp/ShellCrash.tar.gz' -C /tmp/SC_tmp/ && bash /tmp/SC_tmp/init.sh && source /etc/profile >/dev/null | |
| Crash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # 这是一个显示系统信息的示例脚本 | |
| # 用法: ./system_info.sh | |
| echo "==============================" | |
| echo " 系统信息报告 " | |
| echo "==============================" | |
| # 当前日期和时间 | |
| echo "日期时间: $(date)" |