Skip to content

Instantly share code, notes, and snippets.

View monoganog's full-sized avatar
☁️

Ben Monaghan monoganog

☁️
  • HashiCorp
  • Newcastle, United Kingdom
  • 01:17 (UTC +01:00)
View GitHub Profile
trigger:
- none
pool:
vmImage: ubuntu-latest
variables:
- group: MyVariableGroup
jobs:
trigger:
- none
pool:
vmImage: ubuntu-latest
jobs:
- job: auth
displayName: Authenticate to HCP Vault
pool:
#!/bin/bash
BUCKET_NAME="REPLACE_ME"
LOG_FILE="./script.log"
echo "Starting script at $(date)" > "$LOG_FILE"
count_instances() {
jq '[
.resources[] |
select(.mode == "managed") |
import boto3
import json
import pyjq
boto3.setup_default_session(profile_name=“aws”)
s3 = boto3.resource(“s3")
s3_client = boto3.client(“s3”)
BUCKET_NAME_FILTER_PREFIX = “mybucket-prefix”
TF_STATE_OBJ_KEY = “terraform.tfstate”
JQ_EXPR = ‘.resources[] | select(.mode == “managed”) | select(.type == “terraform_data” or .type == “null_resource” | not) | .instances | flatten[]'
# Get a list of all buckets
Shader "Custom/StencilBuffer"
{
Properties
{
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.5
_Metallic ("Metallic", Range(0,1)) = 0.0
_Stencil_Level ("Stencil code",int) = 1
//
// CuteButtonsViewController.swift
// Another test Imessage
//
// Created by BEN MONAGHAN on 6/08/2017.
// Copyright © 2017 BEN MONAGHAN. All rights reserved.
//
import Foundation
import Messages