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
libssl1.0.0:amd64 install | |
libssl1.0.0:i386 install | |
libstdc++-4.9-dev:amd64 install | |
libstdc++5:i386 install | |
libstdc++6:amd64 install | |
libstdc++6:i386 install | |
libsvga1:i386 install | |
libswitch-perl install | |
libsybdb5:amd64 install | |
libsysfs2:amd64 install |
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
; Start a new pool named 'www'. | |
; the variable $pool can we used in any directive and will be replaced by the | |
; pool name ('www' here) | |
[www] | |
; Per pool prefix | |
; It only applies on the following directives: | |
; - 'slowlog' | |
; - 'listen' (unixsocket) | |
; - 'chroot' |
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
Selecting previously unselected package libaio1:amd64. | |
(Reading database ... 26944 files and directories currently installed.) | |
Preparing to unpack .../libaio1_0.3.109-4_amd64.deb ... | |
Unpacking libaio1:amd64 (0.3.109-4) ... | |
Selecting previously unselected package libdbi-perl. | |
Preparing to unpack .../libdbi-perl_1.630-1_amd64.deb ... | |
Unpacking libdbi-perl (1.630-1) ... | |
Selecting previously unselected package libdbd-mysql-perl. | |
Preparing to unpack .../libdbd-mysql-perl_4.025-1_amd64.deb ... | |
Unpacking libdbd-mysql-perl (4.025-1) ... |
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
VAGRANTFILE_API_VERSION = "2" | |
DB_TYPE = "mysql" # postgresql/sqlite | |
DB_ROOT_PWD = "root" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "private_network", ip: "10.10.10.10" |
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
var $window = $(window); | |
$window.on('scroll', function() { | |
var scrollTop = $window.scrollTop(); | |
console.log(scrollTop); | |
}); |
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
debug_google_events(); |
I hereby claim:
- I am AveVlad on github.
- I am vld (https://keybase.io/vld) on keybase.
- I have a public key whose fingerprint is 4E31 484B 8B71 105E 9294 95B1 643D CA5E D5FF 11BD
To claim this, I am signing this object:
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
[].slice.call(document.querySelectorAll('[class]')).map(function (node) { | |
return node.className | |
}).sort(function (a, b) { | |
return b.length - a.length | |
}).slice(0, 50).map(function (elem) { | |
console.log(elem); | |
return elem; | |
}); |
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
private def query( ): Future[ List[ JsObject ] ] = { | |
val group: Group = Group( BSONString( "$order.year" ) )( ("total", SumField( "value" )) ) | |
val pipeline: Seq[ PipelineOperator ] = Seq( group ) | |
val command: Future[ Stream[ BSONDocument ] ] = db.command( Aggregate( "opportunities", pipeline ) ) | |
command map { | |
c => | |
c.toList map { | |
d => | |
toJSON( d ).asInstanceOf[ JsObject ] | |
} |