Skip to content

Instantly share code, notes, and snippets.

View jamiemcconnell's full-sized avatar

Jamie McConnell jamiemcconnell

  • Cotswolds, United Kingdom
  • 14:37 (UTC)
View GitHub Profile
@faustinoaq
faustinoaq / myAngular.html
Last active October 21, 2025 00:43
Front-end libraries (React, Vue, Angular) and the basic principles of how they work, all in a single file using pure JavaScript (VanillaJS).
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Angular from Scratch</title>
<style>
.my-component {
font-family: Arial, sans-serif;
@NateMeyer
NateMeyer / frigate-v0.13-maxwell-workaround.md
Created March 3, 2024 19:35
Frigate v0.13 TensorRT Maxwell-GPU Workaround

Using NVidia Maxwell GPUs w/ Frigate v0.13

There was a problem discovered wit hthe library shipped with v0.13 of Frigate that didn't include the correct instructions for Maxwell GPUs with CUDA Compute-level 5.0. This document describes how to rebuild this library and map it into Frigate v0.13.

Rebuild libyolo_layer.so

The library needs to be rebuilt with the correct compute-level

@enihsyou
enihsyou / README.md
Created May 3, 2022 07:53
my kitty symbol_map section for Nerd Font patch and CJK characters.

What's this

symbol_map section from my kitty.conf dotfile, it follows Kitty best practice to NOT use patched font in favor of multiple symbol_map directives.

I use [Sarasa Mono][sarasa_mono] for CJK unicode ranges and [Menlo] for misc codepoints which Nerd Font doesn't cover.

Copy and paste (maybe follow by some modifacations) into your kitty.conf, and your terminal will be beautiful.

# I was running spectaql to generate documentation for my GraphQL API and it complained about
# directives that I had in my schema file. I threw errors including
# - Unknown directive "@model".
# - Unknown directive "@auth".
# - Unknown directive "@index".
# - Unknown directive "@hasOne".
# These are all directives you would use when developing an Amplify app.
#
# Created this file to include as the first schemaFile in specaql.yml so that the graphql
# parser is aware of the directives and can simply ignore them.
@MrChocolatine
MrChocolatine / TS - More precise return type method Date#toISOString.d.ts
Last active August 29, 2025 17:12
TypeScript – How to accurately type dates in ISO 8601 format
// In TS, interfaces are "open" and can be extended
interface Date {
/**
* Give a more precise return type to the method `toISOString()`:
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString
*/
toISOString(): TDateISO;
}
type TYear = `${number}${number}${number}${number}`;
@jamiemcconnell
jamiemcconnell / CmderZSH.md
Created September 7, 2021 09:26 — forked from dfontana/CmderZSH.md
My setup guide for installing Cgywin, Mintty, Cmder, and ZSH.

What's this?

Instructions to obtain ZSH on a windows environment, without the input funny business presented by some other attempted solutions.

The final result is ZSH running on a mintty terminal, emulated by cygwin, and being handled by the popular cmder.

Why is this here?

For the benefit of myself and others. I've already followed these instructions twice. It took me hours to figure all this out, maybe someone else can save a few.

What exactly is covered?

  • Installing and setting up cmder
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active November 3, 2025 12:51
Conventional Commits Cheatsheet
@nickcernis
nickcernis / readme.md
Last active June 22, 2025 05:42
Exclude node_modules and .git from Backblaze backups on Mac

Exclude node_modules and .git from Backblaze backups on Mac

  1. Edit the file at /Library/Backblaze.bzpkg/bzdata/bzexcluderules_editable.xml.
  2. Add these rules inside the bzexclusions tag:
<!-- Exclude node_modules. -->
<excludefname_rule plat="mac" osVers="*"  ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
<excludefname_rule plat="mac" osVers="*"  ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/.git/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
@fokusferit
fokusferit / enzyme_render_diffs.md
Last active September 19, 2025 19:40
Difference between Shallow, Mount and render of Enzyme

Shallow

Real unit test (isolation, no children render)

Simple shallow

Calls:

  • constructor
  • render
@jgamblin
jgamblin / slackspotify.sh
Created April 19, 2017 01:10
A Script To Set Current Spotify Song As Slack Status
#!/bin/bash
APIKEY="From Here https://api.slack.com/custom-integrations/legacy-tokens"
SONG=$(osascript -e 'tell application "Spotify" to name of current track as string')
URLSONG=$(echo "$SONG" | perl -MURI::Escape -ne 'chomp;print uri_escape($_),"\n"')
while true
do
curl -s -d "payload=$json" "https://slack.com/api/users.profile.set?token="$APIKEY"&profile=%7B%22status_text%22%3A%22"$URLSONG"%22%2C%22status_emoji%22%3A%22%3Amusical_note%3A%22%7D" > /dev/null
sleep 60
done