Skip to content

Instantly share code, notes, and snippets.

Matthew M Kaufman mattisbusycom

Block or report user

Report or block mattisbusycom

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 gist:d7eb158947d48579811e
WARNING: You have accessed a private computer system. This system is for authorized use only and user activities are monitored and recorded by company personnel. Unauthorized access to or use of this system is strictly prohibited and constitutes a violation of federal and state criminal and civil laws, including Title 18, Section 1030 of the United States Code and applicable international laws. Violators will be prosecuted to the fullest extent of the law. By logging on you certify that you have read and understood these terms and that you are authorized to access and use this system.
View crawl status dropdown
<li class="dropdown open">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="true">
Status
</a>
<ul class="dropdown-menu dropdown-tasks">
<li>
<a href="#">
<div>
<p>
<strong>Briefcase 1</strong>
View dates in php with Carbon
$dt = Carbon::parse('2012-9-5 23:26:11.123789');
// These getters specifically return integers, ie intval()
var_dump($dt->year); // int(2012)
var_dump($dt->month); // int(9)
var_dump($dt->day); // int(5)
var_dump($dt->hour); // int(23)
var_dump($dt->minute); // int(26)
var_dump($dt->second); // int(11)
var_dump($dt->micro); // int(123789)
View gist:8f774cd1ec8b11901eaf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Codeply preview</title>
<base target="_self">
<meta name="description" content="A layout with fixed width sidebar on the left, and fluid width content area on the right. The left side collapses on smaller devices such as tablets and smartphones." />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="google" value="notranslate">
View gist:ae31ed53e1cbf427e645
$(function()
{
$(document).on('click', '.btn-add', function(e)
{
e.preventDefault();
var controlForm = $('.controls form:first'),
currentEntry = $(this).parents('.entry:first'),
newEntry = $(currentEntry.clone()).appendTo(controlForm);
@mattisbusycom
mattisbusycom / gist:72de91822c21683693c3
Created Jul 7, 2015
flyweb wings float bottom left
View gist:72de91822c21683693c3
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>SpclOps</title>
</head>
<body>
<a href="https://spclops.com/partners/flyweb-media-inc">
View gist:704f86554a0b0360d979
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGGryv/qvcRBpBt8tNdBtr5hinrLxjqNMjlXyDlDXMdQOz9ll49BSSWODfHCG1Rsq2RVCcBpZPEpzsw1HjzHiUN630KWAbTlmv/mfKvCk8SLQAxigj7ilM/33xW3syf5G0wpvolDhDE+Ow0PDHS/og0jc/Ok4AvzvitmPcpqLC+ebb96hL+3X2z8J3M8OvENMIiJSkCIRBf/cjjjeuKg4z2VR/17Jc9DR61Zf6R6QXxRxAm2RKqhpUcRc2yg2HR/FVr902f5wNkhD7iuYpdFcgIYHhkv2mt4cgNVkvmtFs4zzwXAcRot8SeOnUZUleAsbqz3H7K7kT82fRvpvwbPoX spclopsinc@matt-Lenovo-Edge-15
View gist:f4729141ea6c50db2eae
# First, create the synonyms file /opt/elasticsearch/name_synonyms.txt
# with the contents:
#
# rob,bob => robert
#
## CREATE THE INDEX WITH ANALYZERS AND MAPPINGS
curl -XPUT 'http://127.0.0.1:9200/test/?pretty=1' -d '
{
View Vagrantfile
Vagrant.configure(2) do |config|
config.vm.box = "lucid32"
config.vm.provision :shell, :path => "vagrant-provision.sh"
config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777","fmode=666"]
config.ssh.forward_agent = true
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
You can’t perform that action at this time.