Skip to content

Instantly share code, notes, and snippets.


Matt Geczy

  • United States
View GitHub Profile
View optimize.php
$urls = Repo::all();
$correctKeys = \DB::connection()->getSchemaBuilder()->getColumnListing("packages");
unset($correctKeys[0], $correctKeys[1]);
foreach ($urls as $repo) {
$text_filename = $repo->id . '.txt';
if (!Storage::exists($text_filename)) {
View gist:67a4251ee76baf41f4ef
$urls = Repo::all();
$correctKeys = \DB::connection()->getSchemaBuilder()->getColumnListing("packages");
unset($correctKeys[0], $correctKeys[1]);
foreach ($urls as $repo) {
$text_filename = $repo->id . '.txt';
if (!Storage::exists($text_filename)) {
View gist:18f04ed1bf746a9803ec
use strict;
use warnings;
use JSON;
my @arr = (
{ id => 'property_foo',
label => 'Some property' },
{ id => 'property_bar',
label => 'Important field' },
{ id => 'property_baz',
View gist:7d9fe9e1cd1a972ffa56
{ "1": [ { "Package": "abgrouper", "Version": "0.3", "Section": "Utilities", "Maintainer": "Spektro ", "Architecture": "iphoneos-arm", "Filename": "debs2.0\/abgrouper_0.3.deb", "Size": "315648", "MD5sum": "7616d2567e1c0fa642f4da4529d4ad60", "Name": "ABGrouper", "Description": "Create, Manage and Delete GROUPS of contacts in your AddressBook. Additionally, it ables you to export Groups of contacts as lists for iBlacklist software and backup\/restore iBlacklist database. A new section will appear if you have iBlacklist installed on your device.", "Author": "Spektro ", "Depiction": "http:\/\/\/moreinfo\/abgrouperDp.php", "dev": "alexandre", "homepage": "http:\/\/\/moreinfo\/abgrouper.php" } ] }
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);
View dynamicChecklist.css
.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;
Geczy /
Last active Oct 18, 2017
Comparing noise cancellation earbuds to motorcycle riding

Tested several ANC earbuds today, here's my data

🏆 Winner

JBL Everest Elite 100.


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 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:
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 savekeys.php
// Usage: file.php?s1=FirstToken&s2=SecondToken&car=YourCarName
class TeslaKeys
var $filename = '.tesla_tokens.json';
function __construct()