Open PowerShell console and type the following command to enable PowerShell remoting:
Enable-PSRemoting -Force
Change scripts execution policy to allow remote scripts:
Set-ExecutionPolicy RemoteSigned
<div> | |
<iframe appIframeTracker (iframeClick)="onIframeClick()" src="http://www.google.com"></iframe> | |
</div> |
/* | |
Arduino Mario Bros Tunes | |
With Piezo Buzzer and PWM | |
Connect the positive side of the Buzzer to pin 3, | |
then the negative side to a 1k ohm resistor. Connect | |
the other side of the 1 k ohm resistor to | |
ground(GND) pin on the Arduino. | |
by: Dipto Pratyaksa |
public static class BusExtensions | |
{ | |
public static Task ConnectionAwaiter(this IBus bus) | |
{ | |
var cts = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously); | |
bus.Advanced.Connected += (s, e) => | |
{ | |
cts.TrySetResult(true); | |
}; |
#! /usr/bin/env python | |
import posixpath | |
import argparse | |
import urllib | |
import os | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
from BaseHTTPServer import HTTPServer |
Waiting until the support for slave-read-only
on StackExchange.Redis
, I would like to share my solution to fail-over a node with a minimum write interruption, maintaining data consistency, reducing (eliminating?) possible false write acknowledgment (on the node that is failing). You can lose some write because there's a window where both nodes are slaves. I feel that you can still have some false write ack because you can receive an ack while setting the master as slave and that write could be lost.
redis-slaveof-kvs01.txt
MULTI
SLAVEOF kvs01 6379
CONFIG REWRITE
PUBLISH "__Booksleeve_MasterChanged" "*"
EXEC
void Main() | |
{ | |
var stopHandle = new ManualResetEventSlim(); | |
var consumer = new Thread(() => | |
{ | |
var bus = RabbitHutch.CreateBus("host=localhost", x => x.Register<IEasyNetQLogger>(s => new EasyNetQ.Loggers.ConsoleLogger())); | |
bus.RespondAsync<MyRequest, MyResponse>(async request => | |
{ |
import * as angular from 'angular'; | |
import { Observable, Subject, Subscription } from '@reactivex/rxjs'; | |
export interface Message { | |
channel: Function; | |
content: any; | |
} | |
/** | |
* @description AngularJS service singleton implementing simple publish/subscribe message bus to provide decoupled communication of commands & events |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
using Newtonsoft.Json; | |
using Syroot.BinaryData; | |
using Syroot.BinaryData.Extensions; | |
namespace ConsoleApp1 |
const int c = 261; | |
const int d = 294; | |
const int e = 329; | |
const int f = 349; | |
const int g = 391; | |
const int gS = 415; | |
const int a = 440; | |
const int aS = 455; | |
const int b = 466; |