Skip to content

Instantly share code, notes, and snippets.

View isa424's full-sized avatar

Isa Ishangulyyev isa424

View GitHub Profile
@isa424
isa424 / schema.json
Last active March 4, 2024 11:23
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"default": {
"navigationFallback": {
"rewrite": "/index.html"
}
},
"definitions": {
"route": {
"type": "object",

Mounting VirtualBox shared folders on Ubuntu Server 18.04 LTS (Bionic Beaver)

This guide will walk you through the steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest.

Prerequisites

This guide assumes that you are using the following setup:

You could still make this guide work with other setups (possibly with some modifications to the commands and whatnot).

const conn = new Mongo("127.0.0.1:27017");
const db = conn.getDB("cubicl");
db.auth("app", "12345678");
var todos = db.todos.find({"category": {$ne: null}});
todos.forEach(function(todo) {
var category = todo.category;
var exists = db.todo_categories.find({_id: category}).count();
function flatten(object, join, undefined, newObject, array) {
// Keep reference to original object
join = join || '.'
newObject = newObject || {}
array = array || []
Object.keys(object).forEach(function (key) {
if (typeof object[key] == 'object' && !Array.isArray(object[key])) {
array.push(key)