Skip to content

Instantly share code, notes, and snippets.

@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/
@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

If .DS_Store was never added to your git repository, simply add it to your .gitignore file.

If you don't have one, create a file called

.gitignore

In your the root directory of your app and simply write

@crittermike
crittermike / wget.sh
Last active October 30, 2024 20:38
Download an entire website with wget, along with assets.
# One liner
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com
# Explained
wget \
--recursive \ # Download the whole site.
--page-requisites \ # Get all assets/elements (CSS/JS/images).
--adjust-extension \ # Save files with .html on the end.
--span-hosts \ # Include necessary assets from offsite as well.
--convert-links \ # Update links to still work in the static version.