Skip to content

Instantly share code, notes, and snippets.

View terrillmoore's full-sized avatar

Terry Moore terrillmoore

View GitHub Profile
@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 / 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 / Adapt-IPFire-conf-for-Asus-WRT.md
Last active June 10, 2023 14:50
Adapting IPFire net-to-net client config for OpenVPN in ASUS WRT routers

Adapting IPFire net-to-net client config for OpenVPN in ASUS WRT routers

IPFire supports net-to-net connections.

Part of setting up the connection with non-IPFire peers often involves generating a .ovpn file from the client package.

There are some client docs about how to do this, but not net-to-net.

For net-to-net clients, IPFire generates a zip file containing two files. Both files are named based on the name you choose for the VPN.

@terrillmoore
terrillmoore / OpenSSL-1_1_0-stable-VS2015.md
Last active October 28, 2022 00:38
Building OpenSSL 1.1.0 with Microsoft VS 2015

Building OpenSSL 1.1.0 with Microsoft VS 2015

MCCI needs OpenSSL for a Windows project (that will be cross-platform). A casual search didn't turn up either a good source for cross-platform libraries, which meant we have to build them ourselves. A deeper search found a detailed guide here, and yet the details don't match what I found when I checked out the code; and the post doesn't talk about doing it directly from GitHub (which I wanted to do).

Here's the procedure for building OpenSSL on 64-bit Windows 10, with Visual Studio 2015. Others (July 2019) report that this procedure works with Visual Studio 2017 as well. I've not had a chance to try with Visual Studio 2019.

As this procedure dates from late 2016, you may find that there's a CMake or other, newer, procedure that's more suitable.

  1. If you don't have it, please install git bash from git-scm.com.
@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

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.

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":
@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 / PSpice-for-TI-and-Git-coexistance.md
Last active October 11, 2021 00:54
Make PSpice for TI work in conjunction with git for windows

Make PSpice for TI work in conjunction with Git for Windows

I recently installed PSpice for TI (version 17.4-2020 S002 Windows SPB 64-bit edition).

After installing, Git for Windows bash no longer worked as expected. Instead of starting up in my home directory, it started up in the (emulated) root directory; and it didn't load my profile. (In other words, installing PSpice for TI broke my Git for Windows installation.)

Investigation revealed that the installation had created an environment variable HOME in my profile, with the value c:\mcci\projects\SBP_Data. It was easy enough to fix this.

  • Control Panel
  • System