Skip to content

Instantly share code, notes, and snippets.

View karrots's full-sized avatar

Jonathan Karras karrots

View GitHub Profile
@SoarinSen
SoarinSen / isetools.py
Last active July 17, 2018 23:46
Python functions to support creating or modifying an endpoint in Cisco Identify Services Engine (ISE) with an iPSK.
import requests, settings, smtplib, logging
import xml.etree.ElementTree as ElemTree
from bs4 import BeautifulSoup
class ISEAPIError(Exception):
"""
An error with the ISE API call being made.
"""
pass
@TerryE
TerryE / ds18b20.lua
Created March 31, 2017 14:14
ds18b20.lua
--------------------------------------------------------------------------------
-- DS18B20 one wire module for NODEMCU
-- NODEMCU TEAM
-- LICENCE: http://opensource.org/licenses/MIT
-- TerryE 26 Mar 2017
--------------------------------------------------------------------------------
-- Local variables
local modname = ...
@corny
corny / unifi-backup.sh
Last active January 26, 2024 02:07
Improved backup script for Ubiquiti UniFi controller
#!/bin/bash -e
#
# Improved backup script for Ubiquiti UniFi controller
# original source: http://wiki.ubnt.com/UniFi#Automated_Backup
#
# must contain:
# username=<username>
# password=<password>
source ~/.unifi-backup
@bldewolf
bldewolf / cisco-portchannels.pl
Last active March 29, 2018 09:33
A small Perl script using Net::SNMP to check port channel health on a given Cisco device. Exit values should be Nagios-compatible.
#!/usr/bin/perl
use strict;
use warnings;
use Net::SNMP;
use Getopt::Long;
sub snmp_error {
my $session = shift;