Safest way to clean up boot partition - Ubuntu 14.04LTS-x64
Case I: if /boot is not 100% full and apt is working
1. Check the current kernel version
$ uname -r
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)'); |
$ uname -r
function request_proxy(options, callback) { | |
var proxy = options.proxy; | |
proxy.path = options.uri.hostname; | |
proxy.headers = { host: options.uri.hostname }; | |
if (proxy.auth) | |
proxy.headers['Proxy-Authorization'] = 'Basic ' + U.createBuffer(proxy.auth).toString('base64'); | |
var req = Https.request(proxy); |
const Crypto = require('crypto'); | |
require('total.js'); | |
function DocumentDB(hostname, key) { | |
this.hostname = hostname; | |
this.key = key; | |
this.attempts = 0; | |
this.expiration = '10 minutes'; | |
} |
String.prototype.parseTransform = function() { | |
var prop = ['translate', 'matrix', 'rotate', 'skewX', 'skewY', 'scale']; | |
var val = this.match(/(translate|matrix|rotate|skewX|skewY|scale)\(.*?\)/g); | |
var obj = {}; | |
if (val) { | |
for (var i = 0, length = val.length; i < length; i++) { | |
var item = val[i]; | |
var index = item.indexOf('('); | |
var v = item.substring(index + 1, item.length - 1).split(/\,|\s/); | |
var n = item.substring(0, index); |
require('total.js').http('debug'); | |
var util = require('util'); | |
var EventEmitter = require('events'); | |
// jen na test | |
var WSCONTROLLER = { | |
send: function(data){ console.log(data)} | |
} |
exports.install = function() { | |
F.route('/api/signup/', json_signup, ['*SignUp', 'post']); | |
}; | |
function json_signup() { | |
var self = this; | |
self.$async(self.callback(), 1).$workflow('recaptcha').$save().$workflow('notify'); | |
} |
const Exec = require('child_process').exec; | |
var cmd = 'ps aux | grep "mysql" | grep -v "grep" | awk {\'print $2\'}'; | |
Exec(cmd, function(err, response) { | |
var pid = response.trim(); | |
cmd = 'ps -p {0} -o %cpu,rss,etime'.format(pid); | |
console.log(cmd); | |
Exec(cmd, function(err, response) { | |
console.log('---> POSLAT SIROVI:', arguments); | |
}); |
worker_processes auto; | |
events { | |
use epoll; | |
worker_connections 1024; | |
multi_accept on; | |
} | |
http { | |
limit_req_zone $binary_remote_addr zone=ddos:10m rate=50r/s; |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.1.0/d3.min.js"></script> |