Skip to content

Instantly share code, notes, and snippets.

View ben-doyle's full-sized avatar

Benjamin Doyle ben-doyle

View GitHub Profile
@ben-doyle
ben-doyle / self_hosted_open_source.md
Created February 14, 2025 12:20
Open source, self hosted tools I like
@ben-doyle
ben-doyle / local_llm.md
Last active January 30, 2025 05:55
Running an LLM (AI) locally, and how to use it

Running an LLM (AI) locally, and how to use it

Getting the models running on your machine using Ollama

Ollama is a lightweight framework for running large language models (LLMs) locally on your machine. It simplifies the process of downloading, running, and interacting with AI models without requiring extensive setup.

What we are using

How to install it

@ben-doyle
ben-doyle / ios_interview.md
Created February 18, 2022 04:16
iOS Developer Interview

iOS Developer interview.

Order:

  1. Introduction (5 Mins)
    1. Introduce yourself.
    2. Ask the candidate to talk about themselves.
  2. Questions from resume/recent work.
  3. Questions about how you work, and find information.
  4. Technical Questions.
  5. Candidate questions.
@ben-doyle
ben-doyle / setup.MD
Last active February 15, 2025 23:21
New computer setup

New computer setup

Terminal

  • iTerm - Terminal emulator
  • oh-my-zsh - Zsh configurator
    • Install sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    • Add zsh-autosuggestions git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  • powerlevel10k - Zsh theme
    • git clone --depth=1 https://github.com/romkatv/powerlevel10k.git "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k"
@ben-doyle
ben-doyle / testing_react_components.MD
Created September 16, 2019 00:36
Testing react components

Testing react components

Guiding Principle

React testing library follows a guiding principle which is quoted below:

The more your tests resemble the way your software is used, the more confidence they can give you.

It's a little vague, and might be interpreted differently but to reword it for us, possibly this would be fitting:

@ben-doyle
ben-doyle / perforce.MD
Last active July 5, 2024 03:47
Perforce for git users.

Understanding Perforce (as a git user).

Commands

Git Perforce Command Line P4V Notes
git pull p4 sync get latest revision
n/a p4 update ? Get latest revision without overwriting files that have been changed.
git checkout p4 edit checkout You plan to change a file from the version control system
git commit p4 submit submit
git push n/a n/a No perforce equivalent. There is no concept of a pure local submit in Perforce.