View userscript.js
// ==UserScript== | |
// @name MSDN to Docs | |
// @namespace https://gist.github.com/SamuelEnglard/d9c1fde967236c1dba4a8de08e203288 | |
// @version 0.2 | |
// @description Redirect MDSN pages to Docs | |
// @author Shmuelie | |
// @match https://msdn.microsoft.com/* | |
// @grant none | |
// ==/UserScript== |
View PersonalDesktop.md
Cinebench: 2208
Type | Item |
---|---|
Base | HP Z420 Workstation |
Chipset | C602 |
View Program.cs
using System; | |
using System.IO; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using BenchmarkDotNet.Attributes; | |
namespace Bencharking | |
{ | |
class Program | |
{ |
View Get-OneDriveFolder.psm1
function Get-OneDriveFolder | |
{ | |
<# | |
.Synopsis | |
Gets the current user's OneDrive folder. | |
.Description | |
Gets the current user's OneDrive folder. | |
.Example |
View keybase.md
Keybase proof
I hereby claim:
- I am SamuelEnglard on github.
- I am shmuelie (https://keybase.io/shmuelie) on keybase.
- I have a public key whose fingerprint is 5E6F 469D 9CFA 4573 CDAB 7422 4805 122F E963 542E
To claim this, I am signing this object:
View idea.cs
public Task WriteAsync(Stream stream, byte[] data) | |
{ | |
Task t = stream.WriteAsync(data, 0, data.Length); | |
t.ConfigureAwait(false); | |
return t.ContinueWith((task, disposable) => ((IDisposable)disposable.Dispose(), stream); | |
} |
View SetupSystem.ps1
Set-ExecutionPolicy Bypass; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex | |
Install-PackageProvider -Name ChocolateyGet -Scope CurrentUser -Force | |
Import-PackageProvider ChocolateyGet | |
Install-Package git.portable -Force | |
Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" | |
Install-BinFile -Name git -Path (Join-Path -Path (Get-ToolsLocation) -ChildPath '\git\bin\git.exe') | |
PowerShellGet\Install-Module posh-git -Scope CurrentUser -Force | |
Install-Package sysinternals -Force | |
Install-Package elevate.native -Force | |
Install-Package obs-studio -Force |
View segoemdl22assests.xaml
<ResourceDictionary | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="using:GitApp"> | |
<x:String x:Key="CheckMarkLegacy"></x:String> | |
<x:String x:Key="CheckboxFillLegacy"></x:String> | |
<x:String x:Key="CheckboxLegacy"></x:String> | |
<x:String x:Key="CheckboxIndeterminateLegacy"></x:String> | |
<x:String x:Key="CheckboxCompositeReversedLegacy"></x:String> | |
<x:String x:Key="HeartLegacy"></x:String> |
View imageflow.cs
public enum IoMode { | |
/// None -> 0 | |
None = 0, | |
/// ReadSequential -> 1 | |
ReadSequential = 1, | |
/// WriteSequential -> 2 | |
WriteSequential = 2, |
NewerOlder