Skip to content

Instantly share code, notes, and snippets.

View jgstew's full-sized avatar

JGStew jgstew

View GitHub Profile
{
"data_version": 7,
"iteration": 1,
"op_names": [
{ "id": 1, "name": "Lite" },
{ "id": 2, "name": "Medium" },
{ "id": 3, "name": "High" },
{ "id": 4, "name": "Extreme" },
{ "id": 11, "name": "Efficient" },
{ "id": 12, "name": "EfficientLow" },
<?Relevance ps of concatenations of ("There are ";it as string;" tasks right now [ "; now as string; " ]") of number of bes tasks ?>
@jgstew
jgstew / clientsettings.cfg
Last active October 3, 2018 01:09
An example clientsettings.cfg to set the default BigFix client settings at install time. Only works with the Windows EXE installer or the OS X installer. For linux, see here: https://github.com/jgstew/tools/blob/master/bash/install_bigfix.sh
__RelaySelect_Automatic=1
_BESClient_Resource_StartupNormalSpeed=1
_BESClient_Download_RetryMinutes=1
_BESClient_Download_CheckAvailabilitySeconds=120
_BESClient_Resource_WorkIdle=20
_BESClient_Resource_SleepIdle=500
_BESClient_PowerHistory_EnablePowerHistory=1
_BESClient_Comm_WakeOnLanForwardingEnable=1
_BESClient_Comm_CommandPollEnable=1
_BESClient_Comm_CommandPollIntervalSeconds=7200
' !!! Moved to here: https://github.com/jgstew/tools/blob/master/VBS/msiGetProperty.vbs
' written by James Stewart ( @jgstew )
' public domain, use at your own risk
' this vbs script will get msi property values
' the default is to get "ProductName"
' the default can be changed by renaming the file, or changing the initial msiProperty value
' Example: msiGetPropertyProductVersion.vbs will get ProductVersion
' !!! Moved to here: https://github.com/jgstew/tools/blob/master/VBS/zipGetFilesList.vbs
' zipGetFilesList.vbs
' Written by James Stewart ( @jgstew )
' Public Domain - use at your own risk
A: sockets of <network>: socket
A: local address of <socket>: ipv4or6 address
A: remote address of <socket>: ipv4or6 address
A: process of <socket>: process
A: local port of <socket>: integer
A: remote port of <socket>: integer
A: tcp of <socket>: boolean
A: udp of <socket>: boolean
A: tcp state of <socket>: tcp state
A: closed of <tcp state>: boolean
@jgstew
jgstew / Screenshots.ojo
Created October 4, 2016 22:54
BigFix Dashboard that displays screenshots from clients
<?xml version="1.0"?>
<BES>
<Wizard>
<Title>Screenshots</Title>
<UIHooks LaunchType="Document" RequiresAuthoring="false" Menu="Dashboards"></UIHooks>
<DefaultPage>Page1</DefaultPage>
<Page Name="Page1" DocType="HTML 4.01 Transitional" >
<Title>Screenshots</Title>
<HTML><![CDATA[
<head>
<!DOCTYPE HTML>
<html>
<head>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th, td {
padding: 5px;
@jgstew
jgstew / SingleScreenShot.wrpt
Last active October 4, 2016 03:10
This is meant to be used in a BigFix WebReport
<img height='70%' src='<?Relevance "data:image/png;base64," & unique value of (concatenations of values of it) of results of bes properties "base64 encoded screenshot" ?>'/>
@jgstew
jgstew / CentOS-minimal.ks.cfg
Last active September 21, 2016 04:21
rename this file to `ks.cfg` and place within the root of the ISO. Then add `inst.ks=cdrom` to the boot options within `grub.cfg` and `isolinux.cfg`
#version=DEVEL
# Reference: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Installation_Guide/sect-kickstart-syntax.html
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
install
cdrom
# Use text install