Skip to content

Instantly share code, notes, and snippets.

View zelon88's full-sized avatar
🏗️
Building!

Justin Grimes zelon88

🏗️
Building!
View GitHub Profile
@zelon88
zelon88 / Display_Board_Updater_Client.py
Last active January 21, 2020 21:19
Display_Board_Updater_Client.py
# --------------------------------------------------
# Display_Board_Updater_Client.py
# v1.6 - 1/21/2020
# Justin Grimes (@zelon88)
# https://www.HonestRepair.net
# Made on Windows 7 with Python 2.7
# This program is for preparing & displaying PDF reports in fullscreen on unattended workstations.
# For example, you can use this program to create an up-to-date dashboard that rotates slides automatically.
@zelon88
zelon88 / es.vbs
Created November 5, 2019 21:28
A VBS script to copy & preserve specified Event IDs (useful if you suspect someone is clearing Windows Security Logs)
'Adapted from...
'https://stackoverflow.com/questions/21738159/extracting-error-logs-from-windows-event-viewer
Option Explicit
Dim LOG_FILE, strComputer, objWMIService, objFSO, objLogFile, objLogFile2, objEvent, colItems
'----------------------------------------
'----------------------------------------
'Declare global variables
LOG_FILE = "es.dat"
strComputer = "."
@zelon88
zelon88 / MasterSpreadsheeter.vbs
Created September 9, 2019 05:20
Helped out a Reddit user with some VBS...
'COMPLETELY UNTESTED!!!
'Modified by Reddit/GH user @zelon88 on 9/4/2019
'Set global variables.
'--------------------
'Change the masterSpreadsheet variable to the absolute path of your master spreadsheet.
masterSpreadsheet = "C:\DIR TO FILE\FILE.xlsx"
'--------------------
@zelon88
zelon88 / Drag-Drop-Swap.js
Created June 12, 2019 04:27
Use Javascript & JQuery to drag-and-drop two div elements on a page to swap them.
// / Created by https://codepen.io/cilestin/#
// / Found at https://codepen.io/cilestin/pen/ogQQBP on 6/11/2019
// / Modified by https://github.com/zelon88 on 6/11/2019
// / https://www.HonestRepair.net
// / Create a div container with the class="dragContainer" attribute set.
// / Then set the draggable=true attribute on all child divs for them to become swappable.
// ----------
// / Requires JQuery!
Idea for LoadBalancing (HRAI2)
https://www.HonestRepair.net
1. Setup server nodes on a network
2. Client nodes connect via browser.
3. Javascript code detects nearby devices. If other nearby devices are found they are networked together via Javascript.
4. Clients can also run a js file that will start a listener/transmitter without connecting to the server.
5. Client networks are held together as long as the JS is running on them.
6. Client networks can use the server JS file to connect to the server.
7. At least one client node needs to have a server connection for the client network to have access to Cloud data locally.
@zelon88
zelon88 / xPress_v1.3.7.py
Last active May 12, 2019 06:05
xPress File Compressor & Extractor - v1.3.7
# --------------------------------------------------
# xPress.py
# v1.3.7 - 5/12/2019
# Justin Grimes (@zelon88)
# https://github.com/zelon88/xPress
# https://www.HonestRepair.net
# Made on Windows 7 with Python 2.7.12
@zelon88
zelon88 / xPress.py
Last active February 17, 2019 04:50
xPress Compressor (learning experiment)
# An experiment with reversible compression, only I have yet to figure out the reverse part. >D
# --------------------------------------------------
# COMPRESS & EXTRACT
# Load required modules and set global variables.
import sys, getopt, datetime, os, binascii, psutil, math, pickle
now = datetime.datetime.now()
time = now.strftime("%B %d, %Y, %H:%M")
inputFile = ''
inputPath = ''
Option Explicit
dim oShell, oFSO, dangerousExes, exe, cmdHardCodedHash, cmdDynamicHash, strComputerName, strUserName, strLogFilePath, strSafeDate, _
strSafeTime, strDateTime, strLogFileName, strEventInfo, objLogFile, cmdHashCache, objCmdHashCache, dangerHashCache, _
dangerHashData, mailFile, objDangerHashCache, oFile
Set oShell = WScript.CreateObject("WScript.Shell")
Set oFSO = CreateObject("Scripting.FileSystemObject")
dangerousExes = Array("Magnify.exe", "Narrator.exe", "osk.exe", "sapisvr.exe", "control.exe", "utilman.exe")
cmdHardCodedHash = "db 06 c3 53 49 64 e3 fc 79 d2 76 31 44 ba 53 74 2d 7f a2 50 ca 33 6f 4a 0f e7 24 b7 5a af f3 86"
@zelon88
zelon88 / PHP_Application_Template.php
Last active June 16, 2018 03:15
PHP Application Template
<?php
// / Here are some starter functions and a solid format for developing a reliable PHP application.
$Salts = array('123', 'abc', '456', 'def');
$Verbose = TRUE;
function verifyDate() {
$Date = date("m-d-y");
$Time = date("F j, Y, g:i a");
$Minute = (int) date('i');
@zelon88
zelon88 / HRCloud2_v2496_Legacy_Shared_Files_Fixer.php
Last active April 15, 2018 05:14
Update for HRCloud2 Shared User Directories
<!DOCTYPE html>
<html>
<head>
<title>HRCloud2 Legacy Shared Files Updater</title>
<?php
// / HRCloud2 v2.4.9.6 Legacy Shared Files updater.
// / This script replaces any legacy shared files on the server with symlinks.
// / Written on 4/15/2018
// / Justin Grimes, zelon88
// / https://github.com/zelon88, https://github.com/zelon88/HRCloud2