Skip to content

Instantly share code, notes, and snippets.

View msuzoagu's full-sized avatar

MUA msuzoagu

  • Space
View GitHub Profile
See:
The CloudKitNote Class
For starters, a few custom errors can be defined to shield the client from the internals of CloudKit, and a simple delegate protocol can inform the client of remote updates to the underlying Note data.
import CloudKit
enum CloudKitNoteError : Error {
case noteNotFound
@msuzoagu
msuzoagu / RELEASE-NOTES.md
Created September 15, 2024 22:10 — forked from andreasonny83/RELEASE-NOTES.md
Release Notes Template

Release Notes Template

Based off https://palantir.quip.com/pzRwAVr1bpzf

Pro-tip: look through the github diff between the previous release to see what's changed. The commit titles should give an outline of what's happened.

Upgrade Steps

  • List out, as concretely as possible, any steps users have to take when they upgrade beyond just dumping the dependency.
  • Write pseudocode that highlights what code should change and how.
@msuzoagu
msuzoagu / semantic-commit-messages.md
Created September 12, 2024 00:06 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@msuzoagu
msuzoagu / MVP.md
Created August 8, 2024 03:27 — forked from vtsoup/MVP.md
MVP

AppDelegate -> Router -> MVP/C

graph TD
D[Deep link]-->R
A[App Delegate]-->R
R{Router} -->V(View)
P(Presenter) -- View Model --> V(View)
V -- Event Delegate --> P
P --> U1((Use Case))
U1-.-&gt;P
@msuzoagu
msuzoagu / GNU-Make.md
Created August 7, 2023 16:57 — forked from rueycheng/GNU-Make.md
GNU Make cheatsheet

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]}
@msuzoagu
msuzoagu / ruby-versions-chruby.md
Created July 14, 2023 18:44 — forked from ritaly/ruby-versions-chruby.md
Dealing with Ruby versions - chruby

Dealing with Ruby versions - chruby

Every time I sit down to code, it seems like a new Ruby version is available.

When I first learned ruby I used rvm on my Mac. In production on linux, I use rbenv, likely due to its Capistrano integration.

When I set up my current machine, I found rvm had fallen out of fashion in favour of something called chruby.

Install new ruby

@msuzoagu
msuzoagu / timestamp.sh
Created July 10, 2023 01:49 — forked from johnmurch/timestamp.sh
Timestamp output options
#! /bin/bash
# An overly obvious reference for most commonly requested bash timestamps
# Now all you Mac fags can stop pestering me.
cat << EOD
Format/result | Command | Output
------------------------------+----------------------------+------------------------------
YY-MM-DD_hh:mm:ss | date +%F_%T | $(date +%F_%T)
YYMMDD_hhmmss | date +%Y%m%d_%H%M%S | $(date +%Y%m%d_%H%M%S)
@msuzoagu
msuzoagu / README.md
Created July 9, 2023 21:40 — forked from reegnz/README.md
The Terraform group_by you've been missing

The Terraform group_by you've been missing

I'm playing around a lot nowadays with Terraform 0.13 and I found a really interesting feature and that's the ... symbol (also called an ellipsis) to be used with for expressions.

The operator can be used for group_by operations.

Example

We have a list of entries. The list contains employee/manager/project triplets.

@msuzoagu
msuzoagu / IAM Permissions List.md
Created July 4, 2023 19:40 — forked from mechcozmo/IAM Permissions List.md
A list of IAM permissions you can use in policy documents. Collected from the myriad of places Amazon hides them. (incomplete)