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
| { | |
| description = "A nixos cloudinit base image without nixos-infect"; | |
| inputs = { | |
| nixpkgs.url = "github:nixos/nixpkgs"; | |
| }; | |
| outputs = { self, nixpkgs }: | |
| let | |
| system = "x86_64-linux"; |
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
| #!/usr/bin/env bash | |
| # wget -qO 0-pve.sh https://gist.github.com/sugoidogo/4684e4659431e17d15be20171160c1f9/raw/ && bash 0-pve.sh | |
| set -e | |
| export DEBIAN_FRONTEND=noninteractive | |
| export APT_LISTCHANGES_FRONTEND=none | |
| function download { wget $* || curl -fLO $*; } | |
| function stream { wget -qO- $* || curl -fsSL $*; } | |
| function package { apt $* } #|| dnf $*; } | |
| echo "This script will download and run the installation script in a screen session" | |
| echo "The installation script will download post-installation scripts to $HOME and reboot the system upon successful installation" |
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
| /* | |
| Once you've signed in with Apple in your iOS app, turn the `identityToken` into a string with something like | |
| `String(data: identityToken, encoding: .utf8)`. Then use that string in the Authorization header: | |
| `urlRequest.addValue("Bearer \(identityString)", forHTTPHeaderField: "Authorization")` | |
| */ | |
| import Vapor | |
| import JWT |