This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @id microsoft-docs-force-english@poke | |
// @name Microsoft Docs: Force English | |
// @description Force Microsoft Docs and MDN to be displayed in English, regardless of the browser’s locale settings. | |
// @namespace poke | |
// @version 3.0.0 | |
// @author Patrick Westerhoff | |
// @grant none | |
// @include https://docs.microsoft.com/* | |
// @include https://learn.microsoft.com/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Hosting.Internal; | |
using Microsoft.AspNetCore.Hosting.Server; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.AspNetCore.Http.Features; | |
using Microsoft.AspNetCore.Server.Kestrel.Core; | |
using Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Mvc.Razor; | |
namespace AspNetCoreUtilities | |
{ | |
public static class ForwardSectionRazorPageExtensions | |
{ | |
/// <summary> | |
/// Forward a section to the parent layout. This allows views to define | |
/// sections that are rendered in a parent layout without intermediate | |
/// layouts having to render and re-define the sections themselves. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @id stackexchange-responsive-post-width@poke | |
// @name StackExchange: Responsive post width | |
// @description Make the post width responsive | |
// @namespace poke | |
// @version 1.0.1 | |
// @author Patrick Westerhoff | |
// @include *://*.stackexchange.com/questions/* | |
// @include *://meta.serverfault.com/questions/* | |
// @include *://meta.stackoverflow.com/questions/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Hosting.Server.Features; | |
using Microsoft.AspNetCore.Server.Kestrel; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.DependencyInjection; | |
using System; | |
using System.IO; | |
namespace ExampleApp | |
{ |

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @id stackexchange-diff-color-toggle@poke | |
// @name StackExchange: Show revision diff color toggle | |
// @namespace poke | |
// @version 1.2.0 | |
// @author Patrick Westerhoff | |
// @include *://*.stackexchange.com/*/revisions* | |
// @include *://*.stackexchange.com/review/suggested-edits/* | |
// @include *://meta.serverfault.com/*/revisions* | |
// @include *://meta.serverfault.com/review/suggested-edits/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Guild Wars 2: Item search</title> | |
</head> | |
<body> | |
<div id="loader">Loading…</div> | |
<div id="app" style="display: none;"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param([string] $Folder) | |
Write-Host 'Backdating files in folder' $Folder -ForegroundColor Green | |
Push-Location $Folder | |
git init | |
git commit --allow-empty -m 'Initialize repository' | |
Write-Host 'Looking for files: ' -NoNewLine -ForegroundColor Blue | |
$files = Get-ChildItem * -Recurse | ? { !$_.PSIsContainer } | sort LastWriteTime | |
Write-Host $files.Length -NoNewLine -ForegroundColor Yellow |
NewerOlder