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
Cb)]: null, | |
[Symbol(kBufferGen)]: null, | |
[Symbol(kCapture)]: false, | |
[Symbol(kSetNoDelay)]: false, | |
[Symbol(kSetKeepAlive)]: true, | |
[Symbol(kSetKeepAliveInitialDelay)]: 60, | |
[Symbol(kBytesRead)]: 5099, | |
[Symbol(kBytesWritten)]: 230, | |
[Symbol(connect-options)]: [Object], | |
[Symbol(RequestTimeout)]: undefined |
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
"{\"object\":\"value\",\"document\":{\"object\":\"document\",\"data\":{},\"nodes\":[{\"object\":\"block\",\"type\":\"paragraph\",\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"США, г. Нью-Лейк, наши дни.\\nНеобъяснимое - не значит невероятное.\\nУжасное - не значит преувеличенное.\",\"marks\":[]}]}]},{\"object\":\"block\",\"type\":\"paragraph\",\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"Нью-Лейк. Город, в котором живут тысячи обычных людей. Он шепчет множеством голосов, днем дымит автомобильными трубами, а ночью кашляет кровью.\\nЭто город, в котором никто не может быть в безопасности.\\nТы не можешь пойти со своей манией преследования к психиатру: возможно, он-то на самом деле и преследует тебя. И ты вынужден раз за разом уверять себя: ничего страшного. Просто нервы шалят. Слишком много работы в последнее время.\\nМегаполис, полный самых разных людей. Все, кто вступает в игру*, связаны только одним: у каждого из них - и у т |
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
# line breaks are normal \n | |
Ok, here we go with the [b]sample[/b] that needs to be [b][i]parsed[/i][/b] into proper JSON format. | |
We can have multiple lines inside a paragraph, with [url=http://example.com]links[/url] to different [b][url=http://manager.example.com]websites[/url][/b]. | |
This is another paragraph with an inline image. [img]http://via.placeholder.com/280x140/[/img] | |
[img]http://via.placeholder.com/200x140/[/img] can be in the beginning of the parapraph. It can also be inside of a link: | |
[url=http://image.example.com][img]http://via.placeholder.com/280x100/[/img][/url] so it's tricky. |
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
I, [2019-03-19T18:27:30.255919 #25909] INFO -- : malkav | |
I, [2019-03-19T18:27:30.257257 #25909] INFO -- : /home/malkav/.nvm/versions/node/v10.15.1/bin/node | |
I, [2019-03-19T18:27:30.257302 #25909] INFO -- : :/home/malkav/.nvm/versions/node/v10.15.1/lib/node_modules | |
I, [2019-03-19T18:27:30.257320 #25909] INFO -- : /home/malkav/.rvm/gems/ruby-2.5.3@demiurge/bin:/home/malkav/.rvm/gems/ruby-2.5.3@global/bin:/home/malkav/.rvm/rubies/ruby-2.5.3/bin:/home/malkav/.rvm/bin:/home/malkav/.nvm/versions/node/v10.15.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games | |
I, [2019-03-19T18:27:30.257334 #25909] INFO -- : -------------------------- | |
I, [2019-03-19T18:27:34.864848 #25451] INFO -- : malkav | |
I, [2019-03-19T18:27:34.866345 #25451] INFO -- : /usr/bin/node | |
I, [2019-03-19T18:27:34.866403 #25451] INFO -- : nil |
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
class Project::ScreenCaster | |
attr_reader :project | |
PATH_TO_PHANTOM_SCRIPT = Rails.root.join('app','services','project','screen_grab.js') | |
def initialize(project) | |
@project = project | |
end | |
def capture |
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
'use strict'; | |
const puppeteer = require('puppeteer'); | |
(async() => { | |
const browser = await puppeteer.launch({ | |
headless: true, | |
ignoreHTTPSErrors: true, | |
timeout: 1000 |
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
const combineMessages = (messages) => { | |
let combined = [] | |
let params = { index: -1, groupDate: null, userId: null, lastBlock: -1 } | |
for (let i = 0; i < messages.length; ++i) { | |
let message = messages[i] | |
let date = new Date(message.created_at) | |
if (!params.groupDate || date.getDate() !== params.groupDate) { | |
params.groupDate = date.getDate(); | |
params.runningDate = null; |
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
[ | |
{ | |
"date":"2019-01-23T23:43:58.934+03:00", | |
"messages":[ | |
{ | |
"id":16, | |
"user":{ | |
"id":1, | |
"title_name":"Admin", | |
"name":"admin", |
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
[ | |
{ | |
"id":16, | |
"user":{ | |
"id":1, | |
"title_name":"Admin", | |
"name":"admin", | |
"signature":"In sieme per la vittoria!", | |
"group":"admin" | |
}, |
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
Tue Apr 24 17:14:59 2018 us=337689 Current Parameter Settings: | |
Tue Apr 24 17:14:59 2018 us=338064 config = './vpn-lo34_ovpn136_account.ovpn' | |
Tue Apr 24 17:14:59 2018 us=338246 mode = 0 | |
Tue Apr 24 17:14:59 2018 us=338417 persist_config = DISABLED | |
Tue Apr 24 17:14:59 2018 us=338581 persist_mode = 1 | |
Tue Apr 24 17:14:59 2018 us=338737 show_ciphers = DISABLED | |
Tue Apr 24 17:14:59 2018 us=338886 show_digests = DISABLED | |
Tue Apr 24 17:14:59 2018 us=339035 show_engines = DISABLED | |
Tue Apr 24 17:14:59 2018 us=339184 genkey = DISABLED | |
Tue Apr 24 17:14:59 2018 us=339335 key_pass_file = '[UNDEF]' |
NewerOlder