Skip to content

Instantly share code, notes, and snippets.

View Geczy's full-sized avatar
🐢
Reading

Matt Geczy

🐢
Reading
View GitHub Profile
@Geczy
Geczy / ez.js
Last active April 11, 2019 18:17
var sendMessage = "";
setInterval(() => {
var textInput = document.querySelector("[name=note]");
if (textInput && !textInput.value) {
sendMessage = `Hey ${document
.querySelector("div.recruiting-contact span.name")
.textContent.replace(
/ .*/,
""
)}. I'm really looking forward to learning more about ${document
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
#!/bin/sh
ios-sim-inspector() {
if [ $# -eq 0 ]; then
printf "\n Usage: $ ios-sim-inspector <index-page-title> <device-name>\n\n"
printf " * <index-page-title> cannot have the same name as the folder containing it :(\n\n"
else
appName="$1"
# Safari has been very stubborn about reloading "Develop" menu
@Geczy
Geczy / ntpspoof.py
Created July 1, 2020 16:06 — forked from TheWover/ntpspoof.py
NTP spoofer to change the date of any victim to the year 2035
import os
import sys
import time
from subprocess import Popen, DEVNULL
import datetime
from scapy.all import IP, UDP, NTP
from netfilterqueue import NetfilterQueue
def get_switch_ip():
@Geczy
Geczy / jira.js
Last active August 10, 2020 18:42
jira auto time logger
// timespent is EMPTY AND assignee = currentUser() AND resolution != Unresolved ORDER BY updated DESC
Number.prototype.pad = function (size) {
var s = String(this);
while (s.length < (size || 2)) {
s = "0" + s;
}
return s;
@Geczy
Geczy / Apply shadow to screenshot.kmmacros
Created September 23, 2020 13:49 — forked from agates4/Apply shadow to screenshot.kmmacros
Script to turn a given image into a beautiful screenshot with rounded corners, drop shadow, and whitespace
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>Activate</key>
<string>Normal</string>
<key>CreationDate</key>
<real>622511872.68444896</real>
<key>Macros</key>
const vscode = require('vscode');
const path = require('path');
const fetch = require("node-fetch");
const jsdom = require('jsdom')
const getmac = require('getmac')
let global_questions = [];
let global_question_index = 0;
class TwitchCommandHandler {
// Constructor for initializing the command handler
constructor() {
this.commands = new Map(); // Map for storing command information
this.cooldowns = new Map(); // Map for storing command cooldowns
this.bypassCooldownUsers = []; // List of users that are allowed to bypass the cooldown
}
// Function for adding a user to the list of users that are allowed to bypass the cooldown
addUserToBypassList(username) {
def has_passed_spe(unit_validation_df):
spe_tested = unit_validation_df['spe_ucn']
last_spe_accepted = unit_validation_df['last_spe_accepted_by_algo']
last_spe_days = unit_validation_df['days_since_last_spe']
last_spe_recent = last_spe_days <= 120
validation_conditions = {
'spe_passed': spe_tested & unit_validation_df['SPE_accepted_by_algo'],
'second_spe_passed': spe_tested & ~unit_validation_df['SPE_accepted_by_algo'] & unit_validation_df['second_spe_passed'],
'not_past_due': ~unit_validation_df['last_spe_is_past_due'],
; Define a global variable to keep track of the next window index
global NextWindow := 1
; Hotkey: Alt + `
!`::
; Get the process name and ID of the active window
WinGet, ActiveProcessName, ProcessName, A
WinGet, ActiveWindowID, ID, A
; Get a list of all windows associated with the active process