Skip to content

Instantly share code, notes, and snippets.

View lennysh's full-sized avatar
💭
I never Lose. I either Win or Learn.

Lenny Shirley lennysh

💭
I never Lose. I either Win or Learn.
View GitHub Profile
@jordam
jordam / magiclight.py
Created August 13, 2015 12:59
A script to control MagicLight and other cheap wifi rgb lights
import socket, time
s = socket.socket()
address = ''
port = 5577
r = 0
g = 255
b = 0
keybit = "31".replace(':', '').decode('hex')
keybit += chr(r) + chr(g) + chr(b)
keybit += "00:f0:0f".replace(':', '').decode('hex')
@jdnow
jdnow / OwnCloud-Installer
Last active November 4, 2016 18:40
Installs and Configure Owncloud on Windows
Set objFSO=CreateObject("Scripting.FileSystemObject")
Set WshNetwork = WScript.CreateObject("WScript.Network")
Set oShell = CreateObject( "WScript.Shell" )
owncloudsrv = "http://owncloudserver" 'Replace with your Owncloud server address
installsite = "\\server\share\owncloud-setup.exe" 'Replace with your install site for the client
uname = WshNetwork.UserName
localapppath = oShell.ExpandEnvironmentStrings("%LOCALAPPDATA%")
oShell.Run installsite & " /S", 1, true