Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Matt Geczy

🏠
Working from home
  • United States
Block or report user

Report or block Geczy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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 Jan 20, 2020
jira auto time logger
View jira.js
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.

View dynamicChecklist.css
/* START CUSTOM CSS */
.taskGroupTitle,
.CustomText,
.task {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif !important
}
.CustomText {
color: #333;
View gist:36cc1379bbc7b4fce044
use strict;
use warnings;
use JSON;
## @ARG is a special Perl array that contains the script's command line arguments
my $input = $ARGV[0];
## Our input lines contain two columns, so we should define the variables that correspond to each column
my ($key, $value);
You can’t perform that action at this time.