Skip to content

Instantly share code, notes, and snippets.

import {PLATFORM} from 'aurelia-pal';
import {noView} from 'aurelia-framework';
@noView()
export class Resize {
desktop = true;
resizing = false;
constructor() {
@rquast
rquast / nginx.conf
Created March 8, 2018 22:42 — forked from thoop/nginx.conf
Official prerender.io nginx.conf for nginx
# Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats
# Change example.com (server_name) to your website url
# Change /path/to/your/root to the correct value
server {
listen 80;
server_name example.com;
root /path/to/your/root;
index index.html;
@rquast
rquast / 01-runner.js
Created February 16, 2018 23:29 — forked from stelcheck/01-runner.js
REPL example for electron
'use strict'
const net = require('net')
const chalk = require('chalk')
const path = require('path')
const cp = require('child_process')
const rimraf = require('rimraf')
function getPath() {
function postJSON($url, $data, $method = 'POST') {
$data_string = str_replace("\r", '', json_encode($data));
$headers = [
'Accept: application/json',
'Content-Type: application/json',
'Content-Length: ' . strlen($data_string)
];
{"to":"[email protected]","from":"Cavy Notifications <[email protected]>","subject":"[localhost.cavy.io] Change Alert: performing another test","html":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\"\n \"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\">\n<html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\"\/>\n <title>Cavy Change Alert<\/title>\n <style type=\"text\/css\">\n body {\n background-color: #eeeeee;\n margin: 0;\n padding: 40px;\n font-family: Arial, Helvetica, sans-serif;\n font-size: 14px;\n }\n <\/style>\n<\/head>\n<body>\n<div style=\"max-width: 600px;\">\n\n <table cellpadding=\"20\" cellspacing=\"0\" style=\"width: 100%; max-width: 600px; border: 1px solid #CCCCCC;\">\n <tr>\n <td bgcolor=\"#F3F3F3\">\n <p>\n Hey Roland,\n
Delivered-To: [email protected]
Received: by 10.103.47.16 with SMTP id v16csp3818655vsv;
Tue, 12 Dec 2017 04:04:14 -0800 (PST)
X-Google-Smtp-Source: ACJfBotAPU6LvBH2/0vX8VRQfZ1wyGNHY8HoITrXrItdfi1lfEfvtgqtTFP4IGFZllYB3/TEyjSv
X-Received: by 10.99.120.68 with SMTP id t65mr1829455pgc.58.1513080254672;
Tue, 12 Dec 2017 04:04:14 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1513080254; cv=none;
d=google.com; s=arc-20160816;
b=Ij0R6IhQPoaw8tlZdrE2eMi7WTMrHReOr+dk0wHXWrOqTDMx9uGnUKsjV66ufBIYet
H4SpYQTqOxXe/nmw66sXnfSrJh8uStmc/JFCGEarfjZLr0Tna4n+nRM7z0gS8JULdzSL
'use strict';
module.exports = {
// If started as root then privileges are dropped after all ports are bound
//user: 'nobody',
//group: 'nogroup',
// App name to be used in the Received headers and greeting messages
name: 'ZoneMTA',
configureRouter(config, router) {
config.title = 'Cavy';
let routes = BaseRoutes.concat(SettingsRoutes);
/*
for (let route of routes) {
if (route.moduleId) {
route.moduleId = PLATFORM.moduleName(route.moduleId);
}
}
*/
[
{
"route": ["", "wiki"],
"name": "wiki",
"menu": "main",
"settings": {
"showTopicExplorer": true
},
"nav": true,
"auth": false,
[ 159.205565] applespi: read 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 64 df
[ 159.225535] applespi: --- Keyboard Event ---------------------------
[ 159.225539] applespi: read 20 01 00 00 00 00 14 00 10 01 00 84 00 00 0a 00 01 00 00 16 17 00 00 00 00 00 ec 0d 00 00 00 00
[ 159.225541] applespi: read 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 159.225543] applespi: read 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 159.225545] applespi: read 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 159.225546] applespi: read 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 159.225548] applespi: read 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 159.225550] applespi: read 00 00 00 00 00 00 00 00