Skip to content

Instantly share code, notes, and snippets.

View kieronlanning's full-sized avatar
🤘

Kieron Lanning kieronlanning

🤘
View GitHub Profile
@kieronlanning
kieronlanning / open-bing-results-in-new-tab.js
Created January 14, 2025 23:39
TamperMonkey script for opening Bing search results in a new tab
// ==UserScript==
// @name Bing Links Open in New Tab
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Makes Bing search results open in a new tab. Why? See here: https://www.reddit.com/r/edge/comments/113gvpf/bing_results_in_edge_browser_redirect_to_bingcom/
// @author Kieron Lanning
// @match https://www.bing.com/*
// @grant none
// ==/UserScript==
@kieronlanning
kieronlanning / Register-MakeCompleter.ps1
Created December 26, 2024 17:32
Makefile auto-completer for PowerShell
function Register-MakeCompleter {
# This scriptblock is called each time tab-completion occurs for `make` or `m`
$ScriptBlock = {
param(
$wordToComplete
)
# If no Makefile exists in the current directory, return no completions
if (-not (Test-Path "./Makefile")) {
return
@kieronlanning
kieronlanning / Makefile
Last active March 22, 2025 13:36
Makefile _include_ that auto populates `.PHONY` and generates help information based on targets. Include in your Makefile with: `include common.mk`
include .\common.mk
hello: ## Displays 'Hello, World!'
@echo "Hello, World!"
# Run make, and the 'help' target displays information about commented (## help text) targets.