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
| package main | |
| import ( | |
| "crypto/tls" | |
| "flag" | |
| "fmt" | |
| "net" | |
| "os" | |
| "strings" | |
| "time" |
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 ubuntu:latest | |
| LABEL maintainer="wxk6b1203 <xxx>" | |
| # Default to UTF-8 file.encoding | |
| ENV LANG en_US.UTF-8 | |
| RUN groupadd --gid 1000 node \ | |
| && useradd --uid 1000 --gid node --shell /bin/bash --create-home node | |
| ENV NODE_VERSION 20.11.0 |
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
| [Interface] | |
| # self addresss | |
| Address = 10.7.0.1/24 | |
| PrivateKey = AAAAA | |
| # Important: IP table that allow to forward and MASQUERADE package. | |
| # Before using this, make sure to set net.ipv4.ip_forward = 1 at /etc/sysctl.conf | |
| PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE | |
| PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE | |
| # Any port firewall like iptables or firewalld allowd to access is okey. | |
| ListenPort = 8881 |
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 ubuntu:latest | |
| LABEL maintainer="wxk6b1203 <xxx>" | |
| # Default to UTF-8 file.encoding | |
| ENV LANG en_US.UTF-8 | |
| # Example oracle jdk version, change it to your own one. | |
| ENV JAVA_HOME=/jdk1.8.0_371 | |
| ADD jdk-8u*.tar.gz / | |
| SHELL ["/bin/bash", "-o", "pipefail", "-c"] |
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
| job "fabio" { | |
| datacenters = ["dc1"] | |
| type = "system" | |
| group "fabio" { | |
| network { | |
| port "lb" { | |
| static = 9999 | |
| } | |
| port "ui" { |
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
| job "gitea" { | |
| datacenters = ["dc1"] | |
| type = "service" | |
| group "gitea" { | |
| count = 1 | |
| volume "gitea" { | |
| type = "host" | |
| read_only = false |
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
| package main | |
| import "fmt" | |
| func GetStructTags(s interface{}, tag string) map[string]string { | |
| t := reflect.TypeOf(s) | |
| if t.Kind() == reflect.Ptr { | |
| t = t.Elem() | |
| } |
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
| <template> | |
| <a-modal v-model:visible="onShow"> </a-modal> | |
| </template> | |
| <script lang="ts"> | |
| // import { Options, Vue } from "vue-class-component"; | |
| // @Options({ | |
| // props: { | |
| // show: Boolean, |
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
| #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
| ; #Warn ; Enable warnings to assist with detecting common errors. | |
| SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
| SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
| ;SetCapsLockState, AlwaysOff | |
| CapsLock:: | |
| If (StartTime) |