为了在Docker中运行OpenWrt系统,我们需要用到OpenWrt的docker镜像,网上有很多人分享已经制作好的镜像。但是,每个人都有自己不同的需求,自己学会制作镜像就显得特别重要了。
其实使用OpenWrt的固件, 可以很方便的构建Docker镜像,这里的固件不光是官方固件,也可以是经过自己定制编译生成的固件。
{ | |
"ai.dev": { | |
"models": { | |
"gemini-2.5-flash-preview-04-17": { | |
"rpm": 10, | |
"tpm": 250000, | |
"rpd": 500 | |
}, | |
"gemini-2.5-pro-preview-05-06": { | |
"rpm": 5, |
package main | |
import ( | |
"context" | |
"github.com/awa/go-iap/playstore" | |
"github.com/gin-gonic/gin" | |
"github.com/gorilla/websocket" | |
"google.golang.org/api/androidpublisher/v3" | |
"io/ioutil" | |
"net/http" |
package main | |
import ( | |
"crypto/tls" | |
"crypto/x509" | |
"log" | |
"net/rpc" | |
) | |
func main() { |
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.Networking; | |
using System.IO; | |
using System; | |
using System.Security.Cryptography; | |
using System.Text; | |
using UnityEngine.UI; | |
using System.Collections.Generic; |
using UnityEngine; | |
using UnityEngine.UI; | |
using DG.Tweening; | |
[RequireComponent(typeof(Text))] | |
public class ToastText : MonoBehaviour { | |
void FlyTo(Graphic graphic) { | |
RectTransform rt = graphic.rectTransform; | |
var originPositon = rt.localPosition; | |
Color c = graphic.color; |
#!/bin/bash | |
export LANG="en_US.UTF-8" | |
#export LANG="zh_CN.UTF8" | |
[ -f /etc/rc.d/init.d/functions ] && source /etc/rc.d/init.d/functions | |
[ -f /etc/profile ] && . /etc/profile | |
[ -f ~/.bash_profile ] && . ~/.bash_profile | |
ethn=$1 | |
while true | |
do | |
RX_pre=$(cat /proc/net/dev | grep $ethn | sed 's/:/ /g' | awk '{print $2}') |
#!/bin/sh | |
zid="<Zone ID>" | |
domain="<Your Domain>" | |
key="<Your Key>" | |
mail="<Your Account Mail>" | |
#option | |
#did="<domain id>" | |
#get domain id |
###QPS控制,10 QPS
通过Ticker触发消息,达到流控目的
import "time"
rate := time.Second / 10
throttle := time.Tick(rate)
for req := range requests {
<-throttle // rate limit our Service.Method RPCs