Jump into RStudio β https://mybinder.org/v2/gist/agoose77/8a23847000930b177a62b3cd55ea96e8/HEAD?urlpath=%2Frstudio
- Visit https://mybinder.org/v2/gist/agoose77/870c5ff62469608cd16955b7dc2cab69/HEAD?urlpath=%2Fdoc%2Ftree%2Fapp.ipynb to start a BinderHub session.
- Run
app.ipynbfrom top to bottom. - Replace
/labwith/proxy/5000to see the running server!
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
| - Rspack / webpack produce `var` bundles, `@module-federation/vite` supports module bundles | |
| - Suspense can block for SSR if the server entrypoint uses the proper streaming utility / event source | |
| - `@module-federation/vite` only initialises the global MF instance in the browser, not SSR | |
| - With SSR, MF components can be pre-loaded and only async hydrated |
See https://github.com/agoose77/binder-secrets-demo
This spike runs an egress command (cp) inside the built R2D container inside an init container. A secondary init container runs sops to decrypt this secret. Finally, we mount the decrypted secret into the actual notebook container.
This is safer than simply invoking sops in notebook container, because the private sops key is never exposed to the user code.
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
| import * as fsp from "node:fs/promises"; | |
| import * as path from "node:path"; | |
| import { createRequestHandler } from "react-router"; | |
| import * as build from "virtual:react-router/server-build"; | |
| const MAGIC_BASE_URL = build.basename; | |
| const TRUE_BASE_URL = process.env.BASE_URL ?? "/"; | |
| const PRERENDER_PATHS = [`${MAGIC_BASE_URL}`, `${MAGIC_BASE_URL}parent/about/`]; |
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
| diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c | |
| index 6dfc61a9a..76291c489 100644 | |
| --- a/net/mac80211/cfg.c | |
| +++ b/net/mac80211/cfg.c | |
| @@ -511,7 +511,15 @@ static int ieee80211_add_key(struct wiphy *wiphy, struct net_device *dev, | |
| key->conf.flags |= IEEE80211_KEY_FLAG_NO_AUTO_TX; | |
| if (mac_addr) { | |
| + bool defer_hw_upload; | |
| + |
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 | |
| : "${nodegroup:?Need nodegroup}" | |
| : "${region:?Need region}" | |
| : "${cluster:?Need cluster}" | |
| # Get the autoscaling group name from the EKS node pool | |
| autoscaling_group_name=$(aws --region "${region}" eks describe-nodegroup --cluster-name "${cluster}" --nodegroup-name "${nodegroup}" --output json | jq '.nodegroup.resources.autoScalingGroups | last | .name' -r) | |
| # Determine the ASG launch template for this ASG | |
| launch_template_name=$(aws --region "${region}" autoscaling describe-auto-scaling-groups --auto-scaling-group-names "${autoscaling_group_name}" | jq '.AutoScalingGroups | last | .MixedInstancesPolicy.LaunchTemplate.LaunchTemplateSpecification.LaunchTemplateName' -r ) | |
| # Now query the image ID for that template |
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 python | |
| import argparse | |
| from kubernetes import client, config | |
| from kubernetes.client.exceptions import NotFoundException | |
| if __name__ == "__main__": | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("replicas", type=int) | |
| parser.add_argument("--deployment", default="node-placeholder") |
NewerOlder
