Keybase proof
I hereby claim:
- I am alfredmyers on github.
- I am alfredmyers (https://keybase.io/alfredmyers) on keybase.
- I have a public key ASDzKvslj1xb9F9O7uIdSU1LCDLJOa62pYawLQ1m85gFwQo
To claim this, I am signing this object:
using System; | |
namespace ConsoleApp2 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var valueType = new ValueType(1); | |
Console.WriteLine(valueType.ReadOnlyField); |
#!/bin/bash | |
wget https://docs.microsoft.com/en-us/archive/msdn-magazine/msdn-magazine-issues -qO - | grep -o -P 'http://.*(pdf|chm)' | wget -i - | |
function Get-OrphanedVHDs { | |
$rootedVHDs = (Get-VM).HardDrives.Path + (Get-VM | Get-VMSnapshot).HardDrives.Path | |
Return Get-ChildItem (Get-VMHost).VirtualHardDiskPath | Where-Object { $_.FullName -notin $rootedVHDs } | |
} | |
function New-VirtualMachine { | |
Param( | |
$Name, | |
$MemoryBytes, | |
$VHDSizeBytes, |
When installing RHEL 8.0 on Hyper-V in Windows 10, | |
if you choose the option "Server with GUI" and proceed installing the OS | |
the VM will eventually boot into a blank screen as described at | |
https://access.redhat.com/solutions/4206491 | |
The acompaining script installs the missing package. |
#!/bin/bash | |
curl https://alfredmyers.github.io/codex/all.txt | xargs -L 1 code --install-extension |
code --list-extensions > vscode-extensions.txt |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Launch Program", | |
"program": "${workspaceFolder}\\entry-point.js", | |
"useWSL": true | |
} |
I hereby claim:
To claim this, I am signing this object:
$fork = "C:\Users\Alfred\Desktop\MyBooks" # Directory possibly containing duplicate files | |
$repo = "C:\Books" # Directory containing master files | |
$repoHashes = (Get-ChildItem $repo -Recurse -File | Get-FileHash).Hash | |
Get-ChildItem $fork -Recurse -File | | |
Where-Object { $repoHashes.Contains(($_ | Get-FileHash).Hash) } | | |
Remove-Item |
using System; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
foreach (var arg in args) | |
{ | |
Console.WriteLine(arg); | |
} |