Sort by:
  • SSH

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

    Create new SSH directory

    1. Create an SSH directory if it doesn't exist: mkdir -p ~/.ssh.
    2. Ensure the SSH directory has the correct permission...
  • Xcode shortcuts

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

    Open preferences

    ⌘ command + ,

  • Slack messaging from scripts

    Andy Brown · 24/05/2024 · 1 min read

    First create a Slack app and get the webhook URL.

    Then you can use the following command to test your application:

    curl -X POST -H 'Content-t...
    
  • Grep usage

    Paul Brown · 15/05/2024 · 1 min read

    Search for a given word across a given directory

    grep -ir "word-to-search-for" /path/to/search/directory --exclude-dir={directory-to-ignor...
    
  • GitHub Actions

    Paul Brown · 11/05/2024 · 1 min read

    #Edit Pull Request Description ###Scratches: see: here for us...

  • e() helper notes

    Paul Brown · 10/05/2024 · 1 min read

    Research on e() helper for blog post

    • Laravel's first documentation from late 2011 -- [found here](http://web.archive.org/web/20111210235706/http:...
  • React Learning and Notes

    Paul Brown · 06/04/2024 · 2 min read

    useState

    • useState is a 'hook' ('hooks' are functions in React for 'hooking into' state and lifecycle methods -- though this loosely makes sense...
  • VS Code shortcuts

    Paul Brown · 13/03/2024 · 1 min read

    Tab between open editor windows

    ⌘ command + ⌥ option + → ⌘ command + ⌥ option + ←

    Tab between open terminal...

  • Artisan Commands

    Paul Brown · 17/02/2024 · 1 min read

    Rollback a specific migration

    php artisan migrate:rollback --path="database/migrations/2024_01_23_135542_create_new_table"
    

    Run a sp...