Skip to content

Instantly share code, notes, and snippets.

View veleek's full-sized avatar

Ben Randall veleek

View GitHub Profile
@veleek
veleek / benran-boxstarter.ps1
Last active July 21, 2020 17:56
BoxStarter script for setting up my laptop
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableExpandToOpenFolder
Enable-RemoteDesktop
Disable-GameBarTips
Disable-UAC
Set-TaskbarOptions -Combine Full
# Utilities
cinst microsoft-windows-terminal
cinst 7zip.install
cinst notepadplusplus.install
@veleek
veleek / LevelDatParser.cs
Created October 3, 2017 19:15
LinqPad script to load a Level.dat file from Minecraft Better Together
void Main()
{
string path = @"Path to your Level.dat";
Level l = new Level();
try
{
l.ReadFrom(File.OpenRead(path));
}
catch (Exception e)
{
@veleek
veleek / npm-debug.log
Created November 15, 2016 01:23
electron-quick-start install failure
4002 silly mapToRegistry using default registry
4003 silly mapToRegistry registry https://registry.npmjs.org/
4004 silly mapToRegistry data Result {
4004 silly mapToRegistry raw: 'delayed-stream',
4004 silly mapToRegistry scope: null,
4004 silly mapToRegistry escapedName: 'delayed-stream',
4004 silly mapToRegistry name: 'delayed-stream',
4004 silly mapToRegistry rawSpec: '',
4004 silly mapToRegistry spec: 'latest',
4004 silly mapToRegistry type: 'tag' }
@veleek
veleek / gist:fbb7288f6daa258b3df4dfe6961f7a97
Created November 15, 2016 00:42
OneGet Installation of chocolatey installs to wierd path
PS C:\src\xbox> install-package chocolatey -verbose -ProviderName Chocolatey
DEBUG: 00:00:00.0000002 Calling 'Chocolatey::GetDynamicOptions' 'Provider'
DEBUG: 00:00:00.0056436 Calling 'Chocolatey::GetDynamicOptions' 'Source'
DEBUG: 00:00:00.0164123 Calling 'Chocolatey::GetDynamicOptions' 'Package'
DEBUG: 00:00:00.0220975 Calling 'Chocolatey::GetDynamicOptions' 'Install'
DEBUG: 00:00:00.0269860 Calling SearchForPackages. Name='chocolatey'
VERBOSE: Using the provider 'Chocolatey' for searching packages.
DEBUG: 00:00:00.0287840 PackageProvider::FindPackage with name chocolatey
DEBUG: 00:00:00.0293678 Calling SearchForPackages After Select 1
DEBUG: 00:00:00.0331302 Calling 'Chocolatey::FindPackage' 'chocolatey','','','','0'