Skip to content

Instantly share code, notes, and snippets.

View volks73's full-sized avatar

Christopher Field volks73

View GitHub Profile
@volks73
volks73 / SSH X11 Forwarding with XAuth and WSL2.md
Last active October 13, 2021 06:35
Fix for warning about fake authentication when X11 forwarding through SSH and WSL2

SSH X11 Forwarding with XAuth and WSL2

Assuming WSL2 is installed, configured, and the VcXsrv is working, if the following error message appears when logging into a remote machine using X11 forwarding, i.e. ssh -X user@remote:

Warning: No xauth data; using fake authentication data for X11 forwarding.

then, ensure the xauth application is installed in the WSL2 host,

Windows 10 Spacemacs Tramp

Spacemacs is a distribution of the Emacs text editor, while Tramp is an Emacs mode that enables seemless editing of remote files over SSH. [Windows 10] is an Operating System (OS) that until very recently did not have a built-in SSH client. Microsoft did recently add the [OpenSSH] client and server to Windows 10, but for version 1809 and newer. Tramp does not appear to currently support, or recognize, the Windows 10 1809 OpenSSH client, but it does support [plink] from the makers of [PuTTY], which was the only real, viable SSH client for Windows prior to Windows 10 1809. Thus, even if the Windows 10 1809 OpenSSH client is available and installed, PuTTY and plink are still needed to remotely edit files from a Windows 10 client using Tramp.

@volks73
volks73 / Git Commit Message Subject Verbs.md
Last active October 19, 2019 14:00
Convention for writing git commit messages
  • Add = Create a capability e.g. feature, test, dependency.
  • Cut = Remove a capability e.g. feature, test, dependency.
  • Fix = Fix an issue e.g. bug, typo, accident, misstatement.
  • Bump = Increase the version of something e.g. dependency.
  • Make = Change the build process, or tooling, or infra.
  • Start = Begin doing something; e.g. create a feature flag.
  • Stop = End doing something; e.g. remove a feature flag.
  • Refactor = A code change that MUST be just a refactoring.
  • Reformat = Refactor of formatting, e.g. omit whitespace.
  • Optimize = Refactor of performance, e.g. speed up code.
@volks73
volks73 / libssh2lv-ni-eclipse-cross-compile.md
Last active May 8, 2019 16:01
Deprecated procedure for building libssh2lv using NI Eclipse

Cross-Compiling libssh2lv with NI Eclipse (Deprecated)

This procedure does not actually yield a viable shared object. It is provided here only as a reference.

NI provides a cross-compiler for their Real-Time (RT) Linux distribution. Before proceeding, download and install the C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition 2017. It is also best to review the Getting Stared with C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition guide for more general information about configuring the internal builder.

  1. Start NI Eclipse. A Workspace Launcher dialog may appear. Use the default.
  2. A welcome screen may appear after the application has loaded. Close the welcome screen.
  3. Right-click in the Project Explorer on the left and select Import from the context menu that appears. A new dialog will appear.
  4. Select Git->Projects from Git from the dialog that appears. Cli
@volks73
volks73 / ni-linux-rt-build-env.md
Last active August 15, 2023 13:54
A how-to for setting up NI embedded hardware running the NI Linux RT operating system as a build environment
@volks73
volks73 / assert_cmd-input-ext.rs
Last active June 18, 2018 15:22
Extending process::Command using the assert_cmd crate to write a sequence of input to stdin over time
extern crate assert_cmd;
extern crate failure;
extern crate predicates;
use assert_cmd::{Assert, OutputAssertExt};
use predicates::Predicate;
use std::ffi::OsStr;
use std::fmt;
use std::io;
use std::process::{self, ChildStdin};
@volks73
volks73 / AutoHotkey.ahk
Created September 26, 2017 14:47
AutoHotkey script to change Caps Lock to Control on hold and Escape on press and release
; Change Caps Lock to Control when held down; otherwise, Escape
;
; Originally based on the answer provided in
; [this](https://superuser.com/questions/581692/remap-caps-lock-in-windows-escape-and-control)
; StackExchange SuperUser question.
;
; A shortcut should be created for this script and placed in the Windows 10
; user's startup folder to automatically enable the feature on boot/startup.
; The user's startup folder can be found using the following steps:
;