Skip to content

Instantly share code, notes, and snippets.

View TXC's full-sized avatar
💁‍♂️
🧙‍♂️ 🇸🇪

Jonas Marklén TXC

💁‍♂️
🧙‍♂️ 🇸🇪
View GitHub Profile
@ShawnTheBeachy
ShawnTheBeachy / TestWorkerService.cs
Last active March 26, 2024 08:30
WorkerServiceFactory implementation
using Microsoft.Extensions.Hosting;
public sealed class TestWorkerService : IDisposable
{
internal readonly IHost Host;
internal TestWorkerService(
HostApplicationBuilder builder,
Action<IHostApplicationBuilder> configure
)

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
@thejettdurham
thejettdurham / homestead-xdebug.md
Last active November 1, 2021 23:43
Debugging laravel/lumen + artisan from Homestead with PHPStorm over xdebug

This config works for me with the following setup, YMMV

  • OSX El Capitain
  • PHPStorm 2016.2.1
  • Lumen 5.2
  • Homestead as of Lumen 5.2
    • php 7.0.8-2
    • Xdebug 2.4.0

Homestead Configuration

@kevin-smets
kevin-smets / iterm2-solarized.md
Last active July 27, 2024 13:28
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k