Oops, now you've got a bunch of locked modules. Here's a brute force method to remove every lock from dynamodb. Use this with caution.
terraform {
required_version = "= 1.0.8"
required_providers {
aws = {
| git for-each-ref --format '%(refname:short)' refs/heads | grep -v "master\|main" | xargs git branch -D |
| hs.window.animationDuration = 0 | |
| units = { | |
| right30 = { x = 0.70, y = 0.00, w = 0.30, h = 1.00 }, | |
| right50 = { x = 0.50, y = 0.00, w = 0.50, h = 1.00 }, | |
| right70 = { x = 0.30, y = 0.00, w = 0.70, h = 1.00 }, | |
| left70 = { x = 0.00, y = 0.00, w = 0.70, h = 1.00 }, | |
| left50 = { x = 0.00, y = 0.00, w = 0.50, h = 1.00 }, | |
| left30 = { x = 0.00, y = 0.00, w = 0.30, h = 1.00 }, | |
| top50 = { x = 0.00, y = 0.00, w = 1.00, h = 0.50 }, | |
| bot50 = { x = 0.00, y = 0.50, w = 1.00, h = 0.50 }, |
| # It should go without saying, but make sure your terraform file is checked into version control before running this. | |
| # If you find a bug, please let me know =) | |
| # Add quotation marks | |
| elixir -e 'Enum.each(Path.wildcard("**/*.tf"), fn filename -> File.read!(filename) |> String.split("\n") |> Enum.map(fn line -> arraylist = line |> String.trim() |> String.split(" ") |> Enum.map(fn s -> to_charlist(s) end); case arraylist do; [a, b, c, [123]] when a in [[114,101,115,111,117,114,99,101], [100,97,116,97], [112,114,111,118,105,100,101,114], [98,97,99,107,101,110,100]] -> [a,32,34,b,34,32,34,c,34,32,123,10]; _ -> line <> "\n"; end; end) |> to_string() |> String.trim() |> (&(File.write!(filename, &1))).() end)' | |
| # Remove quotation marks from "resource", "data", "provider", and "backend" lines | |
| elixir -e 'Enum.each(Path.wildcard("**/*.tf"), fn filename -> File.read!(filename) |> String.split("\n") |> Enum.map(fn line -> arraylist = line |> String.trim() |> String.split(" ") |> Enum.map(fn s -> to_charlist(s) end); cas |
| ruby -rjson -e 'a = JSON.parse File.read(".kbfs_update_history"); a["Updates"].each {|v| ops = v["Ops"].map {|op| op["Op"]}.select {|op| op !~ /gc|sync|resolution/ }.join("\n".ljust(53)); printf("Op: %s by %s on %s: %s\n", v["Revision"].to_s.ljust(4), v["Writer"].ljust(15), (v["Date"][0,19]), ops ) if ops !~ /^$/ }' |
| #!/usr/bin/env ruby | |
| require 'date' | |
| require 'pp' | |
| from_bucket = 'example-cc-blobstore-packages' | |
| guid_regexp = Regexp.new(/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/) | |
| DAYS = 7 | |
| today = Time.now.to_date | |
| # apps.txt contains a list of app guids, exported from ccdb |
Nice meeting you! I'm Jim, a Product Manager for the Cloud Operations team that operates Pivotal Web Services. This email is a work in progress but, here are some things we do as a Cloud Operations team that might be useful patterns for you as a customer, or as a new CloudOps member.
Pivotal Web Services is the reference deployment of Cloud Foundry. The Cloud Operations team is based out of San Francisco, colocated with a number of Pivotal's Cloud Foundry Research and Development teams.
| #!/usr/bin/env ruby | |
| require 'json' | |
| require 'pry' | |
| def cf_curl(resource, parameter='') | |
| response = JSON.parse `cf curl /v2/#{resource}?#{parameter}` | |
| raise "pagination" if response["total_pages"] && response["total_pages"] > 1 | |
| return response | |
| end |
| --- | |
| <%- environments = %W[ | |
| staging | |
| prod | |
| gap-cfsandbox-openstack | |
| gap-cfdev-openstack | |
| gap-cfprod-openstack | |
| tracker-aws | |
| ] -%> | |
| groups: |
| --- | |
| name: datadog-firehose-nozzle | |
| director_uuid: REPLACEME | |
| stemcells: | |
| - alias: bosh-openstack-kvm-ubuntu-trusty-go_agent-raw | |
| os: ubuntu-trusty | |
| version: '3263.15' | |
| instance_groups: | |
| - name: datadog-firehose-nozzle | |
| azs: [nova] |