Implementing F. E2E Feature Flags 🔴
- Adding New Feature 🔴
- Enabling Feature 🔴
- Disabling Feature 🔴
- Modifying Feature Value 🔴
| # pip install diffusers transformers accelerate | |
| # Load model | |
| from diffusers import DiffusionPipeline, DPMSolverMultistepScheduler | |
| import torch | |
| repo_id = "stabilityai/stable-diffusion-2" | |
| device = "cuda" | |
| pipe = DiffusionPipeline.from_pretrained(repo_id, torch_dtype=torch.float16, revision="fp16") |
| https://stackoverflow.com/a/10548919/20335188 | |
| # steps to merge child-repo into parent-repo | |
| brew install git-filter-repo # will need it later | |
| git clone https://github.com/yourusername/child-repo.git | |
| cd child-repo | |
| git filter-repo --to-subdirectory-filter child-repo # rewrite history to move all files to child-repo folder |
| printf 'FROM scratch\nCOPY . /' | DOCKER_BUILDKIT=1 docker build -f - -o /tmp/docker-context . |
| #!/bin/bash | |
| # Function to check if Kubernetes Dashboard is installed | |
| function is_dashboard_installed { | |
| kubectl get services --namespace=kubernetes-dashboard | grep kubernetes-dashboard >/dev/null 2>&1 | |
| return $? | |
| } | |
| # Function to check if Service Account and ClusterRoleBinding are installed | |
| function is_user_installed { |
| #!/bin/bash | |
| # Set the domain name | |
| domain="example.com" | |
| wildcard_domain="*.example.com" | |
| # Check if the certificate and key files already exist | |
| if [[ -f "${domain}.crt" && -f "${domain}.key" ]]; then | |
| echo "Certificate and key files already exist. Exiting..." | |
| exit 0 |
Implementing F. E2E Feature Flags 🔴
| ➤ YN0000: built @my/ui in 4528 ms | |
| ➤ YN0000: Done in 5s 16ms | |
| - info Loaded env from /Users/0xbigboss/send/send-distributions-app/apps/next/.env.local | |
| - info Loaded env from /Users/0xbigboss/send/send-distributions-app/apps/next/.env | |
| Welcome to Tamagui! | |
| You can update this monorepo to the latest Tamagui release just by running: |
You need to have zx installed before executing this file.
npm install -g zx
zx upgrade.zx.md| printf 'FROM scratch\nCOPY . /' | DOCKER_BUILDKIT=1 docker build -f - -o /tmp/docker-context . |
| #!/usr/bin/env zx | |
| // -*- mode: js -*- | |
| const orgName = process.argv[3]; | |
| if (!orgName) { | |
| console.log(`Usage: gh-org-contribs ${chalk.bold("<org-name>")}`); | |
| process.exit(1); | |
| } |