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
package controller | |
import ( | |
"bytes" | |
"context" | |
"encoding/json" | |
"errors" | |
"fmt" | |
"io" | |
"log" |
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 | |
# Detect changed workspaces to drive a monorepo CI system. Supports bash 3.x+. The output | |
# of this script is a JSON array of workflows to run. This script is generic and can be | |
# used for any CI system. | |
SCRIPT_PATH="$(cd "$(dirname "$0")"; pwd -P)" | |
REPO_PATH=${REPO_PATH:-"$(cd "${SCRIPT_PATH}/../" && pwd -P)"} | |
set -e # exit immediately on failures | |
set -o pipefail # exit code of pipeline is code of first failure, not last | |
set -o noglob # don't expand glob strings (bash 3x auto-expands some but not others) |
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
package main | |
import ( | |
"context" | |
"encoding/base64" | |
"log" | |
"os" | |
"time" | |
"github.com/oracle/oci-go-sdk/v65/common" |
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
package main | |
import ( | |
"context" | |
"encoding/base64" | |
"log" | |
"os" | |
"github.com/oracle/oci-go-sdk/v65/common" | |
"github.com/oracle/oci-go-sdk/v65/secrets" |
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 | |
# split a monolithic k8s manifest file into separate files. | |
set -euo pipefail | |
REMOVE_KEYS="chart:|release:|heritage:" | |
function usage { | |
cat <<EOF | |
Usage: $(basename "$0") [output_dir] < input.yml | |
Explode a monolithic k8s manifest file into separate files during vendoring. |
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
Vagrant.configure('2') do |config| | |
config.vm.box = 'ubuntu/trusty64' | |
config.vm.network :private_network, ip: '10.10.0.10' | |
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
host_key_checking: true | |
host_key_checking_option: "{{ (host_key_checking == true) | ternary('','-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no') }}" | |
bastion_host: false | |
bastion_user: "{{ lookup('env', 'USER') }}" | |
bastion_ssh_arg: -o ProxyCommand='ssh {{host_key_checking_option}} -W %h:%p -q {{bastion_user}}@{{bastion_host}}' {{host_key_checking_option}} | |
ansible_ssh_extra_args: "{{ bastion_host | ternary(bastion_ssh_arg, '') }}" |
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 | |
import sys | |
import os | |
try: | |
import json | |
except ImportError: | |
import simplejson as json |
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
** Tyler's A.K.A. Hobbes First Program | |
** File Name: Tyler.Prg | |
SET STATUS OFF | |
SET SCOREBOARD OFF | |
SET TALK OFF | |
** Section To name memory variables | |
name=space(25) | |
male=.t. |
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
function cancellable(fn) { | |
var cancelled = false; | |
var wrapped = function() { | |
if (!cancelled) { | |
fn.apply(null, arguments) | |
} | |
}; | |
wrapped.cancel = function() { | |
cancelled = true; | |
}; |
NewerOlder