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 ctypes | |
import sys | |
class SuspendedProcess: | |
def __init__(self, executable_path): | |
"""Create a suspended process""" | |
self.kernel32 = ctypes.windll.kernel32 | |
self.CREATE_SUSPENDED = 0x00000004 | |
# Startup and process info structures (same as previous script) |
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
using Kusto.Language; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
if (args.Length == 0) | |
{ | |
Console.WriteLine("Please provide a KQL query as a command-line argument."); | |
return; |
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
youtube-dl.exe -ci --no-check-certificate --extract-audio --audio-format flac --output "%(uploader)s%(title)s.%(ext)s" "https://www.youtube.com/watch?v=d_mLFHLSULw&list=PLC964A164F76816FB" |
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
from PyQt5.QtWidgets import QLayout, QSplitter, QBoxLayout, QFormLayout, QGridLayout, QLabel, QWidget | |
# QLayout-->setSpacing, setContentsMargins | |
QLayout_setSpacing_original = QLayout.setSpacing | |
QLayout.setSpacing = lambda self, *args: QLayout_setSpacing_original(self, 0) | |
QLayout_setContentsMargins_original = QLayout.setContentsMargins | |
QLayout.setContentsMargins = lambda self, *args: QLayout_setContentsMargins_original(self, 0, 0, 0, 0) | |
# QBoxLayout, QFormLayout, QGridLayout-->setSpacing, setVerticalSpacing, setHorizontalSpacing | |
QBoxLayout_setSpacing_original = QBoxLayout.setSpacing |