This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* fork.c | |
* Experimental fork() on Windows. Requires NT 6 subsystem or | |
* newer. | |
* | |
* Copyright (c) 2012 William Pitcock <nenolod@dereferenced.org> | |
* | |
* Permission to use, copy, modify, and/or distribute this software for any | |
* purpose with or without fee is hereby granted, provided that the above | |
* copyright notice and this permission notice appear in all copies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem Usage: find-msvc.cmd MinimumVersion MaximumVersion | |
rem | |
rem Given a range of versions to search for, this script attempts to locate a | |
rem valid Visual Studio installation based upon the current set of environment | |
rem variables. If a valid installation is found, this script sets the | |
rem environment variable "VCROOT" to Drive:\Path\To\VS\VC. On success, we | |
rem should be able to call %VCROOT%\vcvarsall.bat. | |
rem | |
rem Versions use the VSXX0COMNTOOLS environment variable: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file findlinks.c | |
* @brief Find links | |
*/ | |
#include "pch.h" | |
#include "ntfsdefs.h" | |
typedef struct _FILENAME_PART { | |
LPWSTR Data; | |
UCHAR DataLength; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@rem Do not use "echo off" to not affect any child calls. | |
@SETLOCAL | |
@SETLOCAL ENABLEEXTENSIONS | |
:: Figure out where msys's root folder. If you want, you could just add the folder in the line | |
:: below. | |
@set MSYSROOT= | |
@if "x%MSYSROOT%"=="x" @if exist "%~dp0msys.bat" @set MSYSROOT=%~dp0 | |
@if "x%MSYSROOT%"=="x" @if exist "%~dp0.msys-root" @set /P MSYSROOT=<%~dp0.msys-root | |
@if "x%MSYSROOT%"=="x" ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file findlinks.c | |
* @brief Find links | |
*/ | |
#include "pch.h" | |
#include "ntfsdefs.h" | |
#define FILE_SHARE_READWRITE (FILE_SHARE_READ | FILE_SHARE_WRITE) | |
typedef struct _FILENAME_PART { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# c_void_p PyMem_Malloc(c_size_t) | |
PyMem_Malloc = _dll.PyMem_Malloc | |
PyMem_Malloc.restype = c_void_p | |
PyMem_Malloc.argtypes = [ c_size_t ] | |
# c_void_p PyMem_Realloc(c_void_p, c_size_t) | |
PyMem_Realloc = _dll.PyMem_Realloc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
""" | |
monkeypatch | |
TODO: Description | |
This program is free software. It comes without any warranty, to | |
the extent permitted by applicable law. You can redistribute it | |
and/or modify it under the terms of the Do What The Fuck You Want | |
To Public License, Version 2, as published by Sam Hocevar. See | |
http://sam.zoy.org/wtfpl/COPYING for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
""" | |
monkeypatch | |
TODO: Description | |
This program is free software. It comes without any warranty, to | |
the extent permitted by applicable law. You can redistribute it | |
and/or modify it under the terms of the Do What The Fuck You Want | |
To Public License, Version 2, as published by Sam Hocevar. See | |
http://sam.zoy.org/wtfpl/COPYING for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
goto Main | |
:GetVirtualEnvName | |
rem If the foldername of the virtual env contains a dot, (ex: .vip) | |
rem part of the foldername will end up in the extension part of the path. | |
rem Because of that, we'll combine the extension and name parts of the | |
rem path. | |
set PROMPT=(%~n1%~x1) %PROMPT% | |
goto :EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma comment(lib, "advapi32.lib") | |
#include <windows.h> | |
#include <winnt.h> | |
#include <tlhelp32.h> | |
#include <tchar.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdarg.h> |
NewerOlder