Skip to content

Instantly share code, notes, and snippets.

View Geczy's full-sized avatar
🐢
Reading

Matt Geczy

🐢
Reading
View GitHub Profile
@Geczy
Geczy / patch.sh
Last active May 29, 2023 04:22 — forked from jakeajames/patch.sh
Make h3lix work when installed not-via-Impactor. To be used with the latest h3lix.
#!/bin/bash
if [ $# != 2 ]; then
echo "Usage: $0 /path/to/input_ipa /path/to/output_ipa"
exit 1
fi
if ! [ -f "$1" ]; then
echo "'$1' does not exist"
exit 1
@Geczy
Geczy / findbrew.sh
Created May 4, 2023 01:15
find a list of apps you installed that were not using brew
#!/bin/bash
# Use brew install --cask --force x y z to reinstall the apps found with brew
# Get list of all installed applications on Mac
IFS=$'\n' app_list=($(mdfind "kMDItemContentTypeTree == 'com.apple.application' && kMDItemCFBundleIdentifier != 'com.apple.Installer' && kMDItemCFBundleIdentifier != 'com.apple.systempreferences'"))
# Get the response of the Brew Cask JSON API
brew_cask_api_response=$(curl -s https://formulae.brew.sh/api/cask.json)
; 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
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'],
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) {
@Geczy
Geczy / dota2.json
Last active May 3, 2023 20:01
dota 2 keychron q1 keymaps with karabiner
{
"title": "Swap Left Option/Command only in Dota2",
"rules": [
{
"description": "Left Control to Option",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_control"
@Geczy
Geczy / pyramid.js
Last active June 10, 2023 23:01
pyramid
class TwitchPyramid {
ChatContainer = 'section[data-test-selector="chat-room-component-layout"]';
ChatLine = '.chat-line__message';
ROOT = '#root div';
size;
constructor() {
this.store = this.getStore();
this.chatService = this.getChatService();
this.userLogin = this.chatService?.props?.currentUserLogin;
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;
@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>
@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():