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
#define UNICODE | |
#include <windows.h> | |
#ifdef __GNUC__ | |
#define wWinMain WinMain //MinGW does not support wWinMain | |
#define WINMAIN_CMDLINE_TYPE LPSTR | |
#else | |
#define WINMAIN_CMDLINE_TYPE LPWSTR | |
#endif |
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
<?xml version='1.0'?> | |
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
<fontconfig> | |
<match target="font"> | |
<edit mode="assign" name="hinting"><bool>false</bool></edit> | |
<edit mode="assign" name="hintstyle"><const>hintnone</const></edit> | |
<edit mode="assign" name="rgba"><const>rgb</const></edit> | |
<edit mode="assign" name="antialias"><bool>true</bool></edit> | |
<edit mode="assign" name="lcdfilter"><const>lcddefault</const></edit> |
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
#!/usr/bin/env ruby | |
require 'socket' | |
require 'pcaprub' | |
require 'packetfu' | |
IDENTIFY_TTL = 105 | |
interface = 'eth0' | |
DUPS = 1 # number of duplicated packet(s) | |
SIOCGIFINDEX = 0x8933 |
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
1.0.1.0/24 | |
1.0.2.0/23 | |
1.0.8.0/21 | |
1.0.32.0/19 | |
1.1.0.0/24 | |
1.1.2.0/23 | |
1.1.4.0/22 | |
1.1.8.0/21 | |
1.1.16.0/20 | |
1.1.32.0/19 |
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
#!/bin/bash | |
if (( EUID != 0 )) | |
then | |
echo "I need root!" | |
exit 1 | |
fi | |
echo "writing /etc/fonts/conf.d/79-order.conf" | |
cat > /etc/fonts/conf.d/79-order.conf <<EOFC | |
<?xml version='1.0'?> |
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
@D:/cygwin64/bin/bash.exe /usr/bin/gitwrapper.sh "%*" |
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 sys | |
import asyncio | |
import base64 | |
import copy | |
import pprint | |
# pip3 install winrt | |
from winrt.windows.media.ocr import OcrEngine | |
from winrt.windows.globalization import Language | |
from winrt.windows.graphics.imaging import * | |
from winrt.windows.security.cryptography import CryptographicBuffer |
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
$ErrorActionPreference = "Stop" | |
$vmobject = Get-VM | Out-GridView -Title "Select VM to setup GPU-P" -OutputMode Single | |
$vmid = $vmobject.VMId | |
Write-Host "Stopping VM" | |
$vmobject | Stop-VM | |
Write-Host "Disabling checkpoints for VM" | |
$vmobject | Set-VM -CheckpointType Disabled | |
Write-Host "Enabling heartbeat service for VM" | |
$vmobject | Enable-VMIntegrationService -Name Heartbeat |
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
# hvix64.exe/hvax64.exe | |
bcdedit /set hypervisorloadoptions IOVTEST | |
# this will invalidate TPM protector | |
Suspend-Bitlocker $env:SystemDrive | |
# pci.sys | |
$pci_hackflags = Get-ItemPropertyValue HKLM:\SYSTEM\CurrentControlSet\Control\PnP\PCI -Name HackFlags | |
Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Control\PnP\PCI -Name HackFlags -Value ($pci_hackflags -bor 0x80) -Type DWord | |
# from hyper-v error message | |
Set-ItemProperty HKLM:\SOFTWARE\Policies\Microsoft\Windows\HyperV -Name RequireSecureDeviceAssignment -Value 0 -Type DWord | |
Set-ItemProperty HKLM:\SOFTWARE\Policies\Microsoft\Windows\HyperV -Name RequireSupportedDeviceAssignment -Value 0 -Type DWord |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer