Instantly share code, notes, and snippets.

View ssl-setup.md

Regenerating SSL Cert

cd ssl
rm -rf *
openssl req \
    -newkey rsa:2048 \
    -x509 \
    -nodes \
    -keyout server.key \
View error.ex
** (MatchError) no match of right hand side value: {:error, {{:EXIT, {:undef, [{Comet.ChromeWorker, :start_link, [[name: :"test get object"]], []}, {:supervisor, :do_start_child, 2, [file: 'supervisor.erl',line: 365]}, {:supervisor, :handle_start_child, 2, [file: 'supervisor.erl', line: 724]}, {:supervisor, :handle_call, 3, [file: 'supervisor.erl', line: 422]}, {:gen_server, :try_handle_call, 4, [file: 'gen_server.erl', line: 615]}, {:gen_server, :handle_msg, 5, [file: 'gen_server.erl', line: 647]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 247]}]}}, {:child, :undefined, Comet.ChromeWorker, {Comet.ChromeWorker, :start_link, [[name: :"test get object"]]}, :permanent, 5000, :worker, [Comet.ChromeWorker]}}}
View hightide.earth.whois
Domain Name: hightide.earth
Registry Domain ID: D12686545AE414AC28FF9C8F1313D9977-NSR
Registrar WHOIS Server: whois.enom.com
Registrar URL: whois.enom.com
Updated Date: 2017-07-31T18:25:16Z
Creation Date: 2017-07-26T18:25:15Z
Registry Expiry Date: 2018-07-26T18:25:15Z
Registrar: eNom, LLC
Registrar IANA ID: 48
Registrar Abuse Contact Email:
View nginx.conf
upstream phoenix {
server 127.0.0.1:4000;
}
server {
myapp.com
location @phoenix {
include proxy_params;
proxy_redirect off;
View output
➜ high-tide-app git:(master) ✗ ember build
⠸ Buildingbroccoli-babel-transpiler is opting out of caching due to a plugin that does not provide a caching strategy: `function () {
return {
visitor: {
VariableDeclaration: function VariableDeclaration(path, file) {
var node = path.node,
parent = path.parent,
scope = path.scope;
if (!isBlockScoped(node)) return;
View gist:f4acd7bc9f59fd2a265d296d3555078a
[?25hRegistering hook -> configure[build]
[?25hRegistering hook -> build[build]
[?25hRegistering hook -> configure[scp]
[?25hRegistering hook -> willBuild[scp]
[?25hRegistering hook -> build[scp]
[?25hRegistering hook -> willUpload[scp]
[?25hRegistering hook -> upload[scp]
[?25hExecuting pipeline
[?25h|
[?25h+- configure
View headdata.json
[
{
"type": "title",
"content": "Extraordinary User Experiences. Expert Software Engineering - DockYard",
"tagId": "title"
},
{
"type": "meta",
"attrs": {
"content": "Extraordinary User Experiences. Expert Software Engineering - DockYard",
View gist:c0f92e99747da44ccffd9901722680d6
server {
server_name production.example.com;
return 301 https://example.com/$request_uri;
}
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View handleURL.js
test('handleURL for storefront-less URLs', function(assert) {
let router = this.subject();
router.startRouting();
let transition = router.handleURL('/foo/bar/baz');
assert.equal(transition.targetName, 'foobar.index');
});
test('handleURL for URLs with storefront segment', function(assert) {