Skip to content

Instantly share code, notes, and snippets.

View terrillmoore's full-sized avatar

Terry Moore terrillmoore

View GitHub Profile
@terrillmoore
terrillmoore / setupPC.ps1
Created September 29, 2022 19:50 — forked from iogeek/setupPC.ps1
setup Windows dev PC
# Prep WSL
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
### Make it mine
# Timeout / battery prefs
powercfg /Change monitor-timeout-ac 5
powercfg /Change standby-timeout-ac 0
powercfg /Change monitor-timeout-dc 5
powercfg /Change standby-timeout-dc 30

Reflashing the MCIMX8M-EVKB with Android

We bought a couple of MCIMX8M-EVKB, and one came in bricked. It's a bit complicated to reflash them; here are the instructions all in one place.

These are instructions for Windows.

  1. Download the appropriate version of uuu from GitHub
  2. Download the image for 12.0.0_1.0.0_DEMO_8MQ:
  • Scroll down to software and click "show all":

NXP MCIMX8M-EVKB boot switch settings

I couldn't find a concise summary, so I looked at the schematics (page 11 of SPF-3880_A2.pdf).

  • SW802 is the main mode switch, two position.
  • SW801 is the secondary switched, used if "internal boot (development) is selected.

SW802

SW1 is BOOTMODE_1, and SW2 is BOOTMODE_0. The board ships with SW1=1 and SW2=0.

@terrillmoore
terrillmoore / Yeti-vs-Intel-Smart-Sound-Technology.md
Created April 10, 2022 02:55
Make Yeti mic work on Surface Pro 7+ Windows 10/11

Yeti mic on Surface Pro 7+

Do you have a Yeti (or other) USB microphone that worked perfectly on your previous Windows 10 system, but doesn't work on a your new system? This tip might help.

Here are the symptoms:

  • The Yeti doesn't appear in any of the audio input selection menus.
  • The Yeti doesn't appear in Windows Device Manager under "Audio inputs and outputs"
  • But the Yeti does appear in Windows Device Manager, under "Sound, video and game controllers"
@terrillmoore
terrillmoore / getting-far-dfars-from-sam.md
Created March 24, 2022 01:27
Getting your FAR & DFARS report from sam.gov

Getting your FAR & DFARS report from sam.gov

I had occasion to get my company's FAR and DFARS reports from sam.gov recently, and the process was surprisingly obscure. I did a search, but all I found were videos on YouTube that were out of date; and I wasn't able to find a help article that explained what to do.

So here's a quick runthrough.

  1. Log into sam.gov

  2. The website will open your "Workspace" page. Click on the "Active" entities bubble:

@terrillmoore
terrillmoore / setup-sshd-windows.md
Last active August 21, 2023 19:16
Setting Up Inbound OpenSSH (sshd) access on Windows 10 and 11

Setting Up Inbound OpenSSH (sshd) access on Windows 10 and 11

The OpenSSH SSHD service on Windows 10 an 11 is extremely useful, but a bit tricky to set up. Here are my notes on how to do it.

  1. Follow the instructions from [[1]] to "Install OpenSSH" via Windows Settings. Alternately, use PowerShell:

    Add-WindowsCapability -Online -Name OpenSSH.Client
    Add-WindowsCapability -Online -Name OpenSSH.Server
@terrillmoore
terrillmoore / SecondScreen.md
Created January 1, 2022 00:11
Second Screen Windows desktop to Android Tablet

Desktop Extension from PC to Galaxy Tab A7

Problem statement: use a Samsung Galaxy Tab A7 with OneUI 3.1 as a seccond screen on Windows.

According to Samsung at time of writing, a "Second Screen" button comes as part of the OneUI 3.1 update (article here). However, for me (as for many people), this doesn't work on a Galaxy Tab A7, at least with OneUI 3.1.

The solution that works for me is a free application called spacedesk from DatronicSoft in Germany.

Steps to install on tablet:

@terrillmoore
terrillmoore / Scoop-CMake-3.20.4.json
Last active July 14, 2021 22:04
Scoop manifest for CMake-3.20.4
{
"version": "3.20.4",
"description": "Open-source, cross-platform family of tools designed to build, test and package software",
"homepage": "https://cmake.org/",
"license": "BSD-3-Clause",
"architecture": {
"64bit": {
"url": "https://github.com/Kitware/CMake/releases/download/v3.20.4/cmake-3.20.4-windows-x86_64.zip",
"hash": "965d2f001c3ca807d288f2b6b15c42b25579a0e73ef12c2a72c95f4c69123638",
"extract_dir": "cmake-3.20.4-windows-x86_64"
@terrillmoore
terrillmoore / README.md
Created March 14, 2021 16:51
Solve nacl wget install problem without disabling certificate checks

Solve NaCl wget install problem

Problem statement

The NaCl install instructions http://nacl.cr.yp.to/install.html state:

Here is how to download and compile NaCl:

wget https://hyperelliptic.org/nacl/nacl-20110221.tar.bz2
@terrillmoore
terrillmoore / wordpress-import-update.php
Created January 23, 2021 16:21 — forked from ssuess/wordpress-import-update.php
Force the WordPress importer to update existing posts instead of skipping them
<?php
/**
* When using the WordPress Importer, update existing
* posts instead of skipping them. Updates content according
* to the import file even if the existing post was updated
* more recently.
*
* To use, drop this file into your /mu-plugins/ folder or
* copy this code into your functions.php file.