Skip to content

Instantly share code, notes, and snippets.

@csabavirag
csabavirag / TechLifePro_Setup.py
Last active February 4, 2024 12:14
Techlife pro Smart Bulb scripts
#!/usr/bin/env python
# 1. Modify the variables according to your setup: ssid, password, bssid, [email]
# 2. Connect the computer to AP-TechLife-xx-xx SSID
# 3. Run the script
import socket
# Variables to change
ssid = '**YOURSSID**'
password = '**WIFIPASSWORD**'
bssid = bytearray([0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa]) # Enter your WiFi router's WiFi interface MAC address in hex (eg. AA:AA:AA:AA:AA:AA)
@csabavirag
csabavirag / generate_aw_authheader.sh
Created January 28, 2019 19:58
AirWatch/Workspace One API - certificate based authentication
#!/bin/bash
# AirWatch/Workspace One API - certificate based authentication
#
# Generate Auth header
#
# Configuration:
# ==============
#
# 1. Download the admin user certificate in p12 format from Workspace One
# 2. Convert the p12 file to pem and remove the password