This file contains hidden or 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
openssl req -x509 -out cert.pem -keyout key.pem \ | |
-newkey rsa:2048 -nodes -sha256 \ | |
-subj '/CN=localhost' -extensions EXT -config <( \ | |
printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth") | |
// After running this place the cert.pem in your SYSTEM keys in Keychain Access | |
// Once added be sure and trust that cert for use from Keychain Access as well |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script src="https://cdn.jsdelivr.net/lodash/4/lodash.min.js"></script> |
This file contains hidden or 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
Verifying my Blockstack ID is secured with the address 1EA7Ajv3wTXD9iAi4wz5vckfCJCfUnBE2J https://explorer.blockstack.org/address/1EA7Ajv3wTXD9iAi4wz5vckfCJCfUnBE2J |
This file contains hidden or 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
{% macro server(site, settings, options) %} | |
include "{{ settings.overrides }}/{{ site.shortname }}/top"; | |
server { | |
gzip on; | |
gzip_types text/css text/javascript image/svg+xml application/vnd.ms-fontobject application/x-font-ttf application/x-javascript application/javascript; | |
listen {{ settings.bind }}:{{ options.port }} {% if options.https %}ssl{% endif %} {% if site.default and not site.canonical %}default_server{% endif %}; | |
server_name {{ site.host }} {% if site.aliases and not site.canonical %}{{ site.aliases | join(' ') }}{% endif %}; |
This file contains hidden or 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
{% macro server(site, settings, options) %} | |
include "{{ settings.overrides }}/{{ site.shortname }}/top"; | |
server { | |
gzip on; | |
gzip_types text/css text/javascript image/svg+xml application/vnd.ms-fontobject application/x-font-ttf application/x-javascript application/javascript; | |
listen {{ settings.bind }}:{{ options.port }} {% if options.https %}ssl{% endif %} {% if site.default and not site.canonical %}default_server{% endif %}; | |
server_name {{ site.host }} {% if site.aliases and not site.canonical %}{{ site.aliases | join(' ') }}{% endif %}; |
This file contains hidden or 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
module.exports = { | |
servers: { | |
one: { | |
host: '123.your.ip.address', | |
username: 'root', | |
pem: '/Users/Username/.ssh/ssh_rsa_file' | |
} | |
}, | |
meteor: { | |
name: 'app-name', |
This file contains hidden or 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
{# Let folks know this wasn't a manual configuration #} | |
# This configuration file was generated with mechanic. | |
{% macro server(site, settings, options) %} | |
include "{{ settings.overrides }}/{{ site.shortname }}/top"; | |
server { | |
gzip on; |
This file contains hidden or 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
function extend(objects) { | |
var result = {}; | |
for (var i = 0; i < objects.length; i++) { | |
var object = objects[i]; | |
for (var key1 in object) { | |
if (result.hasOwnProperty(key1)) { | |
for (var key2 in object[key1]) { | |
result[key1][key2] = object[key1][key2]; |
This file contains hidden or 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
{ // A View item | |
"_id" : "abc123_view_id", | |
"page" : "/some/page", | |
"site" : "www.example.com", | |
"bounce" : false, | |
"token" : "7a13d56", | |
"end" : ISODate("2017-03-23T18:29:22.137Z"), | |
"start" : ISODate("2017-03-23T18:21:22.156Z"), | |
"browser" : false, | |
"session" : true, |
This file contains hidden or 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
// Alert if there are any stuck jobs | |
let stuck_jobs = Jobs.find(‘_id’, { | |
status: {$in: [‘ready’, ‘running’]} | |
}, {fields: { | |
type: 1, | |
data: 1 | |
}}).fetch(); | |
if (stuck_jobs.length > 0) | |
Raven.log(3, ‘There are stuck jobs’, stuck_jobs); |