# Anchor
click_link 'Save'
# Button
click_button 'awesome'
# Both above
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
apiVersion: carto.run/v1alpha1 | |
kind: ClusterBlueprint | |
metadata: | |
name: web-supplychain | |
spec: | |
outputTypeRef: | |
name: image | |
outputs: | |
- name: digest |
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
apiVersion: carto.run/v1alpha1 | |
kind: ClusterSupplyChain | |
metadata: | |
name: gitops-supply-chain | |
spec: | |
selector: | |
matchLabels: | |
workload-type: web | |
matchFields: | |
- {key: ".spec.target", operation: In, value: ["gitops"]} |
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 | |
# usages: | |
# As a script: | |
# $ ./can_debug.bash | |
# > you are Rasheed Abdul-Aziz | |
# As a library of functions: | |
# $ source can_debug.bash | |
# $ say_my_name | |
# > usage: say_my_name <your-name-here> |
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
{ | |
"release": { | |
"version": "0.3.52", | |
"release_type": "Developer Release", | |
"release_date": "2019-2-13", | |
"eula_slug": "pivotal_beta_eula", | |
"description": "The ISV CI team uses these files to test behaviour,\nboth manually and in our enemy tests\n", | |
"availability": "Admins Only", | |
"release_notes_url": "https://github.com/cf-platform-eng/test-pas-tiles/app-only" | |
}, |
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
class LayoutRenderer | |
include ActionView::Helpers | |
include Webpacker::Helper | |
def csp_meta_tag; | |
end | |
end | |
namespace :webpacker do |
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
namespace :server do | |
desc "Start the webpack dev server" | |
task :webpack do | |
system "./bin/webpack-dev-server" | |
end | |
desc "Start the rails dev server" | |
task :rails do | |
system "rails server" | |
end |
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
target="${1:-you forgot a target}" | |
echo "Target is ${target}" | |
make -np ${target} | grep -e "^${target}:" |
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 | |
if [[ -z "${GITHUB_KEY}" ]] ; then | |
echo "GITHUB_KEY not defined" | |
exit 1 | |
fi | |
mkdir -p $HOME/.ssh | |
chmod 700 $HOME/.ssh | |
echo "${GITHUB_KEY}" > $HOME/.ssh/id_github |
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
def pivnet_products(product_pattern=""): | |
""" | |
gets all pivnet products that match exactly with the product pattern, or partial matches | |
when there are no exact matches. | |
""" | |
url = 'https://network.pivotal.io/api/v2/products' | |
all_products = json.load(pivnet_get(url)) | |
products = [p for p in all_products["products"] if product_pattern == p["name"]] | |
if len(products) == 0: | |
products = [p for p in all_products["products"] if product_pattern in p["name"]] |
NewerOlder