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
# |
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 os # , sys, io | |
import argparse | |
from pathlib import Path | |
from PIL import Image | |
xfp_vmax = 225 # Do not change | |
xfp_hmax = 384 # Do not change | |
sfp_vmax = 0 | |
sfp_hmax = 0 |
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
Attribute VB_Name = "dbSettings" | |
Public Function ConnectionString() As String | |
Dim sqlSettings() As Variant | |
Dim SqlServer, SqlDBName, SqlUserName, SqlPassword As String | |
'read in sql parameters | |
sqlSettings = getSettings | |
'move parameters into readable variable names |
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
Private actLocation As Integer | |
Private actPrinterType As Integer | |
Private actSerialNumber As String | |
Private actPath As String | |
Private actStatusCheck | |
Private actVersion As Integer | |
Private actBoxID As Integer | |
Option Explicit |
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
Sub DoSomething() | |
Set conn = New ADODB.connection | |
Set cmd = New ADODB.Command | |
conn.Open ThisDisplay.SqlConnectionParameters.ConnectionString | |
... | |
... | |
... | |
conn.Close | |
If Not conn Is Nothing Then Set conn = Nothing |
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
Public Sub setPriority(processName as String) | |
Const IDLE = 64 | |
Const BELOW_NORMAL = 16384 | |
Const NORMAL = 32 | |
Const ABOVE_NORMAL = 32768 | |
Const HIGH = 128 | |
Const REALTIME = 256 | |
Dim strComputer As String | |
Dim objWMIService As Object |
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
Sub ConstrainImage(filePath as String) | |
Dim img As Image = Image.FromFile(filePath) | |
Dim imgX As Integer = img.Width | |
Dim imgXLim As Integer = 350 | |
Dim imgY As Integer = img.Height | |
Dim imgYLim As Integer = 100 | |
Dim imgXdiff As Integer = imgX - imgXLim | |
Dim imgYdiff As Integer = imgY - imgYLim | |
Dim growFactor As Double | |
Dim shrinkFactor As Double |
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 json | |
import requests | |
import re | |
import sys | |
import os | |
import random | |
import bs4 | |
from decouple import Csv, config | |
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 pyautogui | |
import time | |
pyautogui.PAUSE = 0.1 | |
pyautogui.FAILSAFE = True | |
screensize = pyautogui.size() | |
screenX_center = screensize.width / 2 | |
screenY_center = screensize.height / 2 |
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
===================================GENERAL WARRIOR MACROS================================= | |
#showtooltip | |
/use 14 | |
/targetmarker 8 | |
/say Kill {skull}%t{skull} | |
#showtooltip | |
/use 13 |
OlderNewer