国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
| #!/bin/bash | |
| # data: 2020-03-31 | |
| # author: muzi502 | |
| # for: Fuck GFW and download some raw file form github without proxy using jsDelivr CDN | |
| # usage: save the .she to your local such as /usr/bin/rawg, and chmod +x /usr/bin/rawg | |
| # use rawg https://github.com/ohmyzsh/ohmyzsh/blob/master/tools/install.sh to download | |
| set -xue | |
| # GitHub rul: https://github.com/ohmyzsh/ohmyzsh/blob/master/tools/install.sh | |
| # jsDelivr url: https://cdn.jsdelivr.net/gh/ohmyzsh/ohmyzsh/tools/install.sh |
| # Tutorial: https://blog.creekorful.com/2020/01/how-to-expose-traefik-2-dashboard-securely-docker-swarm/ | |
| version: '3' | |
| services: | |
| reverse-proxy: | |
| image: traefik:2.3 | |
| command: | |
| # - '--log.level=DEBUG' | |
| - '--api=true' | |
| - '--api.dashboard=true' |
| #!/usr/bin/env bash | |
| PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
| export PATH | |
| # fonts color | |
| Green="\033[32m" | |
| Red="\033[31m" | |
| Yellow="\033[33m" | |
| GreenBG="\033[42;37m" | |
| RedBG="\033[41;37m" |
Open File in the top left corner and select sublime_text.exeSearch for bar in the left panel and look for: 80 78 05 00 0f 94 C1Save as and replace the old executable file with the newly created one.Enjoy an Unlimited User License!
| # Clone llama.cpp | |
| git clone https://github.com/ggerganov/llama.cpp.git | |
| cd llama.cpp | |
| # Build it | |
| make clean | |
| LLAMA_METAL=1 make | |
| # Download model | |
| export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin |
| from requests.adapters import HTTPAdapter, Retry | |
| from requests import Session | |
| retries = Retry( | |
| total=5, backoff_factor=1, status_forcelist=[502, 503, 504] | |
| ) | |
| session = Session() # reuse tcp connection | |
| session.mount("http://", HTTPAdapter(max_retries=retries)) | |
| session.mount("https://", HTTPAdapter(max_retries=retries)) |
Tool: draw.io
Animate the connectors
Animating your connectors is great for demonstrating directional flow charts, electrical circuits and more. To animate your connectors:
| { | |
| "Providers": [ | |
| { | |
| "name": "kimi-k2", | |
| "api_base_url": "https://openrouter.ai/api/v1/chat/completions", | |
| "api_key": "OPENROUTER_API_KEY", | |
| "models": [ | |
| "moonshotai/kimi-k2" | |
| ], | |
| "transformer": { |