Skip to content

Instantly share code, notes, and snippets.

@Integralist
Integralist / rules for good testing.md
Last active May 13, 2024 18:25
Sandi Metz advice for writing tests

Rules for good testing

Look at the following image...

...it shows an object being tested.

You can't see inside the object. All you can do is send it messages. This is an important point to make because we should be "testing the interface, and NOT the implementation" - doing so will allow us to change the implementation without causing our tests to break.

@slimbuck
slimbuck / webgpu_metal_capture.txt
Created May 13, 2024 08:47
Capturing WebGPU metal trace on MacOS
1) Clone and build WebKit
git clone https://github.com/WebKit/WebKit.git WebKit
cd WebKit
Tools/Scripts/build-webkit -cmakeargs="-DENABLE_WEBGPU_BY_DEFAULT=1" --debug
2) Run your app
__XPC_METAL_CAPTURE_ENABLED=1 Tools/Scripts/run-minibrowser --debug --url http://localhost:5000/index.html#/loaders/gsplat
@mndambuki
mndambuki / officeActivator.bat
Created June 7, 2020 03:41
Activate Microsoft Office 2019
@echo off
title Activate Microsoft Office 2019 !
cls
echo ============================================================================
echo #Project: Activating Microsoft software products
echo ============================================================================
echo.
echo #Supported products:
echo - Microsoft Office Standard 2019
echo - Microsoft Office Professional Plus 2019
@AndnixSH
AndnixSH / windows-keys.md
Created December 5, 2023 18:04
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

@Minionguyjpro
Minionguyjpro / Activate_Windows_8_8.1_10_and_11_Pro_for_Free.md
Last active May 13, 2024 18:22
Activate Windows 8, 8.1, 10 and 11 Pro for Free

Activate Windows 8, 8.1, 10 and 11 Pro for Free

A guide how to get and activate Windows 8, 8.1, 10 and 11 Pro for free!

NOTE

If you see the Windows keyboard button in this guide; and you can't find it on your keyboard, you likely have/had Windows 10 which has the button . If you can't find that one, you likely have a PC that has been upgraded to Windows 8/8.1/10/11 from Windows 8.1/8/7/Vista/XP and other ones. If you have one of those, refer the Windows key button to as yours. A list of them is below:

Windows key buttons

- Windows 11

- Windows 10

@0xOsprey
0xOsprey / Prompt.txt
Created May 12, 2024 23:32
Raycast Executive Summary Prompt
Given the following text:
{browser-tab}
Please provide a summary of the writing post [title/link] in approximately 300-500 words.
The summary should cover the following:
1. Main topic/subject of the blog post.
2. Key points and important context discussed in the post.
3. Significant takeaways, insights, or conclusions drawn by the author.
4. Any relevant data, statistics, or examples cited to support the main arguments.
5. The conclusion, nuance or importance of newly introduced concepts or conclusions arrived upon by the author. The summary should be well-structured, concise, and written in a clear and objective style. Please avoid verbatim quotes from the original text unless they are particularly impactful or necessary for context. The goal is to capture the essence of the blog post in a way that someone who hasn't read it can quickly understand the key ideas and arguments presented.
@ChristopherA
ChristopherA / macOS-Preferences-Defaults.sh
Last active May 13, 2024 18:21
macOS Preferences Defaults
#!/usr/bin/env zsh
#===========================================================================
# * INFO
#
# macOS Preferences Defaults
# By Christopher Allen @ChristopherA https://github.com/christophera/
# My most basic macOS preferences, in this gist to make it easy to load on
# multiple machines and VMs. Ideally runs on all macOS versions since Yosemite,
@vraravam
vraravam / osx-defaults.sh
Last active May 13, 2024 18:19
OSX Defaults to setup a brand new machine
#!/usr/bin/env bash
# TODO: Need to figure out the settings for the following:
# 1) Dock: Items with order (not capturing binary data - since that is dependent on installed apps)
# 2) Security & Privacy Preferences: Full Disk Access, Camera, Microphone
# 3) Login items for my user (i.e. apps started when I login)
# 4) Retina displays scaling
# 5) Finder sidebar with order
##
@ruvnet
ruvnet / ruv-final.ipynb
Last active May 13, 2024 18:19
ruv-final.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willhackett
willhackett / op-remove-duplicates.js
Last active May 13, 2024 18:17
1Password Duplicate Remover
/**
* 1Password Duplicate Remover
*
* Usage: node 1password-duplicate.js
*
* Author: Will Hackett
*
* License: MIT
*
* Requirements: