Skip to content

Instantly share code, notes, and snippets.

View mcprat's full-sized avatar

Michael Pratt mcprat

  • Ohio
  • 02:34 (UTC -04:00)
View GitHub Profile
@mcprat
mcprat / uart-boot.log
Created May 20, 2020 17:58
ENS202EXT Openwrt ath79 UART issue
[ 0.355727] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.400919] io scheduler noop registered
[ 0.407733] io scheduler deadline registered (default)
[ 0.420653] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[ 0.432443] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.444788] console [ttyS0] disabled
[ 0.451056] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
%!!-u▒1▒h~I▒Yh▒▒%)I▒Y▒ %▒(▒+▒▒▒.B▒▒▒▒*▒.ߕ▒(▒J▒_▒%!!-um1▒P▒~▒▒I▒YhƄ▒Ђ▒mpY▒ %▒(▒+▒▒▒,B▒▒▒▒▒+▒▒Z▒▒▒(ߵT▒▒▒%!!-E▒9)▒,15z-5)Х,19h=▒.▒▒▒▒ %!!-▒1▒11-▒v'lp▒nykPr▒z▒▒I▒▒▒*-A▒▒)▒▒Ћz- ▒(!-▒1▒1▒r▒▒P!▒d1▒▒Q▒q--Ai▒A+%[▒%!!-▒5▒91P11111)11119115%f%y. ▒%!!-▒1E▒1111911▒11119115%f%y▒X▒▒ %!!-▒=u▒1111911▒1111!115%▒r▒* ▒%!!-▒9▒=1P111▒11▒1111▒,1!▒▒y▒v▒"▒%!!-▒1▒▒1111▒,1)1111▒,1!▒▒▒▒y. ▒%!!-▒1E▒1111▒,1)1111▒,1!▒▒z▒▒▒"▒%!!-▒9E삋kq▒P/1▒▒Q▒q--Y▒▒q▒")▒▒P▒▒Y(▒ %!!-▒1E킨▒▒q+5 ▒(r▒z▒▒I▒q(-▒▒▒▒P[▒%!!-▒=▒11P11111)1111"P1!▒iY▒Y* ▒%!!-▒5E▒1111
@mcprat
mcprat / boot.log
Created May 19, 2020 07:24
ENS202EXT factory.bin firstboot with OKLI and fakeroot (master)
Hit any key to stop autoboot: 0
Validating MD5Sum of 'vmlinux'... Passed!
Validating MD5Sum of 'rootfs'... Passed!
## Booting image at 9f0a0000 ...
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: 3265 Bytes = 3.2 kB
Load Address: 80060000
Entry Point: 80060000
@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
@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 / 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 / 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 / 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 / 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 / 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 / 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/