Skip to content

Instantly share code, notes, and snippets.

View mattisbusycom's full-sized avatar

Matthew M Kaufman mattisbusycom

View GitHub Profile
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.
http://www.codeply.com/go/T3NcAvfbqO
<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>
@mattisbusycom
mattisbusycom / dates in php with Carbon
Created August 1, 2015 22:09
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)
<!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">
$(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 July 7, 2015 18:49
flyweb wings float bottom left
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>SpclOps</title>
</head>
<body>
<a href="https://spclops.com/partners/flyweb-media-inc">
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGGryv/qvcRBpBt8tNdBtr5hinrLxjqNMjlXyDlDXMdQOz9ll49BSSWODfHCG1Rsq2RVCcBpZPEpzsw1HjzHiUN630KWAbTlmv/mfKvCk8SLQAxigj7ilM/33xW3syf5G0wpvolDhDE+Ow0PDHS/og0jc/Ok4AvzvitmPcpqLC+ebb96hL+3X2z8J3M8OvENMIiJSkCIRBf/cjjjeuKg4z2VR/17Jc9DR61Zf6R6QXxRxAm2RKqhpUcRc2yg2HR/FVr902f5wNkhD7iuYpdFcgIYHhkv2mt4cgNVkvmtFs4zzwXAcRot8SeOnUZUleAsbqz3H7K7kT82fRvpvwbPoX spclopsinc@matt-Lenovo-Edge-15
# 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 '
{
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"]