Skip to content

Instantly share code, notes, and snippets.

@mmasko
mmasko / port check
Last active February 26, 2021 19:40
port check on linux using raw shell
true &>/dev/null </dev/tcp/$HOSTNAMEorIP/$PORT && echo open || echo closed
ansible all -m win_ping -i $IP, --extra-vars "ansible_user=$username ansible_password=$password ansible_port=5986 ansible_connection=winrm ansible_winrm_server_cert_validation=ignore"
@mmasko
mmasko / UbuntuCFinit.yaml
Last active October 20, 2021 01:41
Configure cfn-hup, cloudformation tools on ubuntu 18. Based on a gist from https://gist.github.com/kixorz/10194688. Written in YAML.
#This script will install the cloudformation helper work on Ubuntu 18.
#Some values are hard coded. Make sure to update where needed, or add to the parameters section.
#This would probably work on other distros, but I have not tested yet. Try it out.
#Just make sure to change things like apt to yum if trying on another OS.
Parameters:
EnvironmentSize:
Type: String
Default: t3.nano
AllowedValues:
- t3.nano