If you don't know what Wireguard is, well, you should. It's fast, easy to setup and highly configurable. We will configure Wireguard for multiple users with various restrictions using iptables.
This should fit most setups (not mine though 😉)
If you don't know what Wireguard is, well, you should. It's fast, easy to setup and highly configurable. We will configure Wireguard for multiple users with various restrictions using iptables.
This should fit most setups (not mine though 😉)
package main | |
import ( | |
"bytes" | |
"context" | |
"crypto/tls" | |
"errors" | |
"fmt" | |
"io/ioutil" | |
"log" |
mockgen
from golang/mock
//go:generate
commands for mocks generationmocks.yml
CutAndFry
with golang/mock
, see potato_test.go
part 1previousCall *gomock.Call
golang/mock
with mockery
, see potato_mockery_test.go
package main | |
import ( | |
"crypto/rand" | |
"encoding/binary" | |
"fmt" | |
"hash/maphash" | |
mathrand "math/rand" | |
"runtime" | |
"sync" |
package main | |
import ( | |
"context" | |
"fmt" | |
"io" | |
"log" | |
"net" | |
"net/http" | |
"net/smtp" |
FROM debian:buster-slim | |
WORKDIR /domoticz | |
EXPOSE 8080/tcp 443/tcp 6144 | |
ENTRYPOINT [ "/domoticz/domoticz" ] | |
RUN apt-get update -y && \ | |
apt-get install -y wget libusb-0.1-4 libcurl3-gnutls && \ | |
wget -q -O domoticz.tgz https://releases.domoticz.com/releases/release/domoticz_linux_x86_64.tgz && \ | |
tar -xf domoticz.tgz && \ | |
rm domoticz.tgz *.txt |
name: Buildx release | |
on: | |
release: | |
types: [published] | |
paths-ignore: | |
- .github/workflows/buildx-latest.yml | |
- README.md | |
jobs: | |
buildx: |
name: Buildx latest | |
on: | |
push: | |
branches: [master] | |
paths-ignore: | |
- .github/workflows/buildx-release.yml | |
- README.md | |
jobs: | |
buildx: | |
runs-on: ubuntu-latest |
name: Buildx latest | |
on: | |
push: | |
branches: [master] | |
paths-ignore: | |
- .github/workflows/buildx-release.yml | |
- README.md | |
jobs: | |
buildx: | |
runs-on: ubuntu-latest |