Skip to content

Instantly share code, notes, and snippets.

View jonathanweinberg's full-sized avatar

Jonathan Weinberg jonathanweinberg

View GitHub Profile
@jonathanweinberg
jonathanweinberg / Instructions.txt
Created December 2, 2018 05:21 — forked from NotMedic/Instructions.txt
Siri -> HomeBridge -> HomeBridge-ssh -> iptables
This is a pretty simple setup:
Siri is used to control Homebridge using the HomeKit protocol.
Homebridge has a module named Homebridge-ssh that allows you to run commands over ssh.
There is a shell script on an OpenWrt box to enable, disable, and check the status of a MAC Address block in the FORWARD table.
1. Install node on your platform. I went with 8.9 for no specific reason other than I initially had issues with 10 that probably weren't related..
2. Install homebridge and homebridge-ssh. You should probably also put hombridge-config-ui-x on there too... I used the unsafe-perm parameter after getting a significant number of errors:
sudo -i npm install -g homebridge --unsafe-perm
sudo -i npm install -g homebridge-ssh --unsafe-perm
#include "FastLED.h"
#include "LEDMatrix.h"
#include "LEDText.h"
#include "FontMatrise.h"
#include "lookup.h"
#include "XYMap.h"
FASTLED_USING_NAMESPACE
@jonathanweinberg
jonathanweinberg / CR10_MostlyDefault_M503.log
Created January 21, 2018 01:47
Default CR10 M503 output. Mostly.
; normally M92 Z400, changed to Z402.9
Send: M503
Recv: echo:Steps per unit:
Recv: echo: M92 X80.00 Y80.00 Z402.90 E93.00
Recv: echo:Maximum feedrates (mm/s):
Recv: echo: M203 X500.00 Y500.00 Z5.00 E25.00
Recv: echo:Maximum Acceleration (mm/s2):
Recv: echo: M201 X500 Y500 Z100 E5000
Recv: echo:Acceleration: S=acceleration, T=retract acceleration
@jonathanweinberg
jonathanweinberg / README.md
Created January 18, 2018 06:50 — forked from magnetikonline/README.md
Enable LDAP over SSL (LDAPS) for Microsoft Active Directory servers.

Enable LDAP over SSL (LDAPS) for Microsoft Active Directory servers

By default Microsoft active directory servers will offer LDAP connections over unencrypted connections (boo!).

The steps below will create a new self signed certificate appropriate for use with and thus enabling LDAPS for an AD server. Of course the "self-signed" portion of this guide can be swapped out with a real vendor purchased certificate if required.

Steps have been tested successfully with Windows Server 2012R2, but should work with Windows Server 2008 without modification. Will require both a system with OpenSSL (ideally Linux/OSX) and (obviously) a Windows Active Directory server.

Verifying that +jonathanweinberg is my blockchain ID. https://onename.com/jonathanweinberg