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 VanDragger { | |
constructor() { | |
this.draggableObject = {}; | |
document.addEventListener('mousedown', this._mouseDown.bind(this)); | |
document.addEventListener('mousemove', this._mouseMove.bind(this)); | |
document.addEventListener('mouseup', this._mouseUp.bind(this)); | |
} | |
onDragStart(draggableObject) {} | |
onDragEnd(draggableObject, droppableElement) {} |
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
import socket from 'shared/sockets/OASocket'; | |
/** | |
* Class representing a MeetingConnection. | |
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API/Perfect_negotiation} | |
* to understand "The WebRTC perfect negotiation pattern". | |
*/ | |
class MeetingConnection { | |
/** |
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
### Nginx ### | |
check process nginx with pidfile /var/run/nginx.pid | |
start program = "/etc/init.d/nginx start" | |
stop program = "/etc/init.d/nginx stop" | |
if cpu > 60% for 2 cycles then alert | |
if cpu > 80% for 5 cycles then restart | |
if memory usage > 80% for 5 cycles then restart | |
if failed host 127.0.0.1 port 80 protocol http | |
then restart | |
if 3 restarts within 5 cycles then timeout |