Skip to content

Instantly share code, notes, and snippets.

View simbo's full-sized avatar
:octocat:

Simon Lepel simbo

:octocat:
View GitHub Profile
@simbo
simbo / store.ts
Created December 9, 2020 08:48
Mini-Store with Actions, Effects and Immutability under 1KB
import produce from 'immer';
import { BehaviorSubject, Observable, Subject } from 'rxjs';
import {
distinctUntilChanged,
filter,
map,
withLatestFrom
} from 'rxjs/operators';
// tslint:disable:no-any
@simbo
simbo / raspi4-ubuntu64.md
Last active January 23, 2021 05:18
Setting up Ubuntu 20.10 64bit Server on Raspberry Pi 4 B
Abälard
Abälards
abergläubig
abergläubige
abergläubigem
abergläubigen
abergläubiger
abergläubigere
abergläubigerem
abergläubigeren
@simbo
simbo / .bashrc
Last active November 27, 2022 20:35
Bashrc commons
# set prompt with git info, last exit code and colors
promptCommand() {
# values
lastExitCode=$?
gitRev="$(git branch 2>/dev/null | grep '^*' | colrm 1 1)"
# colors
# (all 8bit color codes: https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit)
user=$(tput setaf 214)
at=$(tput setaf 240)
host=$(tput setaf 90)
@simbo
simbo / keychain.md
Created November 27, 2022 20:30
Setup ssh keychain for Ubuntu

Setup ssh keychain for Ubuntu

Install keychain

sudo apt-get update
sudo apt-get install keychain

Add keychain commands to .bashrc

@simbo
simbo / debian-linux-ssh-motd.md
Last active September 17, 2025 06:24
Debian Linux SSH MOTD

Debian Linux (SSH) MOTD

The Message Of The Day displayed on shell login is generated from

  • output of executable scripts in /etc/update-motd.d
  • contents of /etc/motd
  • last ssh login

Custom Welcome Message