Skip to content

Instantly share code, notes, and snippets.

View tomschall's full-sized avatar
:octocat:
Ask me...

Tom Schall tomschall

:octocat:
Ask me...
  • Fachhochschule Nordwestschweiz
  • Bern - Switzerland
  • X @tomschall79
View GitHub Profile
@tomschall
tomschall / Docker with XDebug.md
Created September 12, 2024 11:33 — forked from megahirt/Docker with XDebug.md
Debugging PHP with XDebug v3 inside Docker using VSCode

Debugging PHP with XDebug v3 inside Docker using VSCode

Assumptions / Prerequisites

  • XDebug v3+ inside Docker (e.g. php:7.3-apache Docker image)
  • Running Docker v20.10+
  • VSCode with PHP Debug Extension (Felix Becker)
  • Using Docker Compose for orchestration

Objective

@tomschall
tomschall / .bash_profile
Created January 26, 2023 17:20 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@tomschall
tomschall / push-all-tags.sh
Created December 12, 2022 09:48 — forked from jamieoliver/push-all-tags.sh
Push all Git tags to a remote repository. Useful for keeping a fork up to date with the upstream repo.
git push <remote> --tags
@tomschall
tomschall / moodle_on_do.md
Created May 13, 2022 14:26 — forked from burningTyger/moodle_on_do.md
How To Install Moodle via git with Postgres, Nginx and PHP on an Ubuntu 16.04 VPS

How To Install Moodle via git with Postgres, Nginx and PHP on an Ubuntu 16.04 VPS

Introduction

Moodle is a common online learning platform used in many educational settings around the world. This tutorial aims at giving admins a solid and speedy foundation for serving moodle to a small to medium sized institution. The setup focuses on simple maintenance and fast updates.

Prerequisites

  • Create a small droplet with Ubuntu 16.04 (64Bit is great)
  • Follow the tutorial on setting up Ubuntu 16.04
  • git should be installed by default
@tomschall
tomschall / async1.js
Created January 17, 2019 17:07 — forked from bmorelli25/async1.js
promise example
function doubleAfter2Seconds(x) {
return new Promise(resolve => {
setTimeout(() => {
resolve(x * 2);
}, 2000);
});
}
function addPromise(x){
return new Promise(resolve => {
@tomschall
tomschall / introrx.md
Created January 29, 2018 16:00 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing