Skip to content

Instantly share code, notes, and snippets.

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
@ajgappmark
ajgappmark / open_source_dos_games.md
Created January 1, 2024 07:45 — forked from lucasw/open_source_dos_games.md
Open Source DOS Games

Actual dos games that could at least theoretically be recompiled with the right dos tools, and then played in dosbox or on real hardware.

Doom doesn't count because the dos source is not available.

Look at http://dosgames.com/forum/about19706.html

@ajgappmark
ajgappmark / container.go
Created January 22, 2024 18:17 — forked from christophberger/container.go
A container in less than 60 lines of Go
package main
import (
"fmt"
"os"
"os/exec"
"syscall"
)
func main() {
@ajgappmark
ajgappmark / bash-aliases.sh
Created March 1, 2024 11:11
bash-aliases
#=== [bash aliases] ===
alias ++='pushd'
alias -- -='popd'
alias ??='dirs -v'
alias ]='xdg-open '
alias ackl='ack --pager='\''less -ar '\'' --ignore-file=match:/[Cc]hange[Ll]og\.?/ --ignore-file=match:/\.po/ '
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
alias bman='man --html=x-www-browser '
alias cdiff='git diff --no-index '
alias cdt='cd ~/tmp '
@ajgappmark
ajgappmark / .dircolors
Created March 21, 2024 11:02
dircolors
# Zenburn color theme for the color GNU ls utility.
# Term Section
TERM Eterm
TERM ansi
TERM color-xterm
TERM con132x25
TERM con132x30
TERM con132x43
TERM con132x60
@ajgappmark
ajgappmark / gitps1.sh
Created April 13, 2024 08:48
git ps1 to display branch name info for bash, works on debian, arch
#__git_sequencer_status is a function
function __git_sequencer_status ()
{
local todo;
if test -f "$g/CHERRY_PICK_HEAD"; then
r="|CHERRY-PICKING";
return 0;
else
if test -f "$g/REVERT_HEAD"; then
r="|REVERTING";
part
id = "89s52";
desc = "AT89S52";
stk500_devcode = 0xE1;
signature = 0x1e 0x52 0x06;
chip_erase_delay = 500000;
reset = dedicated;
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
"x x x x x x x x x x x x x x x x";