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",
@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;
#!/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 / 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;
@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;
@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"
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) {