Skip to content

Instantly share code, notes, and snippets.

Avatar
:bowtie:

Matt Geczy

:bowtie:
  • United States
View GitHub Profile
@Geczy
Geczy / Apply shadow to screenshot.kmmacros
Created Sep 23, 2020 — 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
View Apply shadow to screenshot.kmmacros
<?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 Jul 1, 2020 — forked from TheWover/ntpspoof.py
NTP spoofer to change the date of any victim to the year 2035
View ntpspoof.py
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():
View inspect.sh
#!/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 Aug 10, 2020
jira auto time logger
View jira.js
// 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;
View dash.json
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
View ez.js
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
View savekeys.php
<?php
// Usage: file.php?s1=FirstToken&s2=SecondToken&car=YourCarName
class TeslaKeys
{
var $filename = '.tesla_tokens.json';
function __construct()
{
View gist:3067e15924a4eb4f18684ea98a81f79d
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
View FormValueSelector.js
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { formValueSelector } from 'redux-form';
/*
Example usage:
* Get the value of a single form field:
@Geczy
Geczy / ANC.md
Last active Oct 18, 2017
Comparing noise cancellation earbuds to motorcycle riding
View ANC.md

Tested several ANC earbuds today, here's my data

🏆 Winner

JBL Everest Elite 100.

Synopsis

Earbuds with that stupid around-the-neck thing are a bad design for a motorcycle rider. The only earbud without the neck thing is the QC20.

The most comfortable and least popping earbud was the $250 QC30.