Skip to content

Instantly share code, notes, and snippets.

View mcprat's full-sized avatar

Michael Pratt mcprat

  • Ohio
  • 23:21 (UTC -04:00)
View GitHub Profile
@mcprat
mcprat / WNR1000v2.README.md
Last active June 7, 2021 02:44
Support and installation of modern OpenWRT for the WNR1000v2

TLDR: U-BOOT RECOVERY MODE IS THE ONLY WAY TO FLASH RELIABLY. PUBLIC RELEASE BUILDS ARE TOO BIG FOR 4 MB

Background

Hi all,

It feels like I'm following in the footsteps of @SaltwaterC, who figured out support for this router nearly 5 years ago !!!! As difficult as this was, most of the work was already done for me. Special thanks to him and also @pupie (another forum post from ages ago) for inspiration that Flash upgrades are possible. Also special thanks to @Jeff for the JEDEC ID solution

@mcprat
mcprat / README.txt
Last active April 5, 2019 23:16
pyWinhook Wheel for Python 2.7 Win32
Wheel installation file of pyWinhook 1.6.1 for Python 2.7 on windows 32-bit (or windows 64-bit and python 32-bit version)
https://www.dropbox.com/s/rp7rd6mlost9qaf/pyWinhook-1.6.1-cp27-cp27m-win32.whl?dl=1
(please message me if link is broken)
install with
python -m pip install <path to wheel file>
https://github.com/Tungsteno74/pyWinhook
@mcprat
mcprat / Destroy Genius.com Apple Music Player.user.js
Created April 26, 2019 00:07
Genius.com remove Apple Music Player user.js userscript for Tampermonkey
// ==UserScript==
// @name Destroy Genius.com Apple Music Player
// @namespace http://tampermonkey.net/
// @version 1.0
// @description When browsing on Genius.com, remove the pesky Apple Music Player
// @author Michael Pratt <[email protected]>
// @include http*://*genius.com*
// ==/UserScript==
// Sources used: https://stackoverflow.com/questions/4777077/removing-elements-by-class-name | https://hibbard.eu/tampermonkey-tutorial/
@mcprat
mcprat / doi2pdf.py
Last active May 20, 2019 18:13
Sci-hub Helper Script
# -*- coding: utf-8 -*-
#for Python 2
# todo
# better commenting for each step of the process
# complete handling of captchas, a csv database of them
# possibility of getting citation from google scholar instead
# searching using author and title from RawCitation split parts all lower()
# getting HTML with format: https://scholar.google.com/scholar?q=QUERY&hl=en&as_sdt=0,39#d=gs_cit&u=%2Fscholar%3Fq%3Dinfo%3AYTlLL1HHpUwJ%3Ascholar.google.com%2F%26output%3Dcite%26scirp%3D0%26hl%3Den
# detect, get, and solve captcha
@mcprat
mcprat / SC Recording Downloader auth.py
Created May 17, 2019 22:00
Soundcloud API - Download all private tracks from an account with login info
# designed for Python 2
# in the future look into not having to authenticate for other peoples public tracks
# using the id from the waveform url to add to http://media.soundcloud.com/stream/
from time import sleep
try:
import requests
import soundcloud
@mcprat
mcprat / Win10UpdateDisabler.bat
Last active November 4, 2023 11:25
Yet Another Windows 10 Update Disabler [IN PROGRESS]
::todo:
::cant have one task, so many tasks, one for each trigger
::the ability to adjust local system drive (location of software distribution), where to place script
::hostname if for another system (for host, leave as `hostname`, or set as drive C:\, or remote \\server\dir)
::adjust variables option, where it shows the default, hit enter to not change (just like easy-rsa)
::detection of event IDs
::creation of a task to reverse the process
::running of the task to enable updates
::deletion of the task to enable updates (no disabling of it because it would be manual only)
@mcprat
mcprat / 0001-ath79-Add-support-for-ENS202EXT-attempt-1.patch
Created April 5, 2020 19:42
ENS202EXT port to ATH79 kernel attempt 1
From 3d3e2c61ae225d3f699e63f72c759f78fc307c5b Mon Sep 17 00:00:00 2001
From: Michael Pratt <[email protected]>
Date: Mon, 23 Mar 2020 17:07:27 -0400
Subject: [PATCH] ath79: Add support for ENS202EXT (attempt 1)
---
.../ath79/base-files/etc/board.d/01_leds | 6 +
.../ath79/base-files/etc/board.d/02_network | 9 ++
.../ath79/dts/ar9341_engenius_ens202ext.dts | 145 ++++++++++++++++++
target/linux/ath79/image/generic.mk | 8 +
@mcprat
mcprat / 0001-ath79-Add-support-for-ENS202EXT.patch
Created May 15, 2020 22:59
ath79: Add support for ENS202EXT (PR)
From d6ab998578841c05adf7ec1c81a08346df5a2fc3 Mon Sep 17 00:00:00 2001
From: Michael Pratt <[email protected]>
Date: Wed, 6 May 2020 01:29:00 -0400
Subject: [PATCH] ath79: Add support for ENS202EXT
---
package/boot/uboot-envtools/files/ath79 | 1 +
.../ath79/base-files/etc/board.d/01_leds | 6 +
.../ath79/base-files/etc/board.d/02_network | 9 ++
.../ath79/dts/ar9341_engenius_ens202ext.dts | 150 ++++++++++++++++++
@mcprat
mcprat / boot.log
Created May 15, 2020 23:01
ENS202EXT Ath79 firstboot kernel log (PR) (v19.07.2)
Validating MD5Sum of 'vmlinux'... Passed!
Validating MD5Sum of 'rootfs'... Passed!
## Booting image at bf0a0000 ...
Image Name: MIPS OpenWrt Linux-4.14.171
Created: 2020-02-27 21:05:12 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1626849 Bytes = 1.6 MB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum at 0xbf0a0040 ...OK
@mcprat
mcprat / boot.log
Created May 15, 2020 23:03
ENS202EXT Ath79 firstboot kernel log (after corrections) (master)
Hit any key to stop autoboot: 0
Validating MD5Sum of 'vmlinux'... Passed!
Validating MD5Sum of 'rootfs'... Passed!
## Booting image at bf0a0000 ...
Image Name: MIPS OpenWrt Linux-4.19.115
Created: 2020-05-11 21:16:18 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1823662 Bytes = 1.7 MB
Load Address: 80060000
Entry Point: 80060000