Skip to content

Instantly share code, notes, and snippets.

View schwartzmx's full-sized avatar
👓

Phil Schwartz schwartzmx

👓
View GitHub Profile
@schwartzmx
schwartzmx / fizz_buzz.sql
Created February 12, 2016 04:58
T-SQL FizzBuzz
-- Printed, while loop
declare @str varchar(30), @i int = 0, @max int = 100;
while @i <= 100
begin
if @i % 3 = 0
set @str += 'Fizz'
if @i % 5 = 0
set @str += 'Buzz'
if len(@str) !> 0
@schwartzmx
schwartzmx / windows_ec2_provision.yml
Last active February 10, 2023 00:51
Ansible Windows EC2 Provisioning Playbook
- name: Launch {{env}}-{{service}} Instance(s)
hosts: localhost
gather_facts: false
connection: local
vars_files:
- group_vars/env/{{ environment }}.yml
- group_vars/service/{{ service }}.yml
- group_vars/admin.yml
# Launch instances with the following parameters. Register the output.