Skip to content

Instantly share code, notes, and snippets.

@mmozeiko
mmozeiko / !README.md
Last active July 22, 2024 13:03
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 - currently v14.40.33807 and v10.0.26100.0.

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).

@ngerritsen
ngerritsen / README.md
Last active April 23, 2023 19:00
Krunker.io config

Niels' Krunker.io config

  1. Copy config.txt contents.
  2. In Krunker go to settings > Import.
  3. Paste the config.
  4. Go to mods and install philzgoodmod.
  5. Adjust the sensitivity to match your preference.
  6. Adjust the resolution to match your computers performance.

Preferable run Krunker using the Windows, macOS or Linux client to get maximum FPS. Try to get as much FPS as possible by adjusting the resolution without looking blurry/pixelated.

{"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
// ==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);
@ericdke
ericdke / download.cpp
Last active September 24, 2023 06:42
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 July 18, 2024 06:09
[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>