A brief example on how to use npx
to run gist based scripts.
Read the article here https://neutrondev.com/npm-vs-npx-whats-the-difference/ or watch it on YouTube https://www.youtube.com/watch?v=fSHWc8RTJug
import com.cloudbees.plugins.credentials.* | |
import com.cloudbees.plugins.credentials.common.* | |
import com.cloudbees.plugins.credentials.domains.* | |
import com.cloudbees.plugins.credentials.impl.* | |
import com.cloudbees.jenkins.plugins.sshcredentials.impl.* | |
import org.jenkinsci.plugins.plaincredentials.impl.* | |
// def item = Jenkins.instance.getItem("your-folder") |
A brief example on how to use npx
to run gist based scripts.
Read the article here https://neutrondev.com/npm-vs-npx-whats-the-difference/ or watch it on YouTube https://www.youtube.com/watch?v=fSHWc8RTJug
# Split all objects and pass them to each filter below | |
# Create/Delete Namespace | |
(select(.verb == "create" and .objectRef.resource=="namespaces") | | |
"[" + .stageTimestamp + "] " + "Namespace Created: name=" + .objectRef.name), | |
(select(.verb == "delete" and .objectRef.resource=="namespaces") | | |
"[" + .stageTimestamp + "] " + "Namespace Deleted: name=" + .objectRef.name), | |
# Create/Delete Deployment |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# After loading this | |
# Install a pod network | |
# $ kubectl apply -f https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n') | |
# Allow pods to run on the master node | |
# $ kubectl taint nodes --all node-role.kubernetes.io/master- |
import com.cloudbees.plugins.credentials.* | |
import com.cloudbees.plugins.credentials.common.* | |
import com.cloudbees.plugins.credentials.domains.* | |
import com.cloudbees.plugins.credentials.impl.* | |
import com.cloudbees.jenkins.plugins.sshcredentials.impl.* | |
import org.jenkinsci.plugins.plaincredentials.impl.* | |
// def item = Jenkins.instance.getItem("your-folder") |
The Sysdig Datasource Plugin for Grafana is now open-source!
You can visit the documentation and code at https://github.com/draios/grafana-sysdig-datasource.
version: "2" | |
services: | |
varnish: | |
#hostname: magento2.docker | |
image: meanbee/magento2-varnish:latest | |
environment: | |
- VIRTUAL_HOST=magento2.docker | |
- VIRTUAL_PORT=80 | |
- HTTPS_METHOD=noredirect | |
ports: |
AWSTemplateFormatVersion: '2010-09-09' | |
Metadata: {} | |
Parameters: | |
########### | |
KeyName: | |
Description: The EC2 Key Pair to allow SSH access to the instance | |
Type: 'AWS::EC2::KeyPair::KeyName' | |
AvailabilityZone: | |
Description: Availability zone to deploy |
#!/bin/bash | |
# author: Yoram van de Velde ( [email protected] ) | |
# Examples of why pipefail is really important to use. | |
# We enable exit on error functionality | |
set -o errexit | |
# These commands will fail but not stop the script because of the pipes | |
# to succesfull commands. This works because error is output to stderr, |