- At the root of your backstage directory, run:
yarn --cwd packages/backend add @backstage/plugin-scaffolder-node yarn --cwd packages/backend add zod yarn --cwd packages/backend add fs-extra @types/fs-extra yarn install
- Create a
custom.ts
file inpackages/backend/src/plugins/actions/
with the contents of thecustom.ts
file below
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
app: | |
title: Test | |
baseUrl: http://localhost:3000 | |
organization: | |
name: Test | |
backend: | |
# Used for enabling authentication, secret is shared by all backend plugins | |
# See https://backstage.io/docs/auth/service-to-service-auth for |
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 python | |
""" | |
Very simple HTTP server in python (Updated for Python 3.7) | |
Usage: | |
./dummy-web-server.py -h | |
./dummy-web-server.py -l localhost -p 8000 | |
Send a GET request: |
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
#!/bin/bash | |
################################# | |
# Constants / global variables | |
################################# | |
LOGFILE='example.log' | |
LOGLEVEL='INFO' | |
################################# | |
# Functions |
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 | |
#Build and install neovim for Debian | |
#See: https://neovim.io/ | |
#See: https://github.com/neovim/neovim/wiki/Building-Neovim#quick-start | |
#Save current dir | |
pushd . > /dev/null | |
#Install dependencies |
-
brew install gnupg21, pinentry-mac
(this includes gpg-agent and pinentry) -
Generate a key:
$ gpg2 --gen-key
-
Take the defaults. Whatevs
-
Tell gpg-agent to use pinentry-mac:
$ vim ~/.gnupg/gpg-agent.conf
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
/* | |
This example was built using standard create-react-app out of the box with no modifications or ejections | |
to the underlying scripts. | |
In this example, i'm using Google as a social provider configured within the Cognito User Pool. | |
Each step also represents a file, so you can see how I've chosen to organize stuff...you can do it however | |
you'd like so long as you follow the basic flow (which may or may not be the official way....but its what I found that works. | |
The docs are pretty horrible) | |
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
#!/bin/bash | |
set -eu | |
function ensureMounted() { | |
source=$1 | |
shift | |
target=$1 | |
shift | |
type=$1 |
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 ruby | |
# Dependencies: | |
# - capsh | |
# - cgroup-utils | |
# - systemd | |
# - ruby | |
# | |
require 'fileutils' | |
require 'logger' | |
require 'optparse' |
NewerOlder