Skip to content

Instantly share code, notes, and snippets.

View jaycollett's full-sized avatar

Jay Collett jaycollett

View GitHub Profile
@jaycollett
jaycollett / fanspeeds.sh
Created November 16, 2021 05:48 — forked from fragtion/fanspeeds.sh
Dell R610 / R710 temperature-based fan speeds script
#!/bin/bash
# ----------------------------------------------------------------------------------
# Script for checking the temperature reported by the ambient temperature sensor,
# and if deemed too high send the raw IPMI command to enable dynamic fan control.
#
# Also get CPU temps from lm-sensors and adjust fan speeds according to defined
# speed % which should be set according to your needs (each CPU model will vary)
#
# Requires:
@jaycollett
jaycollett / gist:cac17ec1edf7170dfc32f94219b388af
Created October 5, 2021 20:12
Bulk add users to Azure Application Role
# file with a header of userprincipalname and a list of UPNs to add to the specified app and role
$data = import-csv C:\temp\userstoadd.csv
# app and role names
$app_name = "YOUR APP NAME HERE"
$app_role_name = "YOUR APP ROLE HERE"
# Connect to Azure AD
Connect-AzureAD -Confirm
@jaycollett
jaycollett / ArdunioMQTTExample.ino
Last active February 16, 2018 22:02
Arduino WiFi101 MQTT Example (using PubSubClient by Nick O'Leary)
#include <SPI.h>
#include <WiFi101.h>
#include <PubSubClient.h>
char ssid[] = "XXXXX"; // your network SSID (name)
char pass[] = "XXXXXXXXX"; // your network password (use for WPA, or use as key for WEP)
int status = WL_IDLE_STATUS;

Keybase proof

I hereby claim:

  • I am jaycollett on github.
  • I am jaycollett (https://keybase.io/jaycollett) on keybase.
  • I have a public key whose fingerprint is 60E6 5516 8758 CF10 148C 862F FA4D 0E0D 035A 3E09

To claim this, I am signing this object: