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
wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz | |
sudo tar xzf Python-2.7.9.tgz | |
cd Python-2.7.9 | |
sudo ./configure --enable-optimizations | |
sudo make altinstall | |
sudo ln -sfn '/usr/local/bin/python2.7' '/usr/bin/python2' | |
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1 |
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
import os | |
import io | |
import argparse | |
def unfind_substr(directory, word): | |
files = os.listdir(directory) | |
finalFiles = [] | |
for file in files: | |
filename = os.path.join(directory, file) | |
if os.path.isfile(filename): |
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
USAGE: clang.exe [options] file... | |
OPTIONS: | |
-### Print (but do not run) the commands to run for this compilation | |
--amdgpu-arch-tool=<value> | |
Tool used for detecting AMD GPU arch in the system. | |
--analyzer-output <value> | |
Static analyzer report output format (html|plist|plist-multi-file|plist-html|sarif|sarif-html|text). | |
--analyze Run the static analyzer | |
-arcmt-migrate-emit-errors |
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
const | |
CharMap: array [0..23] of char = 'BCDFGHJKMPQRTVWXY2346789'; | |
var | |
ProductID: array of byte; | |
IdPart: array [0..14] of byte; | |
Registry: TRegistry; | |
DataSize: integer; | |
Key: ansistring; | |
i, j, c: integer; | |
begin |
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
unit winevt_h; | |
{$ifdef FPC} | |
{$mode objfpc}{$H+} | |
{$EndIF} | |
interface | |
uses | |
Classes, SysUtils, Windows; |
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
procedure SnappyDecompress(Input: TByteArray; Offset, | |
Length: integer; var Output: TByteArray); | |
var | |
i, l, o, c,targetIndex,SourceIndex,targetLength: integer; | |
function incPP(var AVal: integer): integer; | |
begin | |
result := AVal; | |
inc(AVal); | |
end; |
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
function LowLevelKeyboardProc(nCode: longint; wParam: wParam; lParam: lParam): LRESULT; | |
stdcall; | |
var | |
pkbhs: PKbdDllHookStruct; | |
AChr: array [0..1] of widechar; | |
VirtualKey: integer; | |
ScanCode: integer; | |
ConvRes: integer; | |
ActiveWindow: HWND; |
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
unit utokenizer; | |
{$mode objfpc}{$H+} | |
interface | |
uses | |
Classes, SysUtils; | |
const |