Skip to content

Instantly share code, notes, and snippets.

Ewoud Kohl van Wijngaarden ekohl

Block or report user

Report or block ekohl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
import requests
import json
from subprocess import Popen, PIPE
class MCollective:
def list_hosts(self):
process = Popen("mco rpc rpcutil ping -j".split(), stdout=PIPE)
j = process.communicate()[0]
View listdir.c
#define _GNU_SOURCE
#include <dirent.h> /* Defines DT_* constants */
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#define handle_error(msg) \
class PowerShellVmsResource {
enum Method { GET, ADD };
enum Detail {
DISKS("$_.getmemorystatistics(); $_.getcpustatistics(); "),
STATISTICS("$_.getdiskimages(); ");
public final String powershell;
You can’t perform that action at this time.