Sort by:
  • Bash Magic

    Paul Brown · 04/09/2024 · 1 min read

    Loop to perform a command multiple times

    for i in {1..20}; do php artisan test --filter ReflectionMethodHelperTest; done;
    
  • Dig DNS Tool

    Andy Brown · 31/07/2024 · 1 min read

    The dig (Domain Information Groper) DNS tool is a command line too for querying DNS servers.

    Examples

    • If you run dig google.com you will get...
  • Graphite Cheat Sheet

    Andy Brown · 31/07/2024 · 1 min read

    • gt create --all --message "Some commit message here": Create a branch for the current changes.
    • `gt create --all --message "Some commit message h...
  • How to Build a Smart Thermostat Part 1

    Andy Brown · 18/07/2024 · 8 min read

    The first post in a series exploring how to build a custom smart thermostat. This post focuses on controlling the boiler with a relay.

  • Kotlin/Swift Comparison: Enums

    Andy Brown · 17/07/2024 · 1 min read

    A look at the differences between Kotlin and Swift enums

  • @dataclass decorator

    Andy Brown · 17/07/2024 · 1 min read

    In Python you can use the @dataclass decorator to simplify the creation of classes that are primariliy used to store data. It automatically generate...

  • SwiftUI notes

    Andy Brown · 01/07/2024 · 1 min read

    Implicit Identity

    Gotcha 1

    Be careful when using something like this:

    extension View {
        @ViewBuilder
        func applyIf(_ condition:...
    
  • Fork shortcuts

    Andy Brown · 26/06/2024 · 1 min read

    Quick stash

    ⌘ command + ⌥ option + ⇧ shift + H

    Discard changes

    Select one/all and hit: ⌘ command + ⇧ shift + D

    Stage/unstage changes

    Sel...