Skip to content

Instantly share code, notes, and snippets.

View Jake-Shadle's full-sized avatar
:shipit:
:shipit:

Jake Shadle Jake-Shadle

:shipit:
:shipit:
View GitHub Profile

linux-gate

Credit to Johan Petersson 2005-08-14, original was located at https://www.trilithium.com/johan/2005/08/linux-gate/ but is now defunct (and broken in Wayback Machine).

What is linux-gate.so.1?

When you use the ldd utility on a reasonably recent Linux system you'll frequently see a reference to an ethereal entity known as linux-gate.so.1:

ldd /bin/sh
@Jake-Shadle
Jake-Shadle / xwin.dockerfile
Last active January 3, 2024 13:47
Example dockerfile for cross compilation of `x86_64-pc-windows-msvc` Rust binaries in a Linux container
# We'll just use the official Rust image rather than build our own from scratch
FROM docker.io/library/rust:1.54.0-slim-bullseye
ENV KEYRINGS /usr/local/share/keyrings
RUN set -eux; \
mkdir -p $KEYRINGS; \
apt-get update && apt-get install -y gpg curl; \
# clang/lld/llvm
curl --fail https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor > $KEYRINGS/llvm.gpg; \
@Jake-Shadle
Jake-Shadle / bark.bat
Created April 7, 2020 11:59
Rust CI Scripts
@powershell ./bark.ps1 %*
@Jake-Shadle
Jake-Shadle / enable-openssh-server.ps1
Created April 4, 2019 08:16
Installs/enables the Windows Server 2019 OpenSSH service and agent
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Set-Service sshd -StartupType Automatic
Set-Service ssh-agent -StartupType Automatic
Start-Service sshd
Start-Service ssh-agent

Keybase proof

I hereby claim:

  • I am jake-shadle on github.
  • I am jakeshadle (https://keybase.io/jakeshadle) on keybase.
  • I have a public key ASCHLZzM_k1oshqUzJWdK1fYlIpCZRPmSV7yD_mTlQUqjgo

To claim this, I am signing this object:

git clone --bare https://github.com/Jake-Shadle/dot_files.git $HOME/.cfg
function config {
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
}
mkdir -p .config-backup
config checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dot files.";
import sys
import re
import os
testCaseRegex = re.compile (r'TEST\s*\((\w+),\s*(\w+)\)')
expectRegex = re.compile (r'EXPECT_(\w+)\s*\((.*)\);')
assertRegex = re.compile (r'ASSERT_(\w+)\s*\((.*)\);')
leadingWhitespaceRegex = re.compile(r'^(\s*)')
module = "[unknown]"