This file contains 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
#!/bin/bash | |
pushd $(dirname $0) > /dev/null | |
D=$(pwd) | |
echo D $D | |
popd > /dev/null | |
ulimit -n 1000 | |
mongod --dbpath $D --logpath $D/mongodb.log --fork $* |
This file contains 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
while [ $? == 0 ] ; do OUTPUT=`./vendor/bin/phpunit --group wip 2>&1` ; clear ; echo "$OUTPUT" ; sleep 2 ; done |
This file contains 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
... | |
config.vm.provider :virtualbox do |vb| | |
vb.customize ['modifyvm', :id, '--natdnshostresolver1', 'on'] | |
vb.customize ['modifyvm', :id, '--natdnsproxy1', 'on'] | |
end | |
... |
This file contains 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
<?php | |
namespace MVMS\ApiBundle\Tests; | |
trait ClosesConnectionsAfterTestTrait | |
{ | |
public static $dbConnections = []; | |
/** @after */ | |
public function ensureDbConnectionsGetClosed() | |
{ |
This file contains 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
<?php | |
namespace MVMS\ApiBundle\Tests; | |
trait ReflectsAndCleansPropertiesAfterTestTrait | |
{ | |
/** @after */ | |
public function cleanUpTestAndContainerProperties() | |
{ | |
if (($container = $this->getContainer()) != null) { | |
$refl = new \ReflectionObject($container); |
This file contains 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
# name the uploadable archive | |
ARCHIVE=MyChromePackagedAppSubmission.zip | |
################### | |
DIR=$(shell basename `pwd`) | |
release: build/$(ARCHIVE) | |
@echo Archive created: $(PWD)/build/$(ARCHIVE) | |
build/$(ARCHIVE): build * |
This file contains 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
# Place in /usr/share/X11/xorg.conf.d/05-lenovo-yoga-2-modeline.conf | |
Section "Monitor" | |
Identifier "Monitor0" | |
# Calculated with "cvt $((3200/2)) $((1800/2))" | |
# 1600x900 59.95 Hz (CVT 1.44M9) hsync: 55.99 kHz; pclk: 118.25 MHz | |
Modeline "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync | |
EndSection | |
Section "Screen" |
This file contains 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
"\e[5D": backward-word | |
"\e[5C": forward-word |
This file contains 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
{ | |
"type": "callback", | |
"source": { | |
"pushType": "gcm", | |
"invocationAPIs": [], | |
"bubbleParent": true, | |
"showTrayNotification": true, | |
"enabled": false, | |
"__propertiesDefined__": true, | |
"singleCallback": false, |
This file contains 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
'use strict'; | |
const Promise = require('bluebird'); | |
function someAsyncTask() { | |
return new Promise(function(resolve) { | |
let delay = Math.floor(Math.random() * 10000); | |
setTimeout(function () { | |
resolve(delay); |