Skip to content

Instantly share code, notes, and snippets.

import salt.client
import salt.cloud
import sys
import time
def usage():
print "Command Usage: python snapshot_datacenter.py <target> <form>"
print "Target: What vms you would like to target"
print "Form: What type your targeting, like Grains, Lists, Compounds, Etc."
@Ferbla
Ferbla / remotehintpoll.php
Last active March 12, 2020 17:26 — forked from lgaetz/remotehintpoll.php
Simple PHP script that checks the extension status at a remote PBX and updates a custom hint on the local pbx for proper BLF operation.
<?php
/**** **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** ****
* remotehintpoll.php
*
* Created by Lorne Gaetz lgaetz@sangoma.com
*
* Licensed under GNU GPL version 2 or any later verison.
*
* Usage: