Skip to content

Instantly share code, notes, and snippets.

@mmozeiko
mmozeiko / !README.md
Last active December 6, 2025 21:26
Download MSVC compiler/linker & Windows SDK without installing full Visual Studio

This downloads standalone MSVC compiler, linker & other tools, also headers/libraries from Windows SDK into portable folder, without installing Visual Studio. Has bare minimum components - no UWP/Store/WindowsRT stuff, just files & tools for native desktop app development.

Run py.exe portable-msvc.py and it will download output into msvc folder. By default it will download latest available MSVC & Windows SDK from newest Visual Studio.

You can list available versions with py.exe portable-msvc.py --show-versions and then pass versions you want with --msvc-version and --sdk-version arguments.

To use cl.exe/link.exe first run setup_TARGET.bat - after that PATH/INCLUDE/LIB env variables will be updated to use all the tools as usual. You can also use clang-cl.exe with these includes & libraries.

To use clang-cl.exe without running setup.bat, pass extra /winsysroot msvc argument (msvc is folder name where output is stored).

{"controls":{"jumpKey":32,"crouchKey":16,"meleeKey":81,"swapKey":69,"primKey":20000,"reloadKey":82,"sprayKey":70,"inspKey":88,"aimKey":67,"shootKey":76,"chatKey":13,"voiceKey":86,"listKey":9,"interactKey":71,"interactSecKey":72,"dropKey":90,"wepVisKey":-1,"streakKeys":[49,50,51,52],"moveKeys":[87,83,65,68]},"defaultRegion":"us-ca-sv","lang":"en","resolution":1.2,"updateRate":0,"aspectRatio":"1280x720","lowSpec":false,"particles":"true","shadows":"true","ambientShading":"true","showTrails":"true","muzzleFlash":false,"sniperFlap":false,"textureAnim":"true","scaleUI":0.6,"showUI":"true","dynamicHP":false,"showHitInd":"true","showDMG":"true","dmgColor":"#DE292F","critColor":"#FFD542","dmgScale":0.7,"shwChat":"0","showKills":"true","showKillC":"true","showDeaths":"true","showStreak":"true","showMessages":"true","showUnboxings":"true","showPing":"true","showFPS":"true","showSpeed":false,"speedOffX":4.1,"speedOffY":4,"showMedals":"true","hideNames":"0","nametagStyle":"0","crosshairSho":"4","crosshairStyle":"2","cros
@baiwfg2
baiwfg2 / it-ebooks.md
Last active December 11, 2025 04:49
Download ebooks as you want
@zrsmithson
zrsmithson / mngw-w64_boost.MD
Last active October 21, 2025 13:18
Installing boost on Windows using MinGW-w64 (gcc 64-bit)

Installing boost on Windows using MinGW-w64 (gcc 64-bit)

Introduction

Boost is easy when you are using headers or pre-compiled binaries for visual studio, but it can be a pain to compile from source on windows, especially when you want the 64-bit version of MinGW to use gcc/g++. This installation process should be thorough enough to simply copy and paste commands, but robust enough to install everything you need.

Note: if you need to install any of the libraries that need dependencies, see this great answer from stack overflow

Get files needed for install

Get the MinGW installer mingw-w64-install.exe from Sourceforge
Get the boost_1_68_0.zip source from Sourceforge
__Note: This should work perfectly w

// ==UserScript==
// @name Disable Page Visibility API
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Disables JS events on whole page focus/unfocus. Usefull to prevent ads stop when switching to another tab.
// @author Louis Chanouha
// @match *://*/*
// @grant none
// ==/UserScript==
/*
* Name: SigScanSharp
* Author: Striekcarl/GENESIS @ Unknowncheats
* Date: 14/05/2017
* Purpose: Find memory patterns, both individually or simultaneously, as fast as possible
*
* Example:
* Init:
* Process TargetProcess = Process.GetProcessesByName("TslGame")[0];
* SigScanSharp Sigscan = new SigScanSharp(TargetProcess.Handle);
@0xjac
0xjac / private_fork.md
Last active December 10, 2025 08:58
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@ericdke
ericdke / download.cpp
Last active August 5, 2025 21:39
C++: Download a file using HTTP GET and store in in a std::string
/**
* HTTPDownloader.hpp
*
* A simple C++ wrapper for the libcurl easy API.
*
* Written by Uli Köhler (techoverflow.net)
* Published under CC0 1.0 Universal (public domain)
*/
#ifndef HTTPDOWNLOADER_HPP
#define HTTPDOWNLOADER_HPP
@mesgarpour
mesgarpour / appsScript_ListFilesFolders_ver.2.js
Last active August 24, 2025 16:39
[Google Apps Script] List all files & folders in a Google Drive folder, & write into a speadsheet
/*
* Copyright 2017 Mohsen Mesgarpour
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@oskaritimperi
oskaritimperi / sqlite.cpp
Created February 20, 2014 16:06
Very simple SQLite C++ wrapper
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cstdarg>
#include <string>
#include <vector>
#include <map>
#include <algorithm>