Skip to content

Instantly share code, notes, and snippets.

View mbohun's full-sized avatar
🙃
How do you do?

Martin Bohun Hormann mbohun

🙃
How do you do?
  • Canberra, ACT, Australia
View GitHub Profile
@mbohun
mbohun / NOTES.md
Created January 24, 2022 23:56
mobian semi-toasted
[  149.971493] anx7688 0-0028: fw loaded after 40 ms
[  149.976452] anx7688 0-0028: OCM firmware loaded (version 0x2312)
[  153.840585] anx7688 0-0028: updating power mode to USB, current limit 0mA (0 => BC1.2)

U-Boot SPL 2021.10+dfsg-1mobian3 (Dec 05 2021 - 21:17:03 +0000)
DRAM: 3072 MiB
Trying to boot from MMC2
NOTICE:  BL31: v2.6(debug):
NOTICE:  BL31: Built : 01:26:17, Nov 27 2021
@mbohun
mbohun / NOTES.md
Created January 24, 2022 03:01
HiFive Unmatched, RISC-V

HiFive Unmatched

lspci

00:00.0 PCI bridge: SiFive, Inc. FU740-C000 RISC-V SoC PCI Express x8 to AXI4 Bridge
01:00.0 PCI bridge: ASMedia Technology Inc. ASM2824 PCIe Gen3 Packet Switch (rev 01)
02:00.0 PCI bridge: ASMedia Technology Inc. ASM2824 PCIe Gen3 Packet Switch (rev 01)
02:02.0 PCI bridge: ASMedia Technology Inc. ASM2824 PCIe Gen3 Packet Switch (rev 01)
02:03.0 PCI bridge: ASMedia Technology Inc. ASM2824 PCIe Gen3 Packet Switch (rev 01)
02:04.0 PCI bridge: ASMedia Technology Inc. ASM2824 PCIe Gen3 Packet Switch (rev 01)
02:08.0 PCI bridge: ASMedia Technology Inc. ASM2824 PCIe Gen3 Packet Switch (rev 01)
@mbohun
mbohun / NOTES.md
Last active June 24, 2021 10:04
git mirror repo
@mbohun
mbohun / dummy.md
Last active March 11, 2020 07:56
dummy

This is/was just to see if the number of public gists returned from the GitHub REST API / GraphQL API changes.

@mbohun
mbohun / NOTES.md
Created December 4, 2019 23:27
JavaScript raw socket notes
/*
Additional:

Update: From the W3C Draft January 2016:
This will be possible via the navigator interface as shown below:

http://raw-sockets.sysapps.org/#interface-tcpsocket
https://www.w3.org/TR/tcp-udp-sockets/
*/
@mbohun
mbohun / NOTES.md
Last active April 2, 2024 14:08
Converting MS Office files to PDF

Converting MS Office files to PDF

(Description of the different solutions / alternatives)

1. Microsoft Windows based solutions

1.1 Microsoft Graph API (Office 365)

This is the current, official, Microsoft endorsed/supported solution ("cloud based")
(2017 - present)

  1. The user uploads their MS Office document (source.doc in our example snippet bellow) to their Microsoft OneDrive
  2. The user then uses the Microsoft Graph REST API to send a HTTP GET Request to the Convert content endpoint:
@mbohun
mbohun / word_doc_to_docx.py
Last active April 20, 2023 05:48 — forked from davecoutts/word_doc_to_docx.py
Convert Word 'doc' files to 'docx', 'pdf', other format using win32com to automate Microsoft Word
# Convert Microsoft Word 'doc' files to 'docx' format by opening and
# saving Word files using win32com to automate Microsoft Word.
#
# The script walks a directory structure and converts all '.doc' files found.
# Original 'doc' and new 'docx' files are saved in the same directory.
#
# This Word automation method has been found to work where OFC.exe and
# wordconv.exe do not.
#
# Tested using Windows 7, Word 2013, python 2.7.10, pywin32-219.win-amd64-py2.7