Skip to content

Instantly share code, notes, and snippets.

@jazzychad
jazzychad / 000_metadata.json
Created August 23, 2024 15:20
Wireguard logs
{
"title": "Wireguard logs",
"timestamp": "2024-08-23T15:20:10.645Z",
"visibility": "public",
"parts": [
{
"id": "nYqmZqxMaxxpbPJasQMb0.md",
"timestamp": "2024-08-23T15:20:10.645Z",
"type": "post",
"subtype": "markdown"
@jazzychad
jazzychad / 000_metadata.json
Created December 14, 2023 09:12
Caddy logs
{
"title": "Caddy logs",
"timestamp": "2023-12-14T09:12:55.117Z",
"visibility": "public",
"parts": [
{
"id": "KJFy50_50p-zTAr7DOGUQ.md",
"timestamp": "2023-12-14T09:12:55.117Z",
"type": "post",
"subtype": "markdown"
{
"title": "First Note!",
"timestamp": "2023-08-29T23:16:15.790Z",
"visibility": "public",
"parts": [
{
"id": "VUTBxiybsA9BFVolSXqPB.md",
"timestamp": "2023-08-29T23:16:15.790Z",
"type": "post",
"subtype": "markdown"
@jazzychad
jazzychad / 000_index.json
Last active August 23, 2024 15:20
Notes gistblog index
{
"title": "JazzyChad's Notes",
"posts": [
{
"id": "789be33cedf95511c19a0390e7054d53",
"title": "Wireguard logs",
"timestamp": "2024-08-23T15:20:10.645Z",
"visibility": "public"
},
{
@jazzychad
jazzychad / git-completion.zsh
Created March 24, 2022 21:59
git completion for zsh
#compdef git gitk
# zsh completion wrapper for git
#
# Copyright (c) 2012-2013 Felipe Contreras <[email protected]>
#
# You need git's bash completion script installed somewhere, by default it
# would be the location bash-completion uses.
#
# If your script is somewhere else, you can configure it on your ~/.zshrc:
@jazzychad
jazzychad / git-prompt.sh
Created March 24, 2022 21:58
git prompt shell script
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
@jazzychad
jazzychad / CKErrorFriendlyStrings.swift
Created January 26, 2022 00:47
Friendly strings for CKError.Code values
import CloudKit
extension CKError {
func stringForErrorCode() -> String {
let code = self.code
switch code {
case .internalError:
return "Internal error"
case .partialFailure:
@jazzychad
jazzychad / 000_metadata.json
Last active October 20, 2021 20:29
Papercraft Cube Pumpkin Jack-o-Lantern
{
"title": "Papercraft Cube Pumpkin Jack-o-Lantern",
"timestamp": "2021-10-20T20:28:06.006Z",
"visibility": "public",
"parts": [
{
"id": "GC5_dW5UOqVmB8jsJ5O2b.md",
"timestamp": "2021-10-20T20:28:06.006Z",
"type": "post",
"subtype": "markdown"
@jazzychad
jazzychad / 000_metadata.json
Created October 19, 2021 22:56
Papercraft Cube Pumpkin Jack-o-Lantern
{
"title": "Papercraft Cube Pumpkin Jack-o-Lantern",
"timestamp": "2021-10-19T22:56:49.215Z",
"visibility": "public",
"parts": [
{
"id": "htQeIBJL802cPiId-y-1m.md",
"timestamp": "2021-10-19T22:56:49.215Z",
"type": "post",
"subtype": "markdown"
@jazzychad
jazzychad / UIDebouncedColorWell.swift
Created September 11, 2021 00:23
A better way to get color values from UIColorWells
//
// UIDebouncedColorWell.swift
//
import UIKit
import Combine
private class PublishingColor {
@Published var color: UIColor? = nil
}