Skip to content

Instantly share code, notes, and snippets.

View BeErikk's full-sized avatar

Erik B BeErikk

  • Sweden
  • 23:20 (UTC +01:00)
View GitHub Profile
@BeErikk
BeErikk / profile.sh
Last active August 18, 2022 18:55
WSL user .profile file to enable the MS compiler in the WSL shell
# shellcheck shell=bash
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# this file is symlinked to /home/<user>/.profile
# Jerker Bäck 2017
@BeErikk
BeErikk / mscompiler.cmd
Last active August 4, 2023 14:25
Windows console script to enable the MS compiler with custom environment settings
@echo off
@title MS C++ compiler
:: Windows console script to enable the MS compiler with custom environment settings
:: Jerker Bäck 2017
:: delims:vv vvv vv v
:: line : PlatformIdentity = "UAP, Version=10.0.19041.0"
:: tokens: ^1 ^2 ^3 ^4
#!/bin/sh
# shellcheck shell=sh
# This code is free for any use by anyone under the terms of
# Creative Commons Attribution-NonCommercial 4.0 International Public License
# See the the file license.txt and https://creativecommons.org
# Jerker Bäck 2021, based on work by Jesse Cooke
# How to use:
# sudo ./update-alternatives-clang.sh 12 120
@BeErikk
BeErikk / VCProject.x64.9.0.config
Created November 25, 2021 11:40
Visual Studio 2008 modified paths
<?xml version="1.0" encoding="utf-8"?>
<VCPlatformConfigurationFile Version="8.00">
<Platform Name="VCProjectAMD64Platform.dll" Identifier="{656d8763-2429-11d7-8bf6-00b0d03daa06}">
<Directories
Include="$(CurrentVS)VC/Tools/MSVC/$(CurrentVCTools)/include;$(CurrentVS)VC/Tools/MSVC/$(CurrentVCTools)/atlmfc/include;$(CurrentVS)VC/Auxiliary/VS/include;$(CurrentVS)VC/Auxiliary/VS/UnitTest/include;$(CurrentKits)10/Include/$(CurrentUCRT)/ucrt;$(CurrentKits)10/Include/$(CurrentUCRT)/winrt;$(CurrentKits)10/Include/$(CurrentUCRT)/cppwinrt;$(CurrentKits)10/Include/$(CurrentUCRT)/um;$(CurrentKits)10/Include/$(CurrentUCRT)/shared;$(CurrentKits)10/Include/$(CurrentUCRT)/km;$(CodeLibraries)include;$(CodeLibraries)include/wtl;$(WindowsSource)include;"
Library="$(CurrentVS)VC/Tools/MSVC/$(CurrentVCTools)/lib/x64;$(CurrentVS)VC/Tools/MSVC/$(CurrentVCTools)/atlmfc/lib/x64;$(CurrentVS)VC/Auxiliary/VS/UnitTest/lib;$(CurrentKits)10/Lib/$(CurrentUCRT)/ucrt/x64;$(CurrentKits)10/Lib/$(CurrentUCRT)/um/x64;$(CurrentKits)10/Lib/
@BeErikk
BeErikk / VCProject.x64.9.0.config
Created November 25, 2021 13:36
Visual Studio 2008 modified config file
<?xml version="1.0" encoding="utf-8"?>
<VCPlatformConfigurationFile Version="8.00">
<Platform Name="VCProjectAMD64Platform.dll" Identifier="{656d8763-2429-11d7-8bf6-00b0d03daa06}">
<Directories
Include="$(CurrentVS)VC/Tools/MSVC/$(CurrentVCTools)/include;$(CurrentVS)VC/Tools/MSVC/$(CurrentVCTools)/atlmfc/include;$(CurrentVS)VC/Auxiliary/VS/include;$(CurrentVS)VC/Auxiliary/VS/UnitTest/include;$(CurrentKits)10/Include/$(CurrentUCRT)/ucrt;$(CurrentKits)10/Include/$(CurrentUCRT)/winrt;$(CurrentKits)10/Include/$(CurrentUCRT)/cppwinrt;$(CurrentKits)10/Include/$(CurrentUCRT)/um;$(CurrentKits)10/Include/$(CurrentUCRT)/shared;$(CurrentKits)10/Include/$(CurrentUCRT)/km;$(CodeLibraries)include;$(CodeLibraries)include/wtl;$(WindowsSource)include;"
Library="$(CurrentVS)VC/Tools/MSVC/$(CurrentVCTools)/lib/x64;$(CurrentVS)VC/Tools/MSVC/$(CurrentVCTools)/atlmfc/lib/x64;$(CurrentVS)VC/Auxiliary/VS/UnitTest/lib;$(CurrentKits)10/Lib/$(CurrentUCRT)/ucrt/x64;$(CurrentKits)10/Lib/$(CurrentUCRT)/um/x64;$(CurrentKits)10/Lib/