Skip to content

Instantly share code, notes, and snippets.

View Geczy's full-sized avatar
🐢
Reading

Matt Geczy

🐢
Reading
View GitHub Profile
#!/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
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 October 18, 2017 23:24
Comparing noise cancellation earbuds to motorcycle riding

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.

/* 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;
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);