This file contains 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
# Alpine Linux Installation | |
# Port 8443 mapped to 443 | |
# Port 8080 mapped to 80 | |
apk add ca-certificates nano | |
mkdir /workspace | |
cd /workspace | |
wget https://github.com/mholt/caddy/releases/download/v0.11.2/caddy_v0.11.2_linux_amd64.tar.gz | |
tar -xvzf caddy_v0.11.2_linux_amd64.tar.gz | |
nano Caddyfile | |
https://lan.otbeaumont.me { |
This file contains 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" | |
"crypto/ecdsa" | |
"crypto/elliptic" | |
"crypto/rand" | |
"fmt" | |
"log" |
This file contains 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 ( | |
"log" | |
"net/http" | |
"github.com/mholt/certmagic" | |
) | |
func main() { |
This file contains 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
#!/bin/sh#!/bin/sh | |
# Pre: | |
# setup-interfaces | |
# Follow Instruction | |
# setup-dns -d local 1.1.1.1 1.0.0.1 | |
# ifup eth0 | |
########### | |
# Check The User Parsed The Correct Arguments |
This file contains 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 golang:alpine | |
RUN apk add git | |
RUN go get -u github.com/caddyserver/builds | |
RUN go get -u github.com/mholt/caddy | |
WORKDIR /go/src/github.com/mholt/caddy/caddy | |
RUN go run build.go -goos=linux -goarch=amd64 | |
# TODO Add Plugins - ipfilter, | |
# The Final Stage | |
RUN cp ./caddy /bin/caddy |
This file contains 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 golang:alpine | |
RUN apk add git | |
RUN go get -u github.com/caddyserver/builds | |
RUN go get -u github.com/mholt/caddy | |
WORKDIR /go/src/github.com/mholt/caddy/caddy | |
RUN go run build.go -goos=linux -goarch=amd64 | |
# TODO Add Plugins - ipfilter, | |
# The Final Stage | |
RUN cp ./caddy /bin/caddy |
This file contains 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
function FindProxyForURL(url, host) { | |
if (timeRange(21, 7)) { | |
return "SOCKS5 10.0.0.122:1080"; | |
} | |
return "DIRECT"; | |
} |
This file contains 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
hostname: cirrus-server | |
ssh_authorized_keys: | |
- github:oscartbeaumont | |
k3os: | |
dns_nameservers: | |
- 1.1.1.1 | |
- 1.0.0.1 | |
ntp_servers: |
This file contains 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
#clear-linux-config | |
block-devices: [ | |
{name: "installer", file: "installer.img"} | |
] | |
targetMedia: | |
- name: ${installer} | |
type: disk | |
children: |
This file contains 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
powershell -Command "$settings = Get-Content '$env:LOCALAPPDATA\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json' -raw | ConvertFrom-Json; $settings.experimentalFeatures.experimentalMSStore = true; $settings | ConvertTo-Json -depth 32 | Set-Content '$env:LOCALAPPDATA\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json'" | |
OlderNewer