Skip to content

Instantly share code, notes, and snippets.

mmasko / port check
Last active February 26, 2021 19:40
port check on linux using raw shell
View port check
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 / UbuntuCFinit.yaml
Last active October 20, 2021 01:41
Configure cfn-hup, cloudformation tools on ubuntu 18. Based on a gist from Written in YAML.
View UbuntuCFinit.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.
Type: String
Default: t3.nano
- t3.nano