Skip to content

Instantly share code, notes, and snippets.

View ArtisanByteCrafter's full-sized avatar

Nathaniel Webb ArtisanByteCrafter

View GitHub Profile
@brettmillerb
brettmillerb / setup.sh
Last active April 9, 2021 19:55
New Mac Setup
# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update homebrew recipes
echo "Updating homebrew..."
brew update
@JustinGrote
JustinGrote / Write-ANSIHyperlink.ps1
Last active May 2, 2024 22:07
Powershell Function to create ANSI HyperLinks (Usable in Windows Terminal Preview)
@JustinGrote
JustinGrote / BootstrapPowershellUniversal.ps1
Last active September 7, 2023 10:48
Powershell Universal BootStrap
<#
.SYNOPSIS
Bootstraps the Powershell Universal Dashboard with per-folder configurations on a random port
.DESCRIPTION
Saves a copy of Universal Dashboard to the LocalAppData/UniversalDashboard folder and starts it for the current folder.
This is useful for rapid testing, or integrating into scripts for easy deployment
.EXAMPLE
Start-UD -DashboardVersion 1.2.9
Bootstraps version 1.2.9 of the dashboard specifically
.EXAMPLE
function prompt {
$Success = $?
$ConsoleWidth = ($host.UI.RawUI.WindowSize.Width, $Host.UI.RawUI.BufferSize.Width -gt 0)[0]
$Escape = "`e["
$EndEscape = "m"
$Slash = [IO.Path]::DirectorySeparatorChar
$Path = $ExecutionContext.SessionState.Path.CurrentLocation
$CurrentFolder = Split-Path -Path $Path -Leaf
$Host.UI.RawUI.WindowTitle = "PS $Path"
@potatoqualitee
potatoqualitee / mentalhealth.txt
Last active July 8, 2021 13:07
⛔ Twitter mental health mute list
# mute here: https://twitter.com/settings/muted_keywords
republicans
democrats
sanders
manafort
comey
koch
kkk
ku klux klan
TERF
@tavinus
tavinus / rem_proxmox_popup.sh
Last active February 27, 2024 22:47
Remove PROXMOX 5.x / 6.x / 7.3-4 subscription message popup
#!/bin/sh
#######################################################
#
# Edits the proxmox Subscription file to make it
# think that it has a Subscription.
#
# Will disable the annoying login message about
# missing subscription.
#
@paulirwin
paulirwin / JaroWinklerStringSimilarity.sql
Last active April 29, 2024 17:52
Jaro-Winkler String Similarity in T-SQL
-- Based on code here: http://www.sqlservercentral.com/articles/Fuzzy+Match/65702/
-- Modified to be used in SQL Server Database Projects or run on its own, and fixed similarity vs distance confusion
CREATE FUNCTION [dbo].JaroWinklerGetCommonCharacters(@firstWord VARCHAR(MAX), @secondWord VARCHAR(MAX), @matchWindow INT)
RETURNS VARCHAR(MAX) AS
BEGIN
DECLARE @CommonChars VARCHAR(MAX)
DECLARE @copy VARCHAR(MAX)
DECLARE @char CHAR(1)
DECLARE @foundIT BIT
@willurd
willurd / web-servers.md
Last active July 8, 2024 16:16
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000