Skip to content

Instantly share code, notes, and snippets.

View gowon's full-sized avatar

Gowon Patterson gowon

View GitHub Profile
@gowon
gowon / vs2022extensions.vsconfig
Last active April 19, 2024 19:02
.vsconfig to installed preferred VS 2022 extensions
{
"version": "1.0",
"components": [],
"extensions": [
"https://marketplace.visualstudio.com/items?itemName=ErikEJ.EFCorePowerTools",
"https://marketplace.visualstudio.com/items?itemName=FireGiant.FireGiantHeatWaveDev17",
"https://marketplace.visualstudio.com/items?itemName=FortuneNgwenya.FineCodeCoverage2022",
"https://marketplace.visualstudio.com/items?itemName=MadsKristensen.AddNewFile64",
"https://marketplace.visualstudio.com/items?itemName=MadsKristensen.CommandTaskRunner64",
"https://marketplace.visualstudio.com/items?itemName=MadsKristensen.FileIcons",
@gowon
gowon / index.html
Created November 5, 2021 04:47
SVG Scalable Text - IE
<link href='https://fonts.googleapis.com/css?family=Quicksand:300,400,700|Raleway:400,100,200,300,500,600,700,800,900|Playfair+Display+SC:400italic,700italic,400,700,900' rel='stylesheet' type='text/css'>
<div class="wrapper">
<div class="svg-wrapper"><svg><text class="upper sans">You have to</text></svg></div>
<div class="svg-wrapper"><svg><text class="upper sans bold">say no</text></svg></div>
<div class="svg-wrapper"><svg><text class="upper sans">to a lot of</text></svg></div>
<div class="svg-wrapper"><svg><text class="upper serif">good things</text></svg></div>
<div class="svg-wrapper"><svg><text class="upper sans">in order to be able to</text></svg></div>
<div class="svg-wrapper"><svg><text class="upper sans bold">say yes</text></svg></div>
<div class="svg-wrapper"><svg><text class="upper sans">to a lot of</text></svg></div>
@gowon
gowon / prepare-commit-msg
Last active March 26, 2024 13:15
Prepend git commit message with issue ticket number(s), derived from branch name, using Powershell
#!/bin/sh
echo
exec pwsh -NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command ".\.git\hooks\prepare-commit-msg.ps1 '$1'"
exit
@gowon
gowon / convert-audio.ps1
Last active June 28, 2020 19:32
Bulk Audio Conversion using ffmpeg
Get-ChildItem *.flac | ForEach-Object { Invoke-Expression -Command "ffmpeg -i `"$($_.FullName)`" -codec:a libmp3lame -qscale:a 0 `"$($_.Name.Substring(0,$_.Name.Length - $_.Extension.Length)).mp3`"" }
@gowon
gowon / readme.md
Last active January 9, 2019 16:59
US Zip Code Regex Validation

Strict

^(\d{5})(?:\-?(\d{4}))?$

StrictFive

^(\d{5})(?:\-\d{0,3}|\-?(\d{4}))?$
@gowon
gowon / get-wifi-password.ps1
Last active May 18, 2019 05:15
Windows 10 get network password
(netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key Content\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ SSID=$name;SECURITY_KEY=$pass }} | Format-Table -AutoSize
@gowon
gowon / getBlockLists.sh
Created August 12, 2018 15:42 — forked from johntyree/getBlockLists.sh
Make one large blocklist from the bluetack lists on iblocklist.com
#!/usr/bin/env sh
# Download lists, unpack and filter, write to stdout
curl -s https://www.iblocklist.com/lists.php \
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#'
@gowon
gowon / documentation.xsl
Last active November 3, 2017 17:37
Visual Studio XML Documentation to basic HTML transformation stylesheet
<?xml version="1.0" encoding="utf-8" ?>
<!-- On Local Rendering: https://stackoverflow.com/a/6251757 -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- https://stackoverflow.com/a/3404922 -->
<xsl:output method="html" doctype-system="about:legacy-compact" />
<!-- DOCUMENT TEMPLATE -->
<!-- Format the whole document as a valid HTML document -->
<xsl:template match="/">
@gowon
gowon / amazon-affiliate-bookmarklet.js
Last active March 14, 2017 01:56
Amazon Affiliate Bookmarklet
javascript: (function(affiliateId) {
var match = document.location.href.match("/([a-zA-Z0-9]{10})(?:[/?]|$)");
if (!match) {
alert("Can't find the product ID.");
return;
}
prompt("Affiliate Link:", "http://amzn.com/" + match[1]+ "?tag=" + affiliateId);
})("goodornah-20")
@gowon
gowon / excel-is08601.md
Created November 4, 2016 20:26
Parse ISO 8601 format date in excel with formula