Skip to content

Instantly share code, notes, and snippets.

View petersirka's full-sized avatar
🤓
From zero to hero

Peter Širka petersirka

🤓
From zero to hero
View GitHub Profile
@petersirka
petersirka / clean-up-boot-partition-ubuntu.md
Created November 10, 2018 20:03 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@petersirka
petersirka / openplatform-signup.js
Created May 20, 2020 14:38
OpenPlatform registration
ROUTE('-POST /create/ *Create --> @create');
NEWSCHEMA('Create', function(schema) {
schema.define('gender', ['male', 'female'], true);
schema.define('reference', String);
schema.define('firstname', 'Capitalize(30)', true);
schema.define('lastname', 'Capitalize(30)', true);
schema.define('position', 'String(30)');
//require('../index');
// CONF.table_users = 'id:uid,name:string,dtcreated:date';
// TABLE('users').find().callback(console.log);
// TABLE('users').insert({ id: UID(), name: 'Peter', dtcreated: NOW });
const DELIMITER = '\0';
const Fs = require('fs');
const Path = require('path');
require('total4');
CORS();
ROUTE('POST /*', function() {
var self = this;
switch (self.url) {
case '/api/v1/ott-dummy/heartbeat/':
case '/api/v1/ott-dummy/view/':
self.plain('OK');