Skip to content

Instantly share code, notes, and snippets.

View Geczy's full-sized avatar
🐢
Reading

Matt Geczy

🐢
Reading
View GitHub Profile
$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)) {
use strict;
use warnings;
use JSON;
my @arr = (
{ id => 'property_foo',
label => 'Some property' },
{ id => 'property_bar',
label => 'Important field' },
{ id => 'property_baz',
{ "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.thebigboss.org\/moreinfo\/abgrouperDp.php", "dev": "alexandre", "homepage": "http:\/\/moreinfo.thebigboss.org\/moreinfo\/abgrouper.php" } ] }
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);
/* 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;
@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.

@Geczy
Geczy / sso_login_freshdesk.php
Created December 4, 2012 22:16
SSO Login for Freshdesk support portal - PHP Sample Code
function freshdesk_login_url($name, $email) {
$secret = '____Place your Single Sign On Shared Secret here_____';
$base = 'http://mycompany.freshdesk.me/';
return $base . "login/sso/?name=" . urlencode($name) . "&email=" . urlencode($email) . "&hash=" . hash('md5', $name . $email . $secret);
}
header("Location: " . freshdesk_login_url("John Doe", "username@thecompany.com") );
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:
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
<?php
// Usage: file.php?s1=FirstToken&s2=SecondToken&car=YourCarName
class TeslaKeys
{
var $filename = '.tesla_tokens.json';
function __construct()
{