Skip to content

Instantly share code, notes, and snippets.

View Froosh's full-sized avatar

Robin Frousheger Froosh

View GitHub Profile
@zvldz
zvldz / soft_hack.md
Last active April 18, 2024 00:46
soft_hack.md

Soft hack to open telnet

You need gateway 3(mgl03) connected to MiHome. And also ip and gateway token.

1 way (recommended)

Via XiaomiGateway3 component.

You must input in the 'Open Telnet command' field(as it is without changing anything):

{"method":"set_ip_info","params":{"ssid":"\"\"","pswd":"123123 ; passwd -d admin ; echo enable > /sys/class/tty/tty/enable; telnetd"}}
@zvldz
zvldz / fw_mgl03_update.md
Last active September 24, 2022 23:47
Updating mgl03 gateway firmware from telnet
@markekraus
markekraus / GetInboxRuleReport.ps1
Last active January 31, 2019 18:33
Generates Multi-Threaded Office 365 Inbox Rule Report That Scales with the Number of Service Accounts Provided
using namespace System.Collections.Concurrent
$StartDate = [datetime]::UtcNow
# can be generated with something like
# 1..10 | %{ Get-Credential} | Export-CliXml -path 'C:\reports\InboxRules\Creds.xml'
# Which will prompt for credentials 10 times and store them in the xml file
$CredentialFile = 'C:\reports\InboxRules\Creds.xml'
$RunDate = $StartDate.ToString('o') -replace ':'
# This is the path of the CSV file. It is imperative that this file not be
# access while the script is running
@ryannewington
ryannewington / Add-AdministratorToFimService.ps1
Last active October 22, 2018 01:31
Creates an administrator in the FIM/MIM service from an existing AD account
# Username of the user to add
$username = "ryan"
# Domain of the user to add
$domain = "lithnet"
# Display name to set in the portal
$displayName = "Admin-Ryan Newington"
Import-Module LithnetRMA
Set-ResourceManagementClient -BaseAddress localhost -Credentials (Get-Credential)
@rumpeltux
rumpeltux / paypal2qif.py
Last active September 25, 2022 13:18 — forked from jmk/paypal2ofx.py
import csv
import sys
from collections import namedtuple
# Enter whatever is your local currency.
LOCAL_CURRENCY = 'EUR'
rows = csv.reader(sys.stdin)
# This assumes that your PayPal language is set to English.