^(\d{5})(?:\-?(\d{4}))?$
^(\d{5})(?:\-\d{0,3}|\-?(\d{4}))?$
{ | |
"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", |
<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> |
#!/bin/sh | |
echo | |
exec pwsh -NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command ".\.git\hooks\prepare-commit-msg.ps1 '$1'" | |
exit |
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`"" } |
# ref: https://github.com/PowerShell/PSReadLine | |
# ref: https://github.com/devblackops/Terminal-Icons | |
Import-Module -Name PSReadLine,Terminal-Icons | |
# Add Predictive IntelliSense using prompt history in a list view | |
# ref: https://www.hanselman.com/blog/adding-predictive-intellisense-to-my-windows-terminal-powershell-prompt-with-psreadline | |
# ref: https://devblogs.microsoft.com/powershell/announcing-psreadline-2-1-with-predictive-intellisense/ | |
Set-PSReadLineOption -PredictionSource History | |
Set-PSReadLineOption -PredictionViewStyle ListView | |
Set-PSReadLineOption -EditMode Windows |
(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 |
#!/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 '^#' |
<?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="/"> |
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") |