Skip to content

Instantly share code, notes, and snippets.

@mrcodetastic
mrcodetastic / WFH_Emulator.ino
Last active January 29, 2026 21:17
USB Mouse Jiggler (Work From Home (WFH) emulator)
/*
* Compile and flash this firmware onto a ESP32-S2 and then use a seperate micro USB connector
* to connect the S2's Pin 19 to USB D- and Pin 20 to USB D+ (and of course +5V to +5V and GND to GND)
*
* IMPORTANT: On an ESP32-S2 Mini using Arduino IDE, make sure you have 'USB CDC On Boot' set to 'False'
* otherwise the 'USB Device Name' that shows up on Windows will not be correct as per the code below.
*
* It will appear as a 'USB Mouse' in Windows/Linux/Mac, and move the mouse every 30 seconds or so
* that you are always online/green. The ESP's LED will flash briefly when this occurs.
*
## This is an example of executing code when your zenpack gets installed (or removed)
## This __init__.py file should be located at ZenPacks.namespace.Name/ZenPacks/namespace/Name/__init__.py
## This code should be carefully added to your zenpack so as not to accidently overwrite key methods (
'''
Here begins the non default code
'''
# Import all the things.
@James-Newman
James-Newman / zenfixit.py
Created December 1, 2014 10:56
ZenFixIt.py A script to fix common Zenoss problems (Created by Zenoss Inc. posted for posterity)
#!/usr/bin/env python
##########################################################################
#
# Copyright 2009 Zenoss, Inc. All Rights Reserved.
#
##########################################################################
__doc__ = """zenfixit
Apply common remedies for problems, and look for other issues.
@Chaser324
Chaser324 / GitHub-Forking.md
Last active February 12, 2026 23:11
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@JosefJezek
JosefJezek / install-and-setup-zenoss.md
Last active June 2, 2020 17:01
Install & Setup Zenoss
@cluther
cluther / example.yaml
Last active June 21, 2021 11:16
Create Zenoss monitoring templates from YAML
#
# COMMAND Example
#
/ExampleDeviceClass/ExampleCommandTemplate:
datasources:
echo:
type: COMMAND
commandTemplate: 'echo "OK|val1=123 val2=987.6'
parser: Nagios
severity: info
@jong
jong / zenpack-remove.py
Created October 18, 2012 16:45 — forked from danielrobbins/zenpack-remove.py
A script to remove broken ZenPacks
packs = None
if hasattr(dmd, 'ZenPackManager'):
packs = dmd.ZenPackManager.packs
else:
packs = dmd.packs
phase2 = False
for pack in packs():
try:
@oubiwann
oubiwann / 01-deferred-list.py
Created October 13, 2012 21:01
Async Batching with Twisted: A Walkthrough
from twisted.internet import defer, reactor
from twisted.web.client import getPage
def listCallback(results):
print results
def finish(ign):
reactor.stop()
def test():
@danielrobbins
danielrobbins / zenpack-remove.py
Created July 12, 2012 19:01
A script to remove broken ZenPacks
packs = None
if hasattr(dmd, 'ZenPackManager'):
packs = dmd.ZenPackManager.packs
else:
packs = dmd.packs
phase2 = False
for pack in packs():
try: