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 / 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).

@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 / uberspace-wildcard-letsencrypt.md
Last active June 12, 2023 01:12
Let's Encrypt Wildcard Certificates at Uberspace using acme.sh

Let's Encrypt Wildcard Certificates at Uberspace using acme.sh

About

This documents how i've set up wildcard SSL support for my private websites (because once things are done, i tend to forget about their details).

/* =============================================================================
Media queries for different screen sizes
========================================================================== */
// xs only
.screen-xs(@rules) {
@media (max-width: @screen-xs-max) { @rules(); }
}
// sm and larger
@simbo
simbo / raspberry-pi-setup.md
Last active January 26, 2023 15:38
Setting up a Raspberry Pi (Model B Rev 2, armv6l) with a linux without desktop, controlled remotely via ssh, installed zsh, pure prompt, ufw, git, node.js, npm, yarn, nginx with ssl

Setting up a Raspberry Pi (Model B Rev 2, armv6l)

How to setup a pi with a linux without desktop, controlled remotely via ssh.

Installing: zsh, pure prompt, ufw, git, node.js, npm, yarn, nginx with ssl, pi-hole.

Prepare SD Card

Download the Raspberry Pi Imager,

@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 / provision-node.sh
Last active July 13, 2022 14:24
setup node.js with nvm within vagrant
##
# add this to your provision.sh
#
# [!] run as 'vagrant' like this:
# su vagrant -c "source ${PROVISION_DIR}/provision-node.sh"
#
# [!] please keep the echo messages. those actions could take some more time without any output, so let the user know.
##
# install latest nvm
Abälard
Abälards
abergläubig
abergläubige
abergläubigem
abergläubigen
abergläubiger
abergläubigere
abergläubigerem
abergläubigeren
@simbo
simbo / uberspace-matomo.md
Last active February 12, 2021 19:10
Setup Matomo on Uberspace with GDPR Compliance