Skip to content

Instantly share code, notes, and snippets.

View jonathanweinberg's full-sized avatar

Jonathan Weinberg jonathanweinberg

View GitHub Profile
Verifying that +jonathanweinberg is my blockchain ID. https://onename.com/jonathanweinberg
@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.

@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
#include "FastLED.h"
#include "LEDMatrix.h"
#include "LEDText.h"
#include "FontMatrise.h"
#include "lookup.h"
#include "XYMap.h"
FASTLED_USING_NAMESPACE
@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
############################################################################################################
# Get-ConsoleAsHtml.ps1
#
# The script captures console screen buffer up to the current cursor position and returns it in HTML format.
#
# Returns: UTF8-encoded string.
#
# Example:
#
# $htmlFileName = "$env:temp\ConsoleBuffer.html"

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@jonathanweinberg
jonathanweinberg / LogFile.udl.xml
Created January 3, 2019 16:05 — forked from mmdemirbas/LogFile.udl.xml
Custom log file syntax highlighting for Notepad++
<NotepadPlus>
<UserLang name="LogFile" ext="log">
<Settings>
<Global caseIgnored="yes" />
<TreatAsSymbol comment="no" commentLine="no" />
<Prefix words1="no" words2="no" words3="no" words4="no" />
</Settings>
<KeywordLists>
<Keywords name="Delimiters">[(0])0</Keywords>
<Keywords name="Folder+"></Keywords>
@jonathanweinberg
jonathanweinberg / VirtualBoyGo.ps1
Last active June 4, 2019 04:25 — forked from BenMcLean/VirtualBoyGo.ps1
VirtualBoyGo powershell
## Setting ErrorAction
$ProgressPreference = "SilentlyContinue" # Progress bar can significantly impact Invoke-WebRequest cmdlet performance, see issue: https://github.com/PowerShell/PowerShell/issues/2138
## Module Import
Import-Module Microsoft.PowerShell.Archive
## Setting Variables
####$path = Split-Path -Parent $PSCommandPath
$path = 'c:\temp'
$mobileSdk = 'ovr_sdk_mobile_1.23.zip'
$mobileSdkFolder = [io.path]::GetFileNameWithoutExtension("$mobileSdk")

Restoring an utterly destroyed DFSR-replicated SYSVOL from backup

Warning: this is not official Microsoft documentation and some of these steps might not actually be supported.

This guide is provided "as is", without warranty of any kind, express or implied. In no event shall the authors or copyright holders be liable for any claim, damages or other liability arising from, out of or in connection with applying the steps outlined in this guide.

When to use