This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: vagrant up windowsVersion-IEversion | |
# | |
# Eg. vagrant up win10-edge | |
# | |
# Based off of: # https://gist.github.com/anthonysterling/7cb85670b36821122a4a | |
boxes = { | |
# http://www.vagrantbox.es/ | |
"xp-6" => "https://aka.ms/ie6.xp.vagrant", | |
"xp-8" => "https://aka.ms/ie8.xp.vagrant", | |
"vista-7" => "https://aka.ms/ie7.vista.vagrant", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Simple userland heapdump generator using v8-profiler | |
* Usage: require('[path_to]/HeapDump').init('datadir') | |
* | |
* @module HeapDump | |
* @type {exports} | |
*/ | |
var fs = require('fs'); | |
var profiler = require('v8-profiler'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' /> | |
<script src='./mapbox.js'></script> | |
<script src='./leaflet.markercluster-src.js'></script> | |
<link href='./mapbox.css' rel='stylesheet' /> | |
<link href='./MarkerCluster.css' rel='stylesheet' /> | |
<link href='./MarkerCluster.Default.css' rel='stylesheet' /> | |
<!--[if lte IE 8]> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Sshpass < Formula | |
url 'http://downloads.sourceforge.net/project/sshpass/sshpass/1.05/sshpass-1.05.tar.gz' | |
homepage 'http://sshpass.sourceforge.net/' | |
md5 'c52d65fdee0712af6f77eb2b60974ac7' | |
def install | |
system "./configure", "--disable-debug", "--disable-dependency-tracking", | |
"--prefix=#{prefix}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//for PHP 5.2 | |
$dateTime = new DateTime(); | |
$dateTime->setTimezone(new DateTimeZone('America/New_york')); | |
$date = getdate(); | |
$dateTime->setDate($date['year'], $date['mon'], $date['mday']); | |
$dateTime->setTime($date['hours'], $date['minutes'], $date['seconds']); | |
$conf['daylight_savings'] = (bool) $dateTime->format('I') ? 'y' : 'n'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
opendiff=difftool --tool=opendiff --dir-diff --no-prompt | |
Usage: | |
git opendiff <branch, tag, sha> |