Skip to content

Instantly share code, notes, and snippets.

View juliedavila's full-sized avatar
🎃
Content

Julie Davila juliedavila

🎃
Content
View GitHub Profile
@juliedavila
juliedavila / image.yml
Last active October 18, 2018 15:18
Image Spec YML (or json)
baselineName: My Super Baseline
originImage: AMI-ID or fully bucket path to an aws compatible ova/vmdk/etc
repos:
- name: myRepo #(the 'Name' of the repo as uploaded to imgpress)
scripts:
- path: ./valid/path/in/an/above/repo
order: 1
- path: ./another/valid/path/in/an/above/repo
order: 3
@juliedavila
juliedavila / pseudo.yml
Created October 10, 2018 13:31
Example Provision & Target
- hosts: localhost
connection: local
tasks:
- name: provision some shit
whatever_module:
...args
register: new_hosts
- name: add hosts to in-memory inventory
add_host:
@juliedavila
juliedavila / # weechat - 2018-07-26_09-08-37.txt
Created July 26, 2018 13:14
weechat on macOS 10.13.6 - Homebrew build logs
Homebrew build logs for weechat on macOS 10.13.6
Build date: 2018-07-26 09:08:37
@juliedavila
juliedavila / tagger.yml
Created July 11, 2018 14:40
Purge EC2 Tags that aren't explicitly passed in with Ansible
# you'll need to have a variable called aws_tags_desired which should be dict with k/v pairs of the tags you want
# also define aws_tags_region
# Note that this is task file, so you'll need to include it or make it the main.yml for a role's tasks directory
- name: Get EC2 Facts
ec2_metadata_facts:
register: ec2_facts
- name: Get instance details at the AWS console level
ec2_instance_facts:
@juliedavila
juliedavila / get_reference_source.patch
Last active February 28, 2018 16:51
Git + SSH on Lambda
--- /usr/bin/get_reference_source 2012-06-07 22:11:52.000000000 +0000
+++ get_reference_source_new 2018-02-28 16:40:47.809651312 +0000
@@ -216,15 +216,6 @@
console.debug("")
-def __prompt_to_continue():
- input = raw_input("Are these parameters correct? Please type 'yes' to "
- "continue: ")
- if input.lower() in ['y', 'yes']:
@juliedavila
juliedavila / keybase.md
Created October 18, 2017 20:05
keybase.md

Keybase proof

I hereby claim:

  • I am defionscode on github.
  • I am defionscode (https://keybase.io/defionscode) on keybase.
  • I have a public key ASBJmVlRyUdPcQZ-QXzJxCOcs2wOISrlG3zP2u9atkFCWAo

To claim this, I am signing this object:

@juliedavila
juliedavila / settings.py
Created September 27, 2017 14:04
AWX SAML with Mapping
<?xml version="1.0" encoding="UTF-8"?>
<saml2:Assertion
xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" ID="id74539476266456101610211577" IssueInstant="2016-11-11T02:15:18.004Z" Version="2.0">
<saml2:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">http://www.EXAMPLE-SAML-PROVIDER.com/Issuer</saml2:Issuer>
<saml2:Subject>
<saml2:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">userName</saml2:NameID>
<saml2:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
<saml2:SubjectConfirmationData NotOnOrAfter="2016-11-11T02:20:18.004Z" Recipient="https://10.220.73.142/sso/complete/saml/"/>
</saml2:SubjectConfirmation>
</saml2:Subject>
@juliedavila
juliedavila / MyTemplate.js
Last active July 5, 2017 13:50
Template snippet allowing for regions to be shown as a list
import { ReactiveVar } from 'meteor/reactive-var';
Template.MyTemplate.onCreated(function(){
this.bucketList = new ReactiveVar([]);
})
Template.MyTemplate.onRendered(function(){
Meteor.call('getAwsRegions', function(error, result){
if(error){
Bert.alert({
@juliedavila
juliedavila / secedit.ps1
Created October 7, 2016 00:00
secedit module
#!powershell
# This file is part of Ansible
#
# Copyright 2016, Red Hat Inc
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
---
- name: es staging area
file:
path: /opt/es
state: directory
mode: '0755'
become: true
- name: download es
get_url: