This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
{ | |
"Statement": [ | |
{ | |
"Action": [ | |
"apigateway:*", | |
"cloudformation:CancelUpdateStack", | |
"cloudformation:ContinueUpdateRollback", | |
"cloudformation:CreateChangeSet", | |
"cloudformation:CreateStack", | |
"cloudformation:CreateUploadBucket", |
# https://docs.aws.amazon.com/cli/latest/userguide/awscli-install-windows.html | |
$dlurl = "https://s3.amazonaws.com/aws-cli/AWSCLI64PY3.msi" | |
$installerPath = Join-Path $env:TEMP (Split-Path $dlurl -Leaf) | |
$ProgressPreference = 'SilentlyContinue' | |
Invoke-WebRequest $dlurl -OutFile $installerPath | |
Start-Process -FilePath msiexec -Args "/i $installerPath /passive" -Verb RunAs -Wait | |
Remove-Item $installerPath | |
$env:Path += ";C:\Program Files\Amazon\AWSCLI\bin" |
set service dns forwarding name-server 1.1.1.1 | |
set service dns forwarding name-server 1.0.0.1 | |
set service dns forwarding name-server '2606:4700:4700::1111' | |
set service dns forwarding name-server '2606:4700:4700::1001' | |
set service dns forwarding options dnssec | |
set service dns forwarding options trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5 | |
set service dns forwarding options trust-anchor=.,20326,8,2,E06D44B80B8F1D39A95C0B0D7C65D08458E880409BBC683457104237C7F8EC8D | |
set service dns forwarding options dnssec-check-unsigned | |
set service dns forwarding options dnssec-timestamp=/config/dnsmasq/dnsmasq.time |
This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
#!/bin/bash | |
### Google Domains provides an API to update a DNS "Syntheitc record". This script | |
### updates a record with the script-runner's public IP, as resolved using a DNS | |
### lookup. | |
### | |
### Google Dynamic DNS: https://support.google.com/domains/answer/6147083 | |
### Synthetic Records: https://support.google.com/domains/answer/6069273 | |
USERNAME="" |
# EdgeOS v1.9 Google Fiber Config Script | |
# by Steve Jenkins (http://www.stevejenkins.com/) | |
# Last updated: Aug 14, 2016 | |
# Based on settings & scripts by Atlantisman, TK, and CompTech | |
# RUN THIS SCRIPT AS ROOT ON YOUR EDGEROUTER | |
# Script runs best if you copy and paste in sections | |
#______________________Basic Firewall Setup_______________________________ | |
configure |
package main | |
import ( | |
"net/http" | |
"log" | |
) | |
func redirect(w http.ResponseWriter, req *http.Request) { | |
// remove/add not default ports from req.Host | |
target := "https://" + req.Host + req.URL.Path | |
if len(req.URL.RawQuery) > 0 { |
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
cat jwtRS256.key | |
cat jwtRS256.key.pub |
The following is a list of public Docker images Travis uses for our container based builds. You can grab them with docker pull quay.io/travisci/travis-$lang
.
Images:
# My goal was two-fold: | |
# Avoid installing PHP for a single 12-line PHP file (only 5 actual LOC) | |
# Instead this utilises ngx_lua (and luaJIT) which avoids forking out and keeps the logic in-memory. | |
# Optimize where I could by moving static resources into the configuration/memory. | |
# The large download test files can also be moved into a ramdisk to eek out a bit more performance by reducing disk IO | |
# Serve the same speedtest from multiple domains using only relative URLs and traversing subdomains | |
# The idea is that speedtest.companyA.com can be served from the same server{} block as speedtest.companyB.com | |
# The index page has links to allow the user to force a connection over ipv4 or ipv6. A connection to /ipv4, for | |
# instance, will redirect the user to ipv4.speedtest.$X/ where $X is determined dynamically. Likewise for /ipv6, | |
# and there's /default to redirect to just speedtest.$X/ |