-
In open Ubuntu 18.04 machine click Parallels Actions -> "Install Parallels Tools"
-
A "Parallels Tools" CD will popup on your Ubuntu desktop.
-
Open it by double mouse click, copy all the content to a new, empty directory on a desktop, name it for e.g. "parallels_fixed"
-
Open terminal, change directory to parallels_fixed (
cd ~/Desktop/parallels_fixed
) -
Make command line installer executable (
chmod +x install
) -
Change directory to "installer" (
cd installer
) -
Make few other scripts executable:
chmod +x installer.* *.sh prl_*
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
worker_processes 8; | |
error_log logs/error.log info; | |
events { | |
worker_connections 4096; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
access_log off; | |
sendfile on; |
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
local weak = setmetatable({},{__mode = 'v'}) | |
do | |
local Class = {} | |
-- function Class:super( class,method ) | |
-- return function () | |
-- print("work") | |
-- end | |
-- end | |
function Class:test() | |
self:super(Class,'method')() |
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
local obj = require('obj') | |
local fiber = require('fiber') | |
local log = require('log') | |
local remote = require('net.box') | |
local pool = obj.class({},'pool') | |
function pool:_init(cfg) | |
local zones = {} | |
self.total = 0 |
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
if gr == nil then | |
gr = { version = 1.0 }; | |
else | |
gr.version = 1.0 | |
end | |
-- gr['defschema'] = '1s30s 1s7d 1m3M' | |
gr['defschema'] = '1s30s' | |
gr['defagg'] = 'avg' | |
gr.port = 22003 |
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
queue = require('queue') | |
local function start(config) | |
box.once('jobserver:v0.1.0', function() | |
local tube = queue.create_tube('default', 'fifottl', {if_not_exists = true}) | |
end) | |
end | |
local function stop() | |
end |
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
#!/usr/bin/tarantool | |
------------------------------------- Импортируем встроенные библиотеки ------------------------------------------ | |
json = require('json') | |
yaml = require('yaml') | |
fiber = require('fiber') | |
msgpack = require('msgpack') | |
-------------------------------------------------- Конфиг базы ------------------------------------------------------ |
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
local new_fifo = require "fifo" | |
local cqueues = require "cqueues" | |
local cc = require "cqueues.condition" | |
local methods = {} | |
local mt = { | |
__index = methods; | |
} | |
function methods.new(...) | |
local cond = cc.new(); |
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
local ffi=require"ffi" | |
local topointer | |
local pointer_mt | |
local key_address , key_ctype , key_cdata , key_methods = {},{},{},{} | |
local function ispointer ( ob ) | |
return getmetatable ( ob ) == pointer_mt | |
end | |
local function denormalise ( ob ) |
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
-- This code monkey patches cqueues primitives to allow for transparent use of cqueues inside of tarantool | |
local cqueues = require "cqueues" | |
local socket = require "socket" -- https://tarantool.org/en/doc/1.7/reference/reference_lua/socket.html (not luasocket) | |
local old_step; old_step = cqueues.interpose("step", function(self, timeout) | |
if cqueues.running() then | |
return old_step(self, timeout) | |
else | |
local t = self:timeout() or math.huge |
NewerOlder