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
| # Private networking from VPC -> PlanetScale | |
| # Based on https://planetscale.com/docs/vitess/connecting/private-connections | |
| # | |
| # Verified! | |
| # root@ubuntu:/# dig +short aws-us-east-2.private-connect.psdb.cloudt-2.pri | |
| # 10.0.1.104 | |
| # 10.0.2.131 | |
| # 10.0.0.161 | |
| # root@ubuntu:/# curl https://aws-us-east-2.private-connect.psdb.cloud | |
| # Welcome to PlanetScale. |
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
| name: "Determine Services Changed" | |
| description: "determine which services changed" | |
| inputs: | |
| github-token: | |
| description: github token (passed to paths-filter action) | |
| required: false | |
| default: "" | |
| outputs: | |
| go_services: | |
| description: "JSON array of changed Go services" |
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
| console.log("hello") |
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
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: maintenance-page | |
| data: | |
| maintenance.html: |- | |
| <!--HTML GOES HERE--> | |
| <!doctype html> | |
| <title>Site Maintenance</title> | |
| <link rel="stylesheet" href="maintenance.css"> |
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
| version: "3" | |
| services: | |
| react-app: | |
| # react-app code and Dockerfile within the client sub directory | |
| build: ./client | |
| stdin_open: true | |
| ports: | |
| - "3000:3000" | |
| networks: | |
| - mern-app |
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
| #!/bin/bash | |
| # Array of options | |
| colors=(000000 ffc857) | |
| num_colors=${#colors[@]} | |
| # Find current title color | |
| cur_value=$(sed -n -e 's/^.*title_color=//p' readme.md | cut -c 1-6) | |
| # Get index of current title color in colors array |
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
| version: '3' | |
| services: | |
| dind: | |
| image: "docker:dind" | |
| volumes: | |
| - jenkins-docker-certs:/certs/client | |
| - jenkins-data:/var/jenkins_home | |
| networks: | |
| jenkins: | |
| aliases: |
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 { check, group, sleep } from 'k6'; | |
| import http from 'k6/http'; | |
| import { Rate } from "k6/metrics"; | |
| // A custom metric to track failure rates | |
| var failureRate = new Rate("check_failure_rate"); | |
| // Version: 1.2 | |
| // Creator: WebInspector |