Skip to content

Instantly share code, notes, and snippets.

View megahirt's full-sized avatar

Christopher Hirt megahirt

  • SIL International
  • Thailand
View GitHub Profile
@megahirt
megahirt / wsl_settings.md
Created March 27, 2022 10:06
How I roll with WSL (My WSL configuration)

My WSL Setup / Configuration

WSL Configuration

  • Ubuntu 20.04
  • Docker
  • Docker Compose V2
  • nvm
  • GPG key
@megahirt
megahirt / Docker with XDebug.md
Last active October 25, 2024 01:12
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

@megahirt
megahirt / gulpfile.js
Created April 1, 2021 16:07
Gulpfile.js portions relevant to production config before it was destroyed
// -------------------------------------
// Task: Build Remove test fixtures (directives) in HTML only on live build
// -------------------------------------
gulp.task('build-remove-test-fixtures', function (done) {
var params = require('yargs')
.option('dest', {
demand: false,
default: 'root@localhost:/var/www/virtual/languageforge.org',
type: 'string' })
.fail(yargFailure)
@megahirt
megahirt / svelte-testing.md
Last active March 15, 2021 01:09
List of Svelte Testing Articles