Skip to content

Instantly share code, notes, and snippets.

View mattmartinez's full-sized avatar

matt martinez mattmartinez

  • San Antonio
  • 02:25 (UTC -05:00)
View GitHub Profile
# ──────────────────────────────────────────────────────────────────────────────
# .windsurfrules
# project-management rules for Windsurf
# ──────────────────────────────────────────────────────────────────────────────
# 1. Core Paths
memoryPaths:
longterm: ".windsurf/memory/longterm.md"
shortterm: ".windsurf/memory/shortterm.md"
working: ".windsurf/memory/working.md"
@mattmartinez
mattmartinez / gist:4dc5fba9b43911b2f015f45d0520b068
Created January 27, 2022 16:19 — forked from g-a-d/gist:4bc7f716bc57e42b64e1ef450be9bae8
Converting CloudFormation parameter files to CodePipeline Template Configuration files
Using jq, we can convert between CloudFormation parameter files and CodePipeline template configuration files:
$ jq '{ Parameters: [ .[] | { (.ParameterKey): .ParameterValue } ] | add } ' < cloudformation_parameter_file.json
This is useful in the case of receiving 'Template configuration is not valid' when running a CloudFormation action.
A CloudFormation parameter file has format:
[
{
*- Listen to your customer, Give them what they really want, If Confused, ask again.
*- Every aspect of your development (engineering and ops) should be aligned with the customer needs.
- Deliver early; deliver often; better > best.
- DevOps culture > "DevOps" engineers or "DevOps" gurus. (aka: you have a devops title.. big deal.)
- Eliminate waste
- Automate everything; infrastructure as code; full transparency.
- If you can't test it, its not done.
- Test early; Test often; Test again.
- If Devops is culture, then join the community and give back.
105092 OS Version Unsupported: Customer Installed
107263 Point Release / Parent Channel Latest Stable Base
107223 Patch Management System Public Patch Repositories
104933 Kick Options Kick Options
Kick Type: Standard
Partition Scheme: Standard: LVM
107568 Processor Dual Socket 12 Core Intel Xeon E5-2695 v2 2.4GHz
104846 Memory 128 GB DELL RAM
106133 Hard Drive 1 600GB SAS 15K RPM (6 Gb/s) Drive
106133 Hard Drive 2 600GB SAS 15K RPM (6 Gb/s) Drive
{
"container": {
"image": "docker:///libmesos/ubuntu",
"options": []
},
"id": "ubuntu",
"instances": "1",
"cpus": ".5",
"mem": "512",
"uris": [ ],
# mesos-slave.ERROR log
Log file created at: 2014/08/25 20:30:03
Running on machine: cislave-n02
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
E0825 20:30:03.501946 8721 slave.cpp:2491] Container '94e85b3f-8c9f-4af9-b852-776e023b559f' for executor 'ubuntu.98004af4-2c96-11e4-bd35-becafe000866' of framework '20140825-190131-759961354-5050-986-0000' failed to start: TaskInfo/ExecutorInfo not supported
E0825 20:30:03.503336 8721 slave.cpp:2577] Termination of executor 'ubuntu.98004af4-2c96-11e4-bd35-becafe000866' of framework '20140825-190131-759961354-5050-986-0000' failed: Unknown container: 94e85b3f-8c9f-4af9-b852-776e023b559f
E0825 20:30:03.503978 8721 slave.cpp:2863] Failed to unmonitor container for executor ubuntu.98004af4-2c96-11e4-bd35-becafe000866 of framework 20140825-190131-759961354-5050-986-0000: Not monitored
# mesos-slave.WARNING log
Log file created at: 2014/08/25 20:30:03
import os
import sys
import time
import pyrax
import pyrax.exceptions as exc
from time import sleep
def main():
pyrax.settings.set('identity_type', 'rackspace')
import os,sys,time
import pyrax
import pyrax.exceptions as exc
def main():
pyrax.settings.set('identity_type', 'rackspace')
credz = os.path.expanduser("~/.searchcf")
try:
echo "$(tput setaf 7)
_ _ _ _ _
( ) ( ) ( ) _ (_ ) (_ )
| |_| | _ _ ___ | |__ _ _ (_) | | | | __
| _ | /'_' )/',__)| _ '|( ) ( )| | | | | | /'__'\
| | | |( (_| |\__, \| | | || \_/ || | | | | | ( ___/
(_) (_)'\__,_)(____/(_) (_)'\___/'(_)(___)(___)'\____)
"
let upSeconds="$(/usr/bin/cut -d. -f1 /proc/uptime)"
let secs=$((${upSeconds}%60))
Started GET "/verify" for at 2013-10-30 11:39:49 -0700
Raising 'AirbrakeTestingException' to simulate application failure.
** [Airbrake] Success: Net::HTTPOK
** [Airbrake] Environment Info: [Ruby: 2.0.0] [Rails: 4.0.0] [Env: development]
** [Airbrake] Response from Airbrake:
UUID: 1013800179050023116
URL: https://airbrake.io/locate/1013800179050023116
Testing airbrake via "rake airbrake:test". If you can see this, it works.