- xcode-select --install
- softwareupdate --all --install --force
- Brew
- brew install --cask discord
- brew install --cask signal
- brew install --cask iterm2
- brew install --cask warp
- brew install --cask dotnet-sdk
- brew install --cask microsoft-edge
- brew install --cask rider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable @typescript-eslint/no-empty-object-type */ | |
/** | |
* Expected any character, with `.` | |
*/ | |
export interface AnyExpectation { | |
readonly type: 'any'; | |
} | |
/** | |
* Expected a class, such as `[^acd-gz]i` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Fact] | |
public void TestLogLevel() | |
{ | |
Log.MinimumLevel = LogLevel.Information; | |
var logger = Log.CreateLogger("TestLogLevel"); | |
logger.LogTrace("({BadBracket}}", Boolean.TrueString); | |
} | |
System.FormatException | |
Input string was not in a correct format. Failure to parse near offset 10. Format item ends prematurely. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# hook identifies jira ids in branch names, adds on more goodies if we are a hotifx or release branch and attempts to prevent blank commit messages...although this needs a bit more work... | |
COMMIT_FILE=$1 | |
COMMIT_MSG=$(cat $1) | |
#First and foremost check whether the commit message is blank. if so then abort the commit. strip any spaces out too | |
#this one only works at present when someone tries to do git commit -m "" or git commit -m " " | |
#if anyone uses tools such as sourcetree, then these GUIs typically present a prompt...eg. "do you want to commit wihtout a message" and pass in optional attributes to git commit to allow this. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This function will prune an object to a certain depth and return a new object. | |
* The following rules will be applied: | |
* 1. If the value is null or undefined, it will be returned as is. | |
* 2. If the value is a function or unsupported type it will be return undefined. | |
* 3. If the value is an array, it will be pruned to the specified depth and truncated. | |
* 4. If the value is an object, it will be pruned to the specified depth and | |
* a. If the object is a Circular Reference it will return undefined. | |
* b. If the object is a Map, it will be converted to an object. | |
* c. If the object is a Set, it will be converted to an array. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if false | |
throw null; | |
#else | |
#endif | |
unsafe get @event(ref string @as, byte? @throw = sizeof(double)) | |
{ | |
lock(typeof(get)) {} | |
try |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias: Audio - Normalize levels to 10% at 9pm | |
trigger: | |
- platform: time | |
at: '21:00:00' | |
action: | |
- service: media_player.volume_set | |
data: | |
volume_level: 0.1 | |
entity_id: media_player.everywhere,media_player.kitchen | |
mode: single |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ClassAttributes, HTMLAttributes } from "react"; | |
jest.mock("@exceptionless/react", () => { | |
return { | |
__esModule: true, | |
Exceptionless: { | |
startup: jest.fn() | |
}, | |
ExceptionlessErrorBoundary: (props: JSX.IntrinsicAttributes & ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>) => { | |
return <div {...props} />; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Marlin 3D Printer Firmware | |
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] | |
* | |
* Based on Sprinter and grbl. | |
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Priority(100)] | |
public class Mark500ErrorsAsCritical : IEventPlugin { | |
public void Run(EventPluginContext ctx) { | |
if (!String.Equals(ctx.Event.Type, Event.KnownTypes.Error)) | |
return; | |
if (ctx.ContextData.IsUnhandledError) | |
ctx.Event.Tags.Add(Event.KnownTags.Critical); | |
} | |
} |
NewerOlder