Skip to content

Instantly share code, notes, and snippets.

View M0n7y5's full-sized avatar
😳
Are u coding, son?

M0N7Y5 M0n7y5

😳
Are u coding, son?
View GitHub Profile
@sharadhr
sharadhr / silencing_vs_devterm.md
Last active April 7, 2024 14:47
Silencing the Developer PowerShell

Silencing the Developer PowerShell

TL;DR

I used dnSpy to edit a CIL DLL library, Microsoft.VisualStudio.DevShell.dll to silence the banner displayed by a Developer PowerShell terminal. I also added the Developer PowerShell functionality to all my PowerShell terminals, so I can use cl.exe and clang.exe (and clang-cl.exe) from anywhere.

But two sentences do not a blog post make.

@dhkatz
dhkatz / msys2-visual-studio-code.md
Last active May 6, 2025 05:06
Using MSYS2 with Visual Studio Code

Using MSYS2 with Visual Studio Code is extremely easy now thanks to the Shell Launcher extension by Tyriar.

First, install the extension and reload Visual Studio Code.

Then, open the settings.json to edit your settings.

Add the field shellLauncher.shells.windows. I recommend using autocompletion here so that all the default shells are added.

You should having something like this now:

Libuv and libev, two I/O libraries with similar names, recently had the privilege to use both libraries to write something. Now let's talk about my own subjective expression of common and different points.

The topic of high-performance network programming has been discussed. Asynchronous, asynchronous, or asynchronous. Whether it is epoll or kqueue, it is always indispensable to the asynchronous topic.

Libuv is asynchronous, and libev is synchronous multiplexing IO multiplexing.

Libev is a simple encapsulation of system I/O reuse. Basically, it solves the problem of different APIs between epoll and kqueuq. Ensure that programs written using livev's API can run on most *nix platforms. However, the disadvantages of libev are also obvious. Because it basically just encapsulates the Event Library, it is inconvenient to use. For example, accept(3) requires manual setnonblocking after connection. EAGAIN, EWOULDBLOCK, and EINTER need to be detected when reading from a socket. This is a

@elix22
elix22 / ImGuiBindings.cpp
Created January 24, 2018 14:12 — forked from JSandusky/ImGuiBindings.cpp
Urho3D DearImGui
#include "../Precompiled.h"
#include "../AngelScript/Addons.h"
#include "../AngelScript/Script.h"
#include "../Math/Color.h"
#include "../Math/Vector2.h"
#include "../Math/Vector3.h"
#include "../Math/Vector4.h"
#include <AngelScript\angelscript.h>
@bjornblissing
bjornblissing / dpiawarescaleing.manifest
Last active June 28, 2019 21:27
Manifest to tell Windows that the application is DPI aware (needed for Windows 8.1 and up)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
</windowsSettings>
</application>
</assembly>