Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am brent20 on github.
  • I am brentsaltzman (https://keybase.io/brentsaltzman) on keybase.
  • I have a public key whose fingerprint is 7A28 F659 6A04 C1D0 01C3 4805 726D 4CDF EF9E 16E8

To claim this, I am signing this object:

automation:
alias: Front Doorbell Notification
trigger:
platform: state
entity_id: sensor.doorbellstate
state: 'Ringing'
action:
service: notify.pushover
data:
title: Door Bell Notification!
sensor doorbell:
- platform: template
sensors:
doorbellstate:
value_template: '{% if is_state("binary_sensor.ecolink_doorwindow_sensor_sensor_1", "off") %}Ringing{% else %}Standby{% endif %}'
friendly_name: 'Front Doorbell'
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
//WIFI
const char* wifi_ssid = "wifi";
const char* wifi_password = "wifi-password";
//MQTT
const char* mqtt_server = "mqtt server ip";
const char* mqtt_user = "mqtt username";
' ** Configure the Target OU here
strLDAPofOU="OU=TargetOU,OU=Workstations,OU=AnotherLevel,OU=Root,DC=MyDomain,DC=com"
On Error Resume Next
'Get MachineObjectOU Value
Set wshNetwork = CreateObject("WScript.Network")
Set oFso = CreateObject("Scripting.FileSystemObject")
Set objSysInfo = CreateObject( "ADSystemInfo" )
@brent20
brent20 / editxml.ps1
Last active August 29, 2015 14:13
PoweShell script to stop a remote pc's service, edit values in a remote PC's XML file, and restart the remote PC's service
#Get host from command line argument
Param (
[Parameter(Mandatory=$True)]
[ValidateNotNull()]
$remotepc
)
#Stop the service on the remote machine
Write-Host "STOPPING SERVICE...";
(get-service -ComputerName $remotepc -Name "Name of Service").Stop()
<?xml version="1.0" encoding="utf-8"?>
<petition>
<signatures>39347</signatures>
</petition>
@brent20
brent20 / gist:8ea989a278e98c66f6d8
Created August 15, 2014 17:34
LTI Tool for external URL that is disabled by default.
<cartridge_basiclti_link xmlns="http://www.imsglobal.org/xsd/imslticc_v1p0"
xmlns:blti="http://www.imsglobal.org/xsd/imsbasiclti_v1p0"
xmlns:lticm="http://www.imsglobal.org/xsd/imslticm_v1p0"
xmlns:lticp="http://www.imsglobal.org/xsd/imslticp_v1p0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.imsglobal.org/xsd/imslticc_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticc_v1p0.xsd http://www.imsglobal.org/xsd/imsbasiclti_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imsbasiclti_v1p0.xsd http://www.imsglobal.org/xsd/imslticm_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticm_v1p0.xsd http://www.imsglobal.org/xsd/imslticp_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticp_v1p0.xsd">
<blti:title>BlueCast Content</blti:title>
<blti:description>This item provides a link to the BlueCast homepage</blti:description>
<blti:launch_url>https://lti-examples.heroku.com/tool_redirect</blti:launch_url>
<blti:extensions platform="canvas.instructure.com">
@brent20
brent20 / gist:17f1f96ff9cbc90ac66f
Created July 22, 2014 20:09
CUInvolved Event Object
[eventId] => 424738
[eventName] => Summer Preview Coordinator Applications Due
[organizationId] => 78787
[organizationName] => New Student Orientation
[startDateTime] => 1405377000000
[endDateTime] => 1409351400000
[externalLocationId] =>
[locationId] =>
[locationName] =>
[otherLocation] => Student Activities Office
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\.lnk]
[HKEY_CLASSES_ROOT\.lnk]
@="lnkfile"
[HKEY_CLASSES_ROOT\.lnk\ShellEx]
[HKEY_CLASSES_ROOT\.lnk\ShellEx\{000214EE-0000-0000-C000-000000000046}]