Skip to content

Instantly share code, notes, and snippets.

View Geczy's full-sized avatar
🐢
Reading

Matt Geczy

🐢
Reading
View GitHub Profile
@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():
#!/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 / 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;
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@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
<?php
// Usage: file.php?s1=FirstToken&s2=SecondToken&car=YourCarName
class TeslaKeys
{
var $filename = '.tesla_tokens.json';
function __construct()
{
import qs from 'qs';
import { parse } from 'url';
import omit from 'lodash/omit';
import merge from 'lodash/merge';
/* eslint no-useless-escape: 0 */
const rxClean = /(\(:[^\)]+\)|:[^\/]+\/?)/g;
/**
* Url modification