Skip to content

Instantly share code, notes, and snippets.

db = db.getSiblingDB('tuplesdb')
print("[")
db.getCollectionNames().forEach(function(collection) {
db.getCollection(collection).find({ "instance": "lvn" }).forEach(function(doc) {
printjson(doc);
print(",")
});
})
print("]")
#!/bin/bash
set -uxe
export LC_CTYPE=en_US.UTF-8
cd ~
wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb
sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb
sudo apt-get update