Skip to content

Instantly share code, notes, and snippets.

View sc250024's full-sized avatar

Scott Crooks sc250024

  • Miro
  • Utrecht, The Netherlands
  • 17:15 (UTC +02:00)
  • LinkedIn in/jshcrooks
View GitHub Profile
@sc250024
sc250024 / cluster-autoscaler-pod-log-output.txt
Created July 15, 2018 16:58
kubernetes/autoscaler Issue #1064
I0715 16:55:00.456063 1 flags.go:52] FLAG: --address=":8085"
I0715 16:55:00.456505 1 flags.go:52] FLAG: --alsologtostderr="false"
I0715 16:55:00.456520 1 flags.go:52] FLAG: --application-metrics-count-limit="100"
I0715 16:55:00.456525 1 flags.go:52] FLAG: --azure-container-registry-config=""
I0715 16:55:00.456571 1 flags.go:52] FLAG: --balance-similar-node-groups="false"
I0715 16:55:00.456576 1 flags.go:52] FLAG: --boot-id-file="/proc/sys/kernel/random/boot_id"
I0715 16:55:00.456612 1 flags.go:52] FLAG: --cloud-config=""
I0715 16:55:00.456619 1 flags.go:52] FLAG: --cloud-provider="aws"
I0715 16:55:00.456622 1 flags.go:52] FLAG: --cloud-provider-gce-lb-src-cidrs="35.191.0.0/16,209.85.152.0/22,209.85.204.0/22,130.211.0.0/22"
I0715 16:55:00.456628 1 flags.go:52] FLAG: --cluster-name=""
22:24 $ PACKER_LOG=1 packer build windows-server-2012r2-amd64-webserver-app-prod.json
2018/05/21 22:24:20 [INFO] Packer version: 1.2.3
2018/05/21 22:24:20 Packer Target OS/Arch: darwin amd64
2018/05/21 22:24:20 Built with Go Version: go1.10.1
2018/05/21 22:24:20 Detected home directory from env var: /Users/myuser
2018/05/21 22:24:20 Using internal plugin for vmware-vmx
2018/05/21 22:24:20 Using internal plugin for ncloud
2018/05/21 22:24:20 Using internal plugin for oneandone
2018/05/21 22:24:20 Using internal plugin for parallels-iso
2018/05/21 22:24:20 Using internal plugin for scaleway
# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Amazon Software License (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://aws.amazon.com/asl/
#
# or in the "license" file accompanying this file. This file is distributed
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
<powershell>
write-output "Running User Data Script"
write-host "(host) Running User Data Script"
Set-ExecutionPolicy Unrestricted -Scope LocalMachine -Force -ErrorAction Ignore
# Don't set this before Set-ExecutionPolicy as it throws an error
$ErrorActionPreference = "stop"
@sc250024
sc250024 / bootstrap-aws.txt
Last active April 18, 2018 09:23
Issue #1002 in chocolatey/chocolatey-coreteampackages
<powershell>
write-output "Running User Data Script"
write-host "(host) Running User Data Script"
Set-ExecutionPolicy Unrestricted -Scope LocalMachine -Force -ErrorAction Ignore
# Don't set this before Set-ExecutionPolicy as it throws an error
$ErrorActionPreference = "stop"

Keybase proof

I hereby claim:

  • I am sc250024 on github.
  • I am sc250024 (https://keybase.io/sc250024) on keybase.
  • I have a public key ASBI7Bb_h9dPFx_WNgqnAc6t8hbR5ZIWbaMbbH2bxzi23go

To claim this, I am signing this object:

@sc250024
sc250024 / cron-between-times.sh
Last active April 29, 2017 04:18
BASH script to check if a cron will run between two specified times
#!/bin/bash
# Specify text file with cron-style schedule, and commands
# Like the following example
# * * * * * /path/to/some/command
# */15 * * * * /path/to/another/command
# * 2,15 * * * /path/to/yet/another/command
# Or pass text via STDIN
CRONFILE="$1"
#!/bin/bash
OLDIFS=$IFS
export IFS=$'\n'
# Find all boxes which have updates
AVAILABLE_UPDATES=$(vagrant box outdated --global | grep outdated | tr -d "*'" | cut -d ' ' -f 2 2>/dev/null)
if [[ ${#AVAILABLE_UPDATES[@]} -ne 0 ]]; then