This file contains hidden or 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
| program app; | |
| {$IFDEF FPC}{$mode objfpc}{$ENDIF} | |
| uses SysUtils, Classes; | |
| var | |
| t1,t2: TDateTime; | |
| t3,t4: UInt64; | |
| tickspersec: UInt64; |
This file contains hidden or 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 pyaudio | |
| import numpy as np | |
| import time | |
| import queue | |
| import threading | |
| from collections import deque | |
| import os | |
| import signal | |
| # Frequency range to check for peaks. |
This file contains hidden or 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 SNMPParserMIB; | |
| {$mode delphi} | |
| interface | |
| uses Windows, SysUtils, Classes, Generics.Collections, | |
| Generics.Defaults, Math; | |
| type | |
| pTRKnownOID = ^TRKnownOID; |
This file contains hidden or 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 uReplaceFunction; | |
| {$mode objfpc} | |
| {$asmmode intel} | |
| interface | |
| uses | |
| {$IF DEFINED(MSWINDOWS)} | |
| Windows | |
| {$ELSEIF DEFINED(LINUX)} |
This file contains hidden or 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
| param( | |
| [Parameter(Mandatory=$true)] | |
| [ValidatePattern('^[A-Za-z]$')] | |
| [string]$DriveLetter | |
| ) | |
| # Структура загрузочного сектора NTFS | |
| $NTFSBootSectorFormat = @{ | |
| JumpInstruction = 0..2 | |
| OemID = 3..10 |
This file contains hidden or 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
| #include <stdio.h> | |
| #include <windows.h> | |
| #include <winternl.h> | |
| #define dwAllowDllCount 1 | |
| CHAR cAllowDlls[dwAllowDllCount][MAX_PATH] = { | |
| "W:\\allowed.dll" | |
| }; | |
| VOID HookLoadDll(LPVOID lpAddr); |
This file contains hidden or 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
| """ | |
| A script to automatically export bookmarks from Firefox's SQLite database. | |
| There does not seem to be a programmatic way to get Firefox to export its bookmarks in | |
| the conventional HTML format. However, you can access the bookmark information directly | |
| in Firefox's internal database, which is what this script does. | |
| Always be careful when working with the internal database! If you delete data, you will | |
| likely not be able to recover it. |