Skip to content

Instantly share code, notes, and snippets.

View z22092's full-sized avatar

Jefferson Venceslau z22092

  • -Brazil-
View GitHub Profile
@z22092
z22092 / gist:7d9ca6d211a1d2429358b5f4633120ec
Created July 26, 2019 12:04 — forked from rothwerx/gist:5809932
Python: Query given WMI class on Windows host from Linux and output to easy-to-read JSON
#!/usr/bin/env python
from optparse import OptionParser
from subprocess import Popen, PIPE
# Requires wmic from Samba project, or here:
# http://dev.zenoss.org/trac/browser/tags/zenoss-3.2.1/inst/externallibs
wmic = '/vagrant/wmic'
parser = OptionParser()
@z22092
z22092 / teams-chat-post.sh
Created July 24, 2019 13:34 — forked from chusiang/teams-chat-post-for-workflows.sh
Post a message to Microsoft Teams with bash script.
#!/bin/sh
# =============================================================================
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Filename: teams-chat-post.sh
# Modified: 2018-03-28 15:04
# Description: Post a message to Microsoft Teams.
# Reference:
#
# - https://gist.github.com/chusiang/895f6406fbf9285c58ad0a3ace13d025
#