-
The Daisy
-
White Cross
-
Bottom layer
-
Triggers
-
-
Second layer:
-
Non-yellow edges
-
T-Shape
-
More Triggers!
-
-
Yellow Cross
-
F U R U' R' F'
-
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
// Find dependencies on `names` in `str` | |
// | |
// For `name` in `names`, find whether `str` contains `$(name)` | |
local extractDeps(names) = function(str) | |
std.filter( | |
function(m) | |
local pat = std.format('$(%s)', m); | |
std.member(str, pat), | |
names, | |
); |
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
# In Kubernetes clusters, it is common that Pods are being evicted from a node. | |
# Reasons include maintenance, out-of-resource situations (OOM), or failure of | |
# a node. | |
# | |
# This YAML document describes how to set up your Kubernetes Deployment in a | |
# way that your application will stay available even if this happens. | |
# | |
# Unlike during rollouts, during an eviction Kubernetes will NOT first start a | |
# "replacement" Pod and then stop the old one, but instead just check | |
# PodDisruptionBudgets and then terminate the Pod (unless the PDB would be |
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
use std::{future::Future, pin::Pin}; | |
use async_trait::async_trait; | |
use tokio::net::TcpListener; | |
type PinFuture<O> = Pin<Box<dyn Future<Output = O> + Send>>; | |
/// Run your application | |
pub fn run<M, S, T>(app: M) | |
where |
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
{"ignition":{"version":"3.4.0"},"passwd":{"users":[{"name":"core","sshAuthorizedKeys":["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILRFlkyW0MXxYjA1HUzJ18nlTLtXOHKV0rVJD/46v7Sb"]}]}} |
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
--- | |
stages: | |
- build | |
build-image: | |
stage: build | |
image: | |
# Use Google's Kaniko builder | |
name: gcr.io/kaniko-project/executor:debug |
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
#!/usr/bin/env bash | |
set -e -u -o pipefail -x | |
DISK='/dev/disk/by-id/ata-QEMU_HARDDISK_QM00003' | |
PART1="${DISK}-part1" | |
PART2="${DISK}-part2" | |
parted --script --align=optimal "$DISK" -- \ | |
mklabel gpt \ | |
mkpart ESP fat32 1MB 512MB set 1 esp on set 1 boot on \ |
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
#!/usr/bin/env bash | |
set -e -u -o pipefail -x | |
# General setup | |
timedatectl set-ntp true | |
# Partitioning | |
sgdisk /dev/sda \ | |
--new=1:0:+512M \ |
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
#![feature(proc_macro_hygiene, decl_macro)] | |
use rocket::State; | |
#[macro_use] | |
extern crate rocket; | |
struct ExampleA(&'static str); | |
type ExampleB = &'static str; |
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
MIT License | |
Copyright (c) 2022 Manuel Hutter | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
NewerOlder