پنل تحت وب مدیریت V2ray و ساخت کاربر و مدیریت سرور
mkdir x-ui && cd x-ui
docker run -itd --network=host \
-v $PWD/db/:/etc/x-ui/ \
-v $PWD/cert/:/root/cert/ \
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" | |
| "strconv" | |
| "strings" | |
| ) |
| --- BEFORE USING, change language entries to fit your needs. | |
| local lspconfig = require'lspconfig' | |
| local configs = require'lspconfig/configs' | |
| local util = require 'lspconfig/util' | |
| local Dictionary_file = { | |
| ["pt-BR"] = {vim.fn.getenv("NVIM_HOME") .. "spell/dictionary.txt"} -- is there another way to find ~/.config/nvim ? | |
| } | |
| local DisabledRules_file = { |
| # Export dump particular database. | |
| $ kubectl exec {{podName}} -n {{namespace}} -- mysqldump -u {{dbUser}} -p{{password}} {{DatabaseName}} > <scriptName>.sql | |
| # Export dump all databases. | |
| $ kubectl exec {{podName}} -n {{namespace}} -- mysqldump -u {{dbUser}} -p{{password}} --all-databases > <scriptName>.sql | |
| # Restore a database from a dump. | |
| $ kubectl exec -it {{podName}} -n {{namespace}} -- mysql -u {{dbUser}} -p{{password}} {{DatabaseName}} < <scriptName>.sql |
| # Install these packages (use your favorite AUR tool here) | |
| yay -S minikube kubectl docker-machine-driver-kvm2 libvirt qemu-headless ebtables | |
| # Get libvirt going | |
| sudo systemctl enable libvirtd.service | |
| sudo usermod -a -G libvirt $(whoami) | |
| # This fix thanks to http://blog.programmableproduction.com/2018/03/08/Archlinux-Setup-Minikube-using-KVM/ | |
| sudo virsh net-autostart default |
| containers: | |
| - name: my-main-container | |
| # ... | |
| # other container config here | |
| # ... | |
| env: | |
| - name: DOCKER_HOST | |
| value: tcp://localhost:2375 | |
| - name: dind | |
| image: docker:18.05-dind |
| #!/usr/bin/env bash | |
| # This script is meant to build and compile every protocolbuffer for each | |
| # service declared in this repository (as defined by sub-directories). | |
| # It compiles using docker containers based on Namely's protoc image | |
| # seen here: https://github.com/namely/docker-protoc | |
| set -e | |
| REPOPATH=${REPOPATH-/opt/protolangs} | |
| CURRENT_BRANCH=${CIRCLE_BRANCH-"branch-not-available"} |
| [ | |
| { | |
| "name": "Afghanistan", | |
| "dial_code": "+93", | |
| "code": "AF" | |
| }, | |
| { | |
| "name": "Aland Islands", | |
| "dial_code": "+358", | |
| "code": "AX" |