Skip to content

Instantly share code, notes, and snippets.

View floriankraemer's full-sized avatar

Florian Krämer floriankraemer

View GitHub Profile
@floriankraemer
floriankraemer / clean_code.md
Created April 22, 2026 22:08 — forked from cedrickchee/clean_code.md
Summary of "Clean Code" by Robert C. Martin

Summary of "Clean Code" by Robert C. Martin

A summary of the main ideas from the "Clean Code: A Handbook of Agile Software Craftsmanship" book by Robert C. Martin (aka. Uncle Bob).

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

@floriankraemer
floriankraemer / killport.sh
Created December 11, 2024 13:30
Kills a process running on a given port
#!/bin/bash
# Check if a port number is passed as an argument
if [ -z "$1" ]; then
echo "Usage: $0 <port_number>"
exit 1
fi
PORT=$1
@floriankraemer
floriankraemer / config.aa.php
Last active July 31, 2023 08:01
Shared AA Config for the Time Logging App
<?php
const MEETINGS = 'CC-25574'; // General Work -meeting participation, team activities
const ARCHITECTURE = 'CC-25882'; // Design and planning of Spaceship features - arch leadership
const EDUCATION = 'CC-26282'; // Education & Time Logging
const BILLABLE = 'CC-26268'; // Billable hours
return [
'mainAttendeeEmail' => '',
'skippedEvents' => [
#!/bin/bash
# Directory to scan
directory="$1"
# Check if directory is provided
if [ -z "$directory" ]; then
echo "Please provide a directory."
exit 1
fi
@floriankraemer
floriankraemer / Browser-Addons.md
Last active June 6, 2022 20:22
Browser Addons

Essentielle Browser Addons

Privacy Badger (Privacy Tool, Tracking Blocker)

Die Industrie steht dem Staat in nichts nach was die Begehrlichkeiten nach unseren privaten Daten angeht. Während wir einfach nur das Web browsen sammeln tausende Tracking-Tools, die in quasi allen größeren Seiten eingebettet sind, Daten über uns. Durch unser Surfverhalten und was wir uns ansehen läßt sich ein sehr genaues Persönlichkeitsprofil ermitteln.

Die EFF, eine gemeinnützige Organisation, stellt daher den Privacy Badger zur Verfügung der sehr viele dieser kleinen miesen Trackingwanzen unterbindet.

@floriankraemer
floriankraemer / install-php.sh
Last active May 3, 2024 17:52
PHP installer script for Ubuntu
#!/usr/bin/env bash
# https://computingforgeeks.com/how-to-install-php-on-ubuntu/
phpVersions=('8.1')
modules=('zip' 'cli' 'fpm' 'bcmath' 'gd' 'xml' 'mbstring' 'xml' 'curl' 'pgsql' 'mysql' 'imagick' 'intl' 'amqp' 'intl' 'imap' 'opcache' 'redis', 'dom')
sudo apt -y install software-properties-common
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update