Skip to content

Instantly share code, notes, and snippets.

sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install git wget curl coreutils ntp rsync -y
# install fonts for zsh
sudo apt-get install powerline -y
# install zsh
sudo apt-get install zsh -y
# Prerequisites
# - install debian netinst iso in non-graphical mode
# - deselect all packages that are advertised at the end of the installer - EXCEPT the SSH server and the standard system utilities
# - logged in as non-root user, then `su root` and follow the `Usage`.
# Usage
# `wget -O - "https://gist.githubusercontent.com/thetillhoff/38b109abe1782708c0059f7f99e1426f/raw/setup-debian-server.sh" | sh`
# or
# `wget -O - "https://link.thetillhoff.de/debian-server" | sh`
# Prerequisites
# - install debian netinst iso in non-graphical mode
# - deselect *all* packages that are advertised at the end of the installer
# Usage
# `wget -O - "https://gist.githubusercontent.com/thetillhoff/38b109abe1782708c0059f7f99e1426f/raw/setup-debian-desktop.sh" | sh`
# or
# `wget -O - "https://link.thetillhoff.de/debian-desktop" | sh`
# Result
@thetillhoff
thetillhoff / oneliners.md
Created February 13, 2022 03:00
Golang cheatsheet

Print object with field names

fmt.Printf("%+v\n", object)
@thetillhoff
thetillhoff / aws.md
Last active November 5, 2023 23:40
devops cheat sheet

Get ec2 instance information from within (when connected via ssh)

curl http://169.254.169.254/latest/dynamic/instance-identity/document
@thetillhoff
thetillhoff / cobra-setup.md
Last active August 29, 2021 22:05
Go-Cobra Initialize new project - Command order
  1. echo """author: Till Hoffmann name@domain.tld license: MIT """ > ~/.cobra.yaml
  2. cobra init --pkg-name github.com/thetillhoff/name
  3. go mod init github.com/thetillhoff/name
  4. go mod tidy

Keybase proof

I hereby claim:

  • I am thetillhoff on github.
  • I am thetillhoff (https://keybase.io/thetillhoff) on keybase.
  • I have a public key ASAzZjUsZAZ5IiOxg_WoFPcKPOWiFcFW7S8Ta3bIdDFGIQo

To claim this, I am signing this object: