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] | |
name = "async-graphql-issue" | |
version = "0.1.0" | |
authors = ["Oscar Beaumont <[email protected]>"] | |
edition = "2018" | |
[dependencies] | |
async-graphql = "2.8.5" | |
tokio = { version = "0.2.22", features = ["full"] } |
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
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit } | |
echo "Configure Computer Name" | |
$computerName = Read-Host 'Enter New Computer Name' | |
Write-Host "Renaming this computer to: " $computerName -ForegroundColor Yellow | |
Rename-Computer -NewName $computerName | |
echo "Fixing time" | |
Set-TimeZone "W. Australia Standard Time" | |
net start w32time |
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
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'" | |
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
#clear-linux-config | |
block-devices: [ | |
{name: "installer", file: "installer.img"} | |
] | |
targetMedia: | |
- name: ${installer} | |
type: disk | |
children: |
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
hostname: cirrus-server | |
ssh_authorized_keys: | |
- github:oscartbeaumont | |
k3os: | |
dns_nameservers: | |
- 1.1.1.1 | |
- 1.0.0.1 | |
ntp_servers: |
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
function FindProxyForURL(url, host) { | |
if (timeRange(21, 7)) { | |
return "SOCKS5 10.0.0.122:1080"; | |
} | |
return "DIRECT"; | |
} |
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 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 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 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 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
#!/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 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 ( | |
"log" | |
"net/http" | |
"github.com/mholt/certmagic" | |
) | |
func main() { |