$ ./slim.sh ssrp # 编译官方库里没有编译的包,只需要编译一次,编译完在./bin/packages目录下,不用删除以后复用
$ ./slim.sh image # 打包ROM,收工。各种格式的rom在./bin/targets下
- 构建过程需要下载包,注意网速
- 构建环境依赖docker
from chainforge.providers import provider | |
from openai import OpenAI | |
import os | |
OPENROUTER_API_KEY = os.environ.get('OPENROUTER_API_KEY') or '' #add your key here | |
# JSON schemas to pass react-jsonschema-form, one for this provider's settings and one to describe the settings UI. | |
client = OpenAI( | |
base_url="https://openrouter.ai/api/v1", |
#!/bin/bash | |
# The script creates a new sudo user hardenhost, and imports the SSH public key to the user’s authorized_keys file. | |
# Run the script with root privilege: | |
# $ curl -ssL 'https://hardenhost.com/start.sh' | sudo bash | |
# Or use wget in case curl is not installed: | |
# $ wget -qO- 'https://hardenhost.com/start.sh' | sudo bash | |
# To disable user hardenhost from login or remote access, you can set the user’s shell to /sbin/nologin or /bin/false. | |
# $ sudo usermod hardenhost -s /sbin/nologin |
# | |
# dozzle/compose.yaml | |
# | |
version: "3.8" | |
services: | |
app: | |
container_name: dozzle | |
image: amir20/dozzle:latest |
def ndkRoot = '/usr/local/android/ndk' | |
project.rootProject.file('gradle.properties').withReader { reader -> | |
def userProps = new Properties() | |
userProps.load(reader) | |
ndkRoot = properties.get('ndk.dir') | |
} |
// a pool embedding the original pool and adding adbno state | |
type DbnoPool struct { | |
redis.Pool | |
dbno int | |
} | |
// "overriding" the Get method | |
func (p *DbnoPool)Get() Connection { | |
conn := p.Pool.Get() |