Skip to content

Instantly share code, notes, and snippets.

View NightBrownie's full-sized avatar

Nikita Kliushnikov NightBrownie

View GitHub Profile
@NightBrownie
NightBrownie / async-thread.js
Created May 26, 2020 08:25 — forked from sergiodxa/async-thread.js
Use WebWorkers and promises to run sync heavy functions in a worker (process) and get the result in a promise
function asyncThread(fn, ...args) {
if (!window.Worker) throw Promise.reject(
new ReferenceError(`WebWorkers aren't available.`)
);
const fnWorker = `
self.onmessage = function(message) {
(${fn.toString()})
.apply(null, message.data)
.then(result => self.postMessage(result));
2013-05-17 14:22:45|12542|utils.pm:get_management_node_info(5477)|initializing management node info hash reference
2013-05-17 14:22:45|12542|utils.pm:get_management_node_info(5493)|management node info for '192.168.100.2' is not stored in $ENV{management_node_info}
|12542| ---- WARNING ----
|12542| 2013-05-17 14:22:51|12542|utils.pm:get_management_node_info(5540)|zero rows were returned from database select, management node identifier may be invalid: '192.168.100.2'
|12542| SELECT
|12542| managementnode.*,
|12542| resource.id AS resource_id,
|12542| predictivemodule.name AS predictive_name,
|12542| predictivemodule.prettyname AS predictive_prettyname,
[2013-05-17T14:27:03-04:00] INFO: *** Chef 11.4.4 ***
[2013-05-17T14:27:04-04:00] INFO: Setting the run_list to ["recipe[op::iptables]", "recipe[op::upload_vcl]", "recipe[op::mysql]", "recipe[op::httpd]", "recipe[op::vcld]", "recipe[op::dhcp]"] from JSON
[2013-05-17T14:27:04-04:00] INFO: Run List is [recipe[op::iptables], recipe[op::upload_vcl], recipe[op::mysql], recipe[op::httpd], recipe[op::vcld], recipe[op::dhcp]]
[2013-05-17T14:27:04-04:00] INFO: Run List expands to [op::iptables, op::upload_vcl, op::mysql, op::httpd, op::vcld, op::dhcp]
[2013-05-17T14:27:04-04:00] INFO: Starting Chef Run for localhost
[2013-05-17T14:27:04-04:00] INFO: Running start handlers
[2013-05-17T14:27:04-04:00] INFO: Start handlers complete.
[2013-05-17T14:27:04-04:00] WARN: Cloning resource attributes for service[mysqld] from prior resource (CHEF-3694)
[2013-05-17T14:27:04-04:00] WARN: Previous service[mysqld]: /root/chef/management_node/op/recipes/mysql.rb:5:in `from_file'
[2013-05-17T14:27:04-04:00] WARN: Current service[mysq
[BITS 16]
[ORG 0x7c00]
;setting to protected mode
;---------------------------------------------------------------
;save the registers data
pushf
pusha
push ds
allocate APIC id=0 (MMIO enabled) to 0x00000000fee00000
00126594365i[CPU0 ] CPUID[0x00000000]: 00000003 756e6547 6c65746e 49656e69
00126594365i[CPU0 ] CPUID[0x00000001]: 00000f23 00000800 00002000 07cbfbff
00126594365i[CPU0 ] CPUID[0x00000002]: 00410601 00000000 00000000 00000000
00126594365i[CPU0 ] CPUID[0x00000003]: 00000000 00000000 00000000 00000000
00126594365i[CPU0 ] CPUID[0x00000004]: 00000000 00000000 00000000 00000000
00126594365i[CPU0 ] CPUID[0x00000007]: 00000000 00000000 00000000 00000000
00126594365i[CPU0 ] CPUID[0x80000000]: 80000008 00000000 00000000 00000000
00126594365i[CPU0 ] CPUID[0x80000001]: 00000000 00000000 00000001 2a100800
00126594365i[CPU0 ] CPUID[0x80000002]: 20202020 20202020 20202020 6e492020
mov bx,0B800h
mov es,bx
mov ax, real_string
mov cx, [real_str_len] ;loop counter
xor bx, bx
out_real_mod_loop:
mov byte [es:bx], [ax]
mov byte [es:bx+1], 4fh
add bx, 2
inc ax
mov bx,0B800h
mov es,bx
mov ax, real_string
mov cx, [real_str_len] ;loop counter
xor bx, bx
out_real_mod_loop:
mov byte [es:bx], [ax]
mov byte [es:bx+1], 4fh
add bx, 2
inc ax
<table width="800" cellspacing="30px" align="center">
<tr>
<th>
<div border=2>
<a href="http://dobrxoz.shop.by/3/4/7/" alt="Сухие корма для кошек">
<img src="http://dobrxoz.shop.by/pics/items/Image_i.jpg" title="Сухие корма для кошек">
</a>
</div>
</th>
<th>
@NightBrownie
NightBrownie / gist:3848519
Created October 7, 2012 14:22
Help for Alex
<html>
<body>
<table width="800" cellspacing="30px" align="center">
<tr>
<th>
<div border=2>
<a href="http://dobrxoz.shop.by/3/4/7/" alt="Сухие корма для кошек">
<img src="http://dobrxoz.shop.by/pics/items/Image_i.jpg" title="Сухие корма для кошек">
</a>
</div>
@NightBrownie
NightBrownie / gist:3676181
Created September 8, 2012 15:39
Help for Vadim
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
<title>Узнайте свою оптимальную физическую форму</title>
<style type="text/css">
h3 {font-family: Arial;color: "yellow";}
</style>
<script type="text/javascript">
function Calculate() {