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 / debian-linux-ssh-motd.md
Last active February 23, 2024 11:00
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

@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 / .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)
Abälard
Abälards
abergläubig
abergläubige
abergläubigem
abergläubigen
abergläubiger
abergläubigere
abergläubigerem
abergläubigeren
@simbo
simbo / raspi4-ubuntu64.md
Last active January 23, 2021 05:18
Setting up Ubuntu 20.10 64bit Server on Raspberry Pi 4 B
@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 / gh-pages-project-deploy.yml
Last active November 29, 2020 10:22
GitHub Actions Workflow to deploy Project Pages
name: CI
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🛎 Checkout
@simbo
simbo / gh-pages-user-deploy.yml
Last active November 29, 2020 10:22
GitHub Actions Workflow to deploy User or Organization Pages
name: CI
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🛎 Checkout
@simbo
simbo / pihole-setup-simple.md
Created November 25, 2020 15:45
Setting up a Raspberry Pi for pi-hole

Setting up a Raspberry Pi for pi-hole

Used Model: Raspberry Pi (Model B Rev 2, armv6l)

Prepare SD Card

Download the Raspberry Pi Imager, start it and follow the instructions to create an image using the Raspberry Pi OS Lite (32-bit) (a debian port without desktop environment).

@simbo
simbo / raspberry-pi-setup-pihole.md
Created November 24, 2020 15:22
Setting up a Raspberry Pi for pi-hole with nginx

Setting up a Raspberry Pi for pi-hole with nginx

Model: Raspberry Pi (Model B Rev 2, armv6l)

Prepare SD Card

Download the Raspberry Pi Imager, start it and follow the instructions to create an image using the Raspberry Pi OS Lite (32-bit) (a debian port without desktop environment).